jxmorris12 / language_tool_python

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

Picky mode #91

Open be4zad opened 6 months ago

be4zad commented 6 months ago

Is there a way to enable picky mode?

jxmorris12 commented 6 months ago

So I googled and see this is a feature supported by LanguageTool: https://languagetool.org/insights/post/picky-mode/

And doing some more digging it's now a flag that can be provided to the /check endpoint of the API via 'level': https://languagetool.org/http-api/

I think we just need to set 'level' = 'picky' here: https://github.com/jxmorris12/language_tool_python/blob/master/language_tool_python/server.py#L145

be4zad commented 6 months ago

Yes that parameter enables picky mode.