Language Tool – Open-source Grammarly alternative
languagetool.org
languagetool.org
A really nice feature of LT is that you can add your own rules. A rule editor is provided here:
https://community.languagetool.org/ruleEditor2/
Basically, whenever you catch an error in your writing you add a rule to ensure that it is caught the next time. After a few years your rule set will catch a large portion of your writing errors. It's fun too.
The art is trying to writing a rule without too much false positives. False positives are myriad. Probably 60% of warnings are false positives, so you don't want to add too much more to that. On a typical document, I can get ten pages of errors, fortunately, going through it goes quite fast.
<rule id="" name=""> <pattern> <token>comprise</token> <token>be</token> </pattern> <message>comprise be</message> <example correction=''>The thingy may <marker>comprise be</marker> configured to do things.</example> <example >The thingy may be configured to do things.</example> </rule>
<rule id="" name=""> <pattern> <token regexp='yes'>arranged|configured</token> <token>to</token> <token postag='VBG'></token> </pattern> <message>You followed <suggestion>arranged to</suggestion> or <suggestion>configured to </suggestion> with a gerund.</message> <example correction=''>The thing is <marker>arranged to replacing</marker> the other thing.</example> <example>The thing is arranged to replace the other thing.</example> </rule>
For example, it really can't determine in German if you're using the correct case or not for a particular verb. Or it can't really tell if you're using the right prepositions.
Ultimately, we ended up building a grammar engine just for language learners using transformers [2] + a version of errant [3] we ported to be multilingual. It's not perfect, but after a couple weeks of development was more helpful than LT.
2. e.g. this paper from Grammarly https://arxiv.org/abs/2005.12592, but there are a bazillion others
Wow! If your results generalize to all cases why shouldn’t they scrap everything they have and start over?
I mean, sending all data to a Grammarly service brings the same privacy issues as sending it to Language Tool.
This is not true of Grammarly last I checked, you have to hack something together... (e.g. https://medium.com/@tardijkhof/how-i-made-grammarly-seamless... )
I'll not be using it but good effort though.
The full text isn't stored on the servers, but you can always just deploy it yourself for maximum privacy:
https://dev.languagetool.org/http-server
Furthermore, there are options for docker: https://github.com/languagetool-org/languagetool#docker
For my Ubuntu machine as a client, I just use the web extension for Firefox and I also use the Visual Studio Code extension. I am most happy that my READMEs don't have such stupid errors anymore when I push them publicly where anyone can see. LOL
Sorta, you can always run the server locally on your own machine. It's a bit wasteful, but not terribly so.
> No Android or Linux app
I mean you can just use the plugins for browsers, email, and document writing. It won't work in the terminal (would it on MacOS regardless?) but I wouldn't consider that a downside. I'll be waiting for the Emacs package myself, but I doubt I'll have to hold my breath.
https://github.com/mhayashi1120/Emacs-langtool
Now that I checked, looks like there’s another package, but I didn’t t try it.
[1] https://archlinux.org/packages/community/any/languagetool/ [2] https://github.com/dpelle/vim-LanguageTool [3] https://github.com/rhysd/vim-grammarous
[0]: https://chrome.google.com/webstore/detail/microsoft-editor-s...
This isn't an endorsement. Just saying this isn't something that sets LT apart.
Hmm.. maybe early days for English. If it's purely rule based, it probably be enough to catch issues like this broken fragment.
It finds four (valid) issues in the rest of your comment, though. So, maybe you should give it a shot for a few days. See what it can really offer you.
CoPilot : Code :: ?? : Language
I know google docs does this to some extent but I don’t always use gdocs. I may be writing an email or writing an article for example in some editor.
The free self-hosted version you can download from https://languagetool.org/download/ lacks all the premium rules (several thousand rules for English, German, French, Spanish and Dutch) and AI-based rules.[1]
[1]: https://github.com/languagetool-org/languagetool/issues/6750
(Disclaimer I’m a founder)