I am evaluating LanguageTool and other libraries to use in a financial company’s Java Publishing application that we are building. Our new application pulls data from several other disparate repositories, then presents different information to the end user for review and approval & eventual publishing to web & print systems.
Part of the new app’s job will be to run spell & grammar validation on financial commentaries and other
artifacts that were created and stored in some of these other repositories. We want spell-checking on but as you can imagine there is a lot of acronyms and codes in the financial industry that will require us to build an acceptable list of misspellings.
Does the new LanguageTool Spell Checking feature support custom dictionaries in addition to the built in dictionaries? I have looked through the web site, JAVA API, documents, and forums and have not found mention of how to add your own words or dictionaries specifically. After looking at the JAVA API I think that the approach might be to use SpellingCheckRule(s) but am a bit confused because those classes seemed to be structured to only find errors or can I use a SpellingCheckRule to identify acceptable spellings also?
The very latest snapshot from Index of /snapshots/ should now support this. Just add a file called ignore.txt to resource/xx/hunspell/ignore.txt (xx being the language code), with one word per line. English and German have such a file already with a single test entry. Those words will be ignored during spell checking. Please let me know if this works for you.