vogellacompany / languagetool-eclipse-plugin

Eclipse plug-in for Languagetools
Eclipse Public License 1.0
9 stars 1 forks source link

Figure out how to add new words via API to Language Tool #3

Open vogella opened 9 years ago

vogella commented 9 years ago

To make our Eclipse plug-in for Language Tool useful for us and others we should add the option in Eclipse to ignore new words. This should be similar to the Eclipse default spelling engine, in which new words can be added to a user directory (text file).

AFACS http://wiki.languagetool.org/development-overview does not contain a description how to add new words to Language Tool.

@danielnaber can you add this info or point us to the right place where this is documented?

danielnaber commented 9 years ago

You need to iterate the rules to find the spelling rule for your language, then call https://languagetool.org/development/api/org/languagetool/rules/spelling/SpellingCheckRule.html#addIgnoreTokens%28java.util.List%29