Back to LanguageTool Homepage - Privacy - Imprint

New Grammar rule in English


(Kaviyazhagan Kajendiran) #1

Hi Daniel,
I have generated a rule for English which is shown below in detail. Please check this rule whether is correct

<rule id="PRONOUN" name="Possessive Adjective">    
      <pattern mark_from="1">
      <token regexp="yes">is|am|are|was|were|had|have</token>
      <token postag="PRP" postag_regexp="yes"></token>
      </pattern>
       <message>The pronoun shold be Possessive form :<suggestion><match no="2" postag="PRP$" postag_regexp="yes"></match></suggestion>.</message>
        <short>Agreement error</short>
        <example type="correct">This is <marker>my</marker> Book.</example>
        <example correction="my" type="incorrect">This is <marker>I</marker> Book.</example>
      </rule>

Example: This is you test

           1. Line 1, column 9 Message: The pronoun shold be Possessive form :your. Correction: you Context: This is you test

(Daniel Naber) #2

Thanks for the rule. I suggest you post the rule to the mailing list instead of the forum, as there are more developers on the list. Also, please test the rule with testrules.sh or testrules.bat first.