...
Code Block | ||
---|---|---|
| ||
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).
(You can view the repo in the browser here: https://bitbucket.org/mittagqi/hunspell-dictionaries-for-languagetool)
Add 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 (the following code block. Please note:
- if you do not use ngrams, omit the "--languageModel ./ngrams" part
...
- the command below is expected to be run inside the languagetool installation directory
Code Block | ||
---|---|---|
| ||
java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --config ../hunspell-dictionaries-for-languagetool/languagetool-server.properties --languageModel ./ngrams & 1Hilfe 2Speichern 3Markieren 4Ersetzen 5Kopieren 6Verschieben 7Suchen 8Löschen 9Menüs 10Beenden |
Please note: For some languages that Hunspell supports the "common_words.txt" file needed by language tool is added as an empty file. The reason is, that so far no file list for these languages could be found, where the license supports to use it. You are welcome to add it as a pull request to above mentioned directory. The common_words-file is used by languagetool to enhance the speed.