Hi I’ve been working on a number of rules to spot typo’s in my own written work.
Here are four I’ve tested on the rule editor, which didn’t identify any false alarms.
I’ve also looked at a number of rules for Suite/Suit, but this has proven to be more difficult.
<rule id="DEPENDENT" name="Dependent" >
<pattern>
<marker>
<token>dependant</token>
</marker>
<token>on</token>
</pattern>
<message>Did you mean <suggestion>dependent</suggestion> on?</message>
<example type="correct">They are dependent on the results</example>
<example type="incorrect">They are dependant on the results</example>
</rule>
<rule id="ESSENTIALLY" name="essentially" >
<pattern>
<marker>
<token>essential</token>
</marker>
<token postag='DT'><exception>that</exception></token>
</pattern>
<message>Did you mean <suggestion>essentially</suggestion>?</message>
<example type="correct">This is essentially the same work</example>
<example type="incorrect">This is essential the same work.</example>
</rule>
<rule id="VERBGAVE" name="verb before gave" >
<pattern>
<token postag='VB|VBP' postag_regexp='yes'><exception postag='NNP|NN|NNS' postag_regexp='yes'></exception></token>
<marker>
<token>gave</token>
<token negate='yes'>in</token>
</marker>
</pattern>
<message>Did you mean <suggestion>give</suggestion>?</message>
<example type="correct">The updates do give the correct date.</example>
<example type="incorrect">The updates do gave the correct date.</example>
</rule>
<rule id="TOWITHDRAWN" name="to|will before withdrawn" >
<pattern>
<token regexp="yes">to|will</token>
<marker>
<token>withdrawn</token>
</marker>
</pattern>
<message>Did you mean <suggestion>withdraw</suggestion>?</message>
<example type="correct">The team will withdraw.</example>
<example type="correct">The team are to withdraw.</example>
<example type="incorrect">The team will withdrawn.</example>
</rule>
Regards
Peter