LanguageTool can be used as an addon for TeXstudio to check grammar (that happens rule-based). You can also use n-grams as an addition. The description on how to use the n-grams can be found here: http://wiki.languagetool.org/finding-errors-using-n-gram-data

TeXstudio offers an own section in its settings to configure LanguageTool (see below).

I set up n-grams and they work in LanguageTool. LanguageTool also works in TeXstudio. I just can not get the n-grams working in TeXstudio. This is what my configuration looks like:

enter image description here

According to the wiki --config is not needed for standalone, according to the TeXstudio bugtracker it should be there but there is only an example for Linux (which looks pretty much the same). Somewhere I found that it also needs --languageModel which did not work either.

The arguments I tried:

org.languagetool.server.HTTPServer -p 8081 --config "C:/Users/me/.languagetool.cfg" --languageModel="C:/Program Files (x86)/TeXstudio"

org.languagetool.server.HTTPServer -p 8081 --config "C:/Users/me/.languagetool.cfg" --languageModel="C:/Program Files (x86)/TeXstudio/en"

org.languagetool.server.HTTPServer -p 8081 --config "C:/Users/me/.languagetool.cfg"

And probably many others.

Help would be appreciated.

  • I've heard of TeXStudio. For the rest, I have no idea what you are talking about. Doesn't mean nobody will, but you might want to edit your question to explain and provide links to the sources you mention consulting. – cfr Feb 20 '17 at 2:11
  • I added some more descriptions but I'm not sure if it is of any use. If someone got it already working he might help. If someone never heard of it he probably won't go ahead and set up everything (which involves downloading an 8Gb database) just to get it working for me. – doc Feb 20 '17 at 2:33
  • No. Not just for you. But people get curious or think it sounds like something they'd like to use and one thing leads to another. – cfr Feb 20 '17 at 4:05

The correct arguments are:

org.languagetool.server.HTTPServer -p 8081 --config "C:\Users\me\.languagetool.cfg" --languageModel "C:\Program Files (x86)\TeXstudio"

The arguments should not contain =.

  • It didn't work for me. I also tried --languageModel "/path/to/n-grams" as is recommended on the link you suggested. n-grams works from with the LanguageTool GUI, but not from TeXstudio. – Zoltán Csáti Apr 1 at 14:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.