How to disable rules when running LT locally

I am running LT locally and would like to disable certain rules (let’s say the multiple whitespace one). I added rulesFile=languagetool.cfg to my server.properties file, which I load with --config.

This seems to work, as I see this:
image

My languagetool.cfg contains only one line:
rule id="MULTIPLE_WHITESPACE" enabled="false"

But I still get error messages more than one spaces. What am I doing wrong?

Please try disabledRuleIds=MULTIPLE_WHITESPACE directly in the server.properties (needs a server restart).

Hm, that did not work either.

The rule ID for this rule in English is CONSECUTIVE_SPACES.

@jaumeortola I found this very helpful list with rules: Browse LanguageTool Rules: 6,133 matches for English

I never realized that rules have different names in different languages… So if I wanted to de-activate the multiple whitespace rule in both English and German, I would have to de-activate two rules? WHITESPACE_RULE and CONSECUTIVE_SPACES?

My grief is, however, that none of this has any effect. I tried “MULTIPLE_WHITESPACE”, “WHITESPACE_RULE” and “CONSECUTIVE_SPACES”, and nothing helps, regardless of the plugin that integrates with LT (browser etc.)

How is it with the languagetool.cfg - should that theoretically work? And if it should work, would it require a server restart?

This works for me: disabledRuleIds=CONSECUTIVE_SPACES,WHITESPACE_RULE (in server.properties). In rare cases, the same issue can be found be two rules.

1 Like

Thanks, @dnaber, this works for me as well!