Back to LanguageTool Homepage - Privacy - Imprint

SpellCheckRule for German-language does not work


(eli) #1

Hey,

Maybe you can help me to add nthe spell checking.
The following is not working:
for (Rule rule : langTool.getAllRules()) {
if( rule instanceof SpellingCheckRule)
System.out.println(rule.getDescription());
}
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.


(Daniel Naber) #2

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


(eli) #3

super, that worked!