Hello, I’m trying to write a rule that will find errors in the term “Parkinson’s disease”. This rule won’t catch the term “Parkinsons disease”, though. Given both the ’ and the s are optional tokens, shouldn’t it match that term and fix it?
<rule>
<antipattern case_sensitive='yes'>
<token>Parkinson</token>
<token spacebefore="no">’</token>
<token spacebefore="no">s</token>
<token>disease</token>
</antipattern>
<pattern>
<marker><token>Parkinson</token>
<token spacebefore="no" min="0">’</token>
<token spacebefore="no" min="0">s</token>
<token>disease</token></marker>
</pattern>
<message><suggestion>Parkinson’s disease</suggestion></message>
</rule>