Skip to content

Commit

Permalink
[en] add rule and fix #1907
Browse files Browse the repository at this point in the history
* reverts change in 653b885

653b885#comments
  • Loading branch information
Tiago F. Santos committed Sep 4, 2019
1 parent c420c48 commit fe957b2
Showing 1 changed file with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15856,11 +15856,9 @@ USA
<token regexp="yes">s?he|(any|every|no|some)(one|body)</token>
<token postag="RB"><exception postag="VBD"/></token>
<marker>
<token postag="VB[GP]?" postag_regexp="yes"><exception postag="VB[ND]|JJ.*|RB|MD" postag_regexp="yes"/></token>
<token postag="VB[GP]?" postag_regexp="yes"><exception postag="VB[ND]|JJ.*|RB|MD" postag_regexp="yes"/>
<exception regexp='yes'>don|haven|aren</exception></token>
</marker>
<token>
<exception spacebefore="no" regexp="yes">['’]</exception><!-- #1907 -->
</token>
</pattern>
<message>The pronoun '<match no="2"/>' is usually used with a third-person or a past tense verb: <suggestion><match no="4" postag="VBZ"/></suggestion>, <suggestion><match no="4" postag="VBD"/></suggestion>.</message>
<example correction="walks|walked">He always <marker>walk</marker> to the building.</example>
Expand All @@ -15869,6 +15867,22 @@ USA
<example>He always <marker>walked</marker> to the building.</example>
<example>He really don't like it.</example><!-- #1907 -->
</rule>
<rule><!-- Created by Tiago F. Santos, 04-09-2019 -->
<!-- #1907 https://github.com/languagetool-org/languagetool/commit/653b885ea8261f259f565b484c674b30481291a4#r34950962 -->
<pattern>
<token negate="yes" regexp="yes"><exception inflected="yes" regexp="yes">feel|hear|see|prevent|help|stop|suggest</exception>(that|ha[sd]|will|must|could|can|should|would|does|did|is|may|might|t|was|dare|lest|without)</token>
<token regexp="yes">s?he|(any|every|no|some)(one|body)</token>
<token postag="RB"><exception postag="VBD"/></token>
<marker>
<token regexp='yes'>don|haven|aren</token>
</marker>
<token spacebefore="no" regexp="yes">['’]</token>
</pattern>
<message>The pronoun '<match no="2"/>' is usually used with a third-person or a past tense verb: <suggestion><match no="4" postag="VBZ"/>n</suggestion>, <suggestion><match no="4" postag="VBD"/>n</suggestion>.</message>
<example correction="doesn|didn">He really <marker>don</marker>'t like it.</example><!-- #1907 -->
<example>He really doesn't like it.</example>
<example>He really didn't like it.</example>
</rule>
<rule>
<antipattern>
<token regexp="yes">with(out)?</token>
Expand Down

1 comment on commit fe957b2

@tiff
Copy link
Member

@tiff tiff commented on fe957b2 Sep 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.