Due to the structure of my text, I get a lot of warnings, saying:
“Possible typo: you repeated a word”
So, I wanted to disable the responsible rule. A search through the source code gave only one usage of the MessageBundle entry “repetition” and this was the WordRepeatRule. So, I added the following to my code:
langTool.disableRule(“WORD_REPEAT_RULE”);
Afterwards, the “you repeated a word” warnings are still there and there are nearly 50% more spelling errors than before!
How can this be? I thought, that the rules are independent.
And what is the proper way to disable the rule?