Back to LanguageTool Homepage - Privacy - Imprint

SpellCheckRule for German-language does not work


Maybe you can help me to add nthe spell checking.
The following is not working:
for (Rule rule : langTool.getAllRules()) {
if( rule instanceof SpellingCheckRule)
nothing is being printed which leads to the question, wether it is working? Did I add all the sourcefiles properly?
I see that your web-interface is correcting words which are written wrong, like “Aberxy und so weiter.”, at my machine it is not working =(.
(I am using only java, linux)

Thank you in advance.

Hi, are you aware that you need to create the language with e.g. “new GermanyGerman()”, not just “new German()”?

super, that worked!