Would it make sense to integrate LanguageTool?

Hello,

LanguageTool is an open-source grammar, style and spell checker. I’ve been using it for several months and love it.

I want to make a tentative feature request of integrating LanguageTool’s free public API into DEVONthink, so that users can take advantage of its tool set when writing inside DT.

Thanks in advance for evaluating my request! :slight_smile:

1 Like

Have you tried using the Mac app they offer?

Yes, and it certainly does a great job of checking grammar, as advertised. But personally I prefer using LanguageTool in the form of integration with other apps rather than its standalone Mac app, because the integrations simply blend in seamlessly into the existing workflow while using the app is an extra layer of friction (i.e. it’s not a great text editor).

Apart from the official LanguageTool apps and add-ons on their website, there are also Ulysses (link, paid API), Obsidian (link, free API) and VS Code (link, free API) integrations that I use. It’s easier to open and edit plaintext and Markdown files from DT in VS Code (⌘⇧O), and I figured maybe it could make sense, business- and development-wise, for DT to integrate with LanguageTool so that it’s even easier.

The request is noted but no promises, of course.

2 Likes

Of course. Thanks, Jim! :smiley:

I just wanted to make the same suggestion. Ullyssess uses Language Tool and its foundation is open source. The Mac app does not open .md files unfortunately.

There is government funding behind this project and with the open source foundation and API, it may be something more attractive than Grammarly:

https://languagetool.org/dev

The request is noted. However, implementation isn’t simple just because there’s an API, open-source or not. This adds to development as well as support when there’s a problem.

PS: Notice this…

Yeah, the free public API is rate limited. If/when DT implements such a feature, perhaps it would be a useful design to limit the check rate on the client side to avoid exceeding the API rate limit.

At least, it would be great if one could open md files in their editor. I wrote to them whether this could be done. I would not mind paying for it - so maybe there is then at least some sort of integration for license owners.

On their front page…

Who’s “clear and precise writing” ?!?
:roll_eyes::joy:

Having had a look at their API (specially the JSON results), I’d say that this would require quite some work to implement in a useful way. Wow, now the browser plugin told me to do something about “in a useful way”.

If someone is running a Synology NAS, they could run the LanguageTool server on it and try it out. That has the charm that your text does not go anywhere else and that there’s probably no rate limitation. But you’d still have to build some tool(s) to analyze the JSON results.

Also, you’d need to figure out how the tool treats Markdown and other markup languages. There’s a provision to mark markup in the input to the API, but that looks incredibly cumbersome.

Maybe for the time being, using it in VSCode or some other writing tool where the stuff is already integrated with your own server would be a sensible workaround.

3 Likes

They currently do not support markdown, they told me (but will consider it, they say).

I used Ullysses for a while and found the language help useful. I then purchased a license for Antidote but the extra step, calling up the language check, did not work for me.

What Grammarly is doing looks great, checking while you type. With them, however everything one types goes through their servers … I am not an expert but it sounds a bit too much of checking.

Interestating is that they now go beyond spelling and grammar and make also suggestions on style.

Writeful is another interesting contender. They use an AI to learn their rules texts and have a nice integration with Overleaf. While some years ago we used translators to have fun, tools like DeepL have become really good. Natural language processing is making good progress.

For non-native speakers the development of such language tools is interesting.

ProWritingAid may also be of interest: https://prowritingaid.com

  • They can handle md files.

  • They argue that security and privacy is at the core of their product, e.g. being GDPR compliant

  • They integrate with Scrivener and have an API. Maybe they can be convinced to establish an integration with DevonThink as well?