Back to LanguageTool Homepage - Privacy - Imprint

Disable spanish spell check


(rahul) #1

Hi

How to disable spanish spell check? I just want to have grammar check enabled. I use below ruleId to disable American English spell check. But I can not find similar ruleId for Spanish spell check.

enLangTool = new JLanguageTool(new AmericanEnglish());
enLangTool.activateDefaultPatternRules();
enLangTool.disableRule("MORFOLOGIK_RULE_EN_US"); //Disable Spell Check

Thanks in advance for the help.


(Daniel Naber) #2

Please try "HUNSPELL_RULE".

Regards
Daniel


(rahul) #3

Thanks Daniel for the quick response. I will try this.

And I also want to thank you and other contributors for the library.