Skip to content

Commit

Permalink
[en] fix some FPs, by @AzadehSafakish
Browse files Browse the repository at this point in the history
  • Loading branch information
jaumeortola committed Jul 3, 2024
1 parent 9d38de0 commit ad60b58
Showing 1 changed file with 33 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13945,6 +13945,12 @@ USA
<token>face</token>
</antipattern>
<rule><!-- [1] -->
<antipattern>
<token>missing</token>
<token>persons</token>
<token chunk_re="[IE]-NP.*" />
<example>Fadil requested the help of missing persons investigator Rami Hasan.</example>
</antipattern>
<antipattern> <!--complex compound noun phrases -->
<token chunk_re="B-NP-.*"/>
<token chunk_re="I-NP-.*"/>
Expand Down Expand Up @@ -18765,7 +18771,7 @@ USA
<token postag="NN.*" postag_regexp="yes" />
</pattern>
<message>Did you mean <suggestion>your</suggestion>?</message>
<example correction="your">Thanks all for <marker>you</marker> feedback and help.</example>
<example correction="your">Thanks all for <marker>you</marker> assistance and patience.</example>
<example>I hope this is a quick one for you guys and girls.</example>
<example>I’ll open one up for you now and get a Java Support Agent to help you out.</example>
</rule>
Expand Down Expand Up @@ -81086,6 +81092,14 @@ USA
<example>He advised us not staying calm was probably a bad idea.</example>
</rule>
<rule>
<antipattern> <!-- this isn't an FP, but the suggestions are incorrect in this context and interrupting the parallel structure makes the sentence worse -->
<token skip="5" postag="VBG">
<exception scope="next" postag="V.*" postag_regexp="yes" />
</token>
<token regexp="yes">and|or</token>
<token postag="VBG" chunk="B-VP" />
<example>Meditation helps downshifting more easily after work and sleeping better at night.</example>
</antipattern>
<antipattern>
<token>could</token>
<token>not</token>
Expand Down Expand Up @@ -108815,7 +108829,7 @@ The accident victim died from her injuries.
<pattern>
<token postag="UH">
<exception postag="IN" />
<exception regexp="yes">ha|yo|why|health|check|hip|meow|break|really|never|contact|blah|there</exception>
<exception regexp="yes">ha|yo|why|health|check|hip|meow|break|really|never|contact|blah|there|yum</exception>
</token>
<token>
<match no="0" />
Expand All @@ -108825,6 +108839,7 @@ The accident victim died from her injuries.
<suggestion>\1, \2</suggestion>
<suggestion>\1</suggestion>
<example correction="Oh, oh|Oh"><marker>Oh oh</marker>, he is coming.</example>
<example>Yum yum!</example>
<example>Hip hip hooray!</example>
<example>He had taken meow meow earlier that day</example>
<example>OH OH HETA HETA HETA</example>
Expand Down Expand Up @@ -109460,6 +109475,14 @@ The accident victim died from her injuries.
<token skip="1" regexp="yes">thanks?</token>
<token regexp="yes">needed|necessary</token>
</antipattern>
<antipattern>
<token postag="SENT_START|PCT" postag_regexp="yes" />
<token>no</token>
<token>thank</token>
<token>you</token>
<token>,</token>
<example>No thank you, I'm full.</example>
</antipattern>
<pattern>
<token>
<exception postag="VB.*" postag_regexp="yes" />
Expand Down Expand Up @@ -113654,6 +113677,14 @@ The accident victim died from her injuries.
<example>Rudolph is two years old.</example>
</rule>
<rule>
<antipattern>
<token regexp="yes" case_sensitive="yes" postag="CD">[A-Z].*</token>
<token min="2" regexp="yes" case_sensitive="yes">[A-Z].*</token>
<example>Mussels contributed to a valve problem in the 1990s at the Nine Mile Nuclear Power plant in Lake Ontario.</example>
<example>The Eighty Minute Hour (1974) — A weird and ambitious "space opera" whose characters actually sing.</example>
<example>With the Nine Inch Nails album Year Zero, the concept of the albums songs which "[take] place about 15 years in the future" when "Things are not good." and incorporated sites from the Web.</example>
<example>Chris, As per clause 7.2 (a) (i) of the LNG sales contract we are providing you EcoElctrica's Ninety Day Schedule.</example>
</antipattern>
<antipattern>
<token postag="VBZ">'s<exception postag="POS"/></token>
</antipattern>
Expand Down

0 comments on commit ad60b58

Please sign in to comment.