jxmorris12 / language_tool_python

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

How to ignore certain texts that are matched by my custom regular expressions? #65

Open jkyndir opened 2 years ago

jkyndir commented 2 years ago

How to add custom words to dictionary? How to ignore certain texts that are matched by my custom regular expressions?

jxmorris12 commented 2 years ago

I think you should follow the approach documented in the README under "Apply a custom list of matches with utils.correct". You can filter matches (which are essentially corrections) so that you don't spell-correct words from your custom dictionary. You can also ignore matches that correspond to your own regex.