I would like to know how to add new words with it’s suggestions to existing dictionary in LT.
Below is the procedure i followed, but i found after updating new words to dictionary it started showing errors on some common prepositions as well (say in, for etc…)
Step 1:
Extracted the text file
java -cp languagetool.jar org.languagetool.tools.DictionaryExporter -i org/languagetool/resource/en/hunspell/en_GB.dict -info org/languagetool/resource/en/hunspell/en_GB.info -o /tmp/out.txt
If you know the replacement, you can just add all words to spelling.txt and the words and their replacements to replace.txt. This way you don’t need to deal with frequencies.
Thank you so much for the swift response.
That’s really a good suggestion.
But our requirement is to include our own dictionary with medical and scientific words. Adding such a large set of data to “spelling.txt” and “replace.txt” won’t over load the LT service?