I want to create a rule that detects misspelling of “quite” as “quiet”. To do that I want to indicate the following token as adjectives that aren’t also nouns or prepositions. This doesn’t seem to work:
<token postag='JJ'><exception postag_regexp="yes" postag='NN|RP'/></token>`
“Winter” and “animal” still gets included. Am I missing sth?
Here’s the whole rule (in case you want to know):
<!-- English rule, 2016-11-23 -->
<rule id="MISSPELLING_QUIET_QUITE" name="Misspelling: quiet (quite)">
<pattern>
<marker><token>quiet</token></marker>
<token postag="JJ"><exception postag_regexp="yes" postag="NN|RP"/></token>
</pattern>
<message>Do you mean <suggestion>quite</suggestion>?</message>
<short>Possible misspelling</short>
<example correction=''>It has become <marker>quiet</marker> troublesome.</example>
<example>It has become quite troublesome.</example>
<example>It has become quiet.</example>
</rule>