Page tree

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

languagetool does spell checking, grammar checking and style checking.

For spell checking it mostly builds on hunspell.

There is a large number of languages, that are supported by hunspell itself, but not by languagetool so far, because languagetool by default only supports those languages, where they offer also grammar and style checking.

For translate5 it makes sense to support spell checking for as many languages as possible through languagetool.

To activate the additional languages

that are so far in the list of available languages of translate5 do the following:

Clone dictionary repository

Go to the same directory, where your languagetool installation directory is (not inside it, but same level).

git clone git@bitbucket.org:mittagqi/hunspell-dictionaries-for-languagetool.git

Add the file languagetool-server.properties to the same directory, where your languagetool installation directory is (not inside it, but same level).

Integrate the languagetool-server.properties to the start command that starts your languagetool server, for example in your init.d start script, that it looks like this (if you do not use ngrams, omit the "--languageModel ./ngrams" part)

java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --config ../languagetool-server.properties --languageModel ./ngrams &
  • No labels