I'm writing a text editor that uses LanguageTool as library. I'd like to give the user the possibility of adding words to the dictionary and to the ignore list (right click -> "Add word to the dictionary" or "Ignore this word"). These new words should also be available as suggestions. Is there a way to do this at runtime?
After taking a look at the LanguageTool API, I've found the method addWord(String) in the class org.languagetool.rules.spelling.hunspell.Hunspell.Dictionary. Is this the right way to add new words? How do I access the runtime dictionary? Is somehow referenced by JLanguageTool?
Thanks in advance.