Back to LanguageTool Homepage - Privacy - Imprint

Enabled / disabled rules in LT server


(jaumeortola) #1

Hi,

Currently, a LT server can be run using a languagetool.cfg file for setting enabled and disabled rules. But in this server when you use enabledRules and disabledRules via API, the rules in languagetool.cfg are forgotten.

See:


and

I need another behavior. I need the default rules in the configuration file to be remembered (as a new “default”) and the enabledRules/disabledRules to be added to this “new default”. I think this behavior is more reasonable.

Is it OK to implement it? I can try to do it myself, but the logic of enabled and disabled rules is getting complicated, and I am not sure how it will affect other parts of the program. (Does the stand-alone LT use this code?)


(Daniel Naber) #2

I agree that the behavior you suggest sounds more sensible, so feel free to implement it. If you do, it should be the only behavior, i.e. there shouldn't be a mode that still offers the old behavior. Does anybody remember why we implemented it the way it currently is?


(jaumeortola) #3

Done here: https://github.com/languagetool-org/languagetool/commit/4905d6f2fd9f0dd6f33faa4e9e185d00f62ce5a7