Back to LanguageTool Homepage - Privacy - Imprint

IMMUNIZE for rules


(Ruud Baars) #1

Is there a way to immunize a grammar rule? I understand exceptions, but these are less flexible, since they operate on the token level only. I need to use multiple exceptions on a rule, certain word combinations before, and some after, but not independent.
WRONG is wrong, except when the patterns are
A B WRONG C D
A F WRONG D E


(Jan Schreiber) #2

I think antipatterns could be used here. There are examples in the German grammar.xml.


(Ruud Baars) #3

Sounds great. I will have a look at those.