jxmorris12 / language_tool_python

a free python grammar checker 📝✅
GNU General Public License v3.0
434 stars 64 forks source link

Enable MISSING_VERB rule #71

Closed alex01100110 closed 1 year ago

alex01100110 commented 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"

jxmorris12 commented 1 year ago

enabled_rules is a set. can you try tool.enabled_rules.add("MISSING_VERB")?

alex01100110 commented 1 year ago

That did it, thank you very much.