language_tool_python
language_tool_python copied to clipboard
How to ignore certain texts that are matched by my custom regular expressions?
How to add custom words to dictionary? How to ignore certain texts that are matched by my custom regular expressions?
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.