Skip to content

Commit 677af9c

Browse files
Merge pull request #11565 from WebSpellChecker/en_fix_xml_rules
[en] Fix rules to avoid false positives or incorrect suggestions
2 parents 42f83c6 + 8d4cd0c commit 677af9c

File tree

1 file changed

+28
-6
lines changed
  • languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en

1 file changed

+28
-6
lines changed

languagetool-language-modules/en/src/main/resources/org/languagetool/rules/en/grammar.xml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19056,7 +19056,7 @@ USA
1905619056
</rule>
1905719057
<rule>
1905819058
<antipattern>
19059-
<token regexp="yes">with|of|in|at|on</token>
19059+
<token regexp="yes">with|of|in|at|on|to</token>
1906019060
<token>your</token>
1906119061
</antipattern>
1906219062
<pattern>
@@ -19076,6 +19076,7 @@ USA
1907619076
<example>I have written the testimonial using the link you provided in <marker>your</marker> e-mail.</example>
1907719077
<example>Unfortunately, we don't sell it in <marker>your</marker> colour.</example>
1907819078
<example>After that, move on to your next.</example><!-- #2626 -->
19079+
<example>I have sent it to your Gmail.</example>
1907919080
</rule>
1908019081
<rule>
1908119082
<pattern>
@@ -46184,14 +46185,28 @@ USA
4618446185
<token regexp="yes">I|s?he|you|they|we|it</token>
4618546186
<marker>
4618646187
<token regexp="yes">not?</token>
46187-
<token regexp="yes">can|will|[cw]ould|must|should|shall|may|might</token>
46188+
<token regexp="yes">will|[cw]ould|must|should|shall|may|might</token>
4618846189
</marker>
4618946190
<token postag="VB" />
4619046191
</pattern>
4619146192
<message>The word "\2" seems incorrect in this context.</message>
4619246193
<suggestion>\3 not</suggestion>
4619346194
<suggestion>now \3</suggestion>
46194-
<example correction="can not|now can">I <marker>no can</marker> find my bike!</example>
46195+
<example correction="will not|now will">I <marker>no will</marker> find my bike!</example>
46196+
</rule>
46197+
<rule>
46198+
<pattern>
46199+
<token regexp="yes">I|s?he|you|they|we|it</token>
46200+
<marker>
46201+
<token regexp="yes">not?</token>
46202+
<token regexp="yes">can</token>
46203+
</marker>
46204+
<token postag="VB" />
46205+
</pattern>
46206+
<message>The word "\2" seems incorrect in this context.</message>
46207+
<suggestion>cannot</suggestion>
46208+
<suggestion>now can</suggestion>
46209+
<example correction="cannot|now can">I <marker>no can</marker> find my bike!</example>
4619546210
</rule>
4619646211
</rulegroup>
4619746212
<rule id="IN_SANE" name="in sane (insane)">
@@ -87586,7 +87601,7 @@ USA
8758687601
<token>scan</token>
8758787602
</antipattern>
8758887603
<antipattern>
87589-
<token regexp="yes">Excel|Photoshop|Powerpoint|Sketch|Dropbox</token>
87604+
<token regexp="yes">Excel|Photoshop|PowerPoint|Sketch|Dropbox|Figma|Canva</token>
8759087605
<token>file</token>
8759187606
</antipattern>
8759287607
<antipattern>
@@ -104371,7 +104386,7 @@ The accident victim died from her injuries.
104371104386
<marker>
104372104387
<token regexp="yes">consequences?</token>
104373104388
<token postag="IN">
104374-
<exception regexp="yes">of|for|in|on|as|than|along|under|over</exception></token>
104389+
<exception regexp="yes">of|for|in|on|as|than|along|under|over|before</exception></token>
104375104390
</marker>
104376104391
</pattern>
104377104392
<message>The usual preposition to use after "\2" is not "\3". Did you mean <suggestion>\2 of</suggestion>, <suggestion>\2 for</suggestion>, or <suggestion>\2 on</suggestion>?</message>
@@ -104382,6 +104397,7 @@ The accident victim died from her injuries.
104382104397
<example>It is of little consequence to me.</example>
104383104398
<example>Should the situation deteriorate further, it will also have economic consequences as companies hurry to reduce their debt burdens.</example>
104384104399
<example>There are a lot of consequences to begin with.</example>
104400+
<example>One should evaluate the consequences before making any decision.</example>
104385104401
</rule>
104386104402
<rule id='ASK_TO' name='Collocation: ask (to)'>
104387104403
<!-- Created by Nicholas Walker (Bokomaru), 2018-05-16 -->
@@ -116564,6 +116580,10 @@ The accident victim died from her injuries.
116564116580
<example correction="fit">I could <marker>fir</marker> our needs.</example>
116565116581
</rule>
116566116582
<rulegroup id="EM_ME" name="let em (me) know">
116583+
<antipattern>
116584+
<token>em</token>
116585+
<token regexp="yes">dash(?:es)?</token>
116586+
</antipattern>
116567116587
<antipattern>
116568116588
<token regexp="yes" skip="-1">pixels?|px|units?|rems?|s?css|sass|font.*|margin.*|padding.*</token>
116569116589
<token>em</token>
@@ -134588,10 +134608,12 @@ The accident victim died from her injuries.
134588134608
<rule>
134589134609
<pattern>
134590134610
<marker><token>personal</token></marker>
134591-
<token regexp="yes">d(epartment|irector)s?|manag(er|ment)s?|files?|officer?s?</token>
134611+
<token regexp="yes">d(epartment|irector)s?|manag(er|ment)s?|officers?</token>
134592134612
</pattern>
134593134613
<message>Did you mean the noun <suggestion>personnel</suggestion>?</message>
134594134614
<example correction="personnel">He is the <marker>personal</marker> director.</example>
134615+
<example>This is my personal office.</example>
134616+
<example>Each of you has a personal file.</example>
134595134617
</rule>
134596134618
</rulegroup>
134597134619
<rulegroup id="WHORE_WORE" name="whore (wore)">

0 commit comments

Comments
 (0)