Closed alex01100110 closed 1 year ago
I am looking to enable the MISSING_VERB rule, which is disabled on default on LanguageTool. How do I do that? I've tried setting the object property, but it didn't work unfortunately:
tool = language_tool_python.LanguageTool("de-DE") tool.enabled_rules="MISSING_VERB"
enabled_rules is a set. can you try tool.enabled_rules.add("MISSING_VERB")?
enabled_rules
tool.enabled_rules.add("MISSING_VERB")
That did it, thank you very much.
I am looking to enable the MISSING_VERB rule, which is disabled on default on LanguageTool. How do I do that? I've tried setting the object property, but it didn't work unfortunately:
tool = language_tool_python.LanguageTool("de-DE") tool.enabled_rules="MISSING_VERB"