Skip to content

Commit

Permalink
[nl] improve rule HAHA_KOMMA
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-baas committed Aug 28, 2023
1 parent 91bae24 commit 673540f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17075,10 +17075,16 @@ regexp case-insensitive maken: (?i)
</rulegroup>
<rulegroup id="HAHA_KOMMA" name="Haha zonder komma">
<rule>
<antipattern>
<token postag="UNKNOWN"/>
<token negate="yes">,</token>
<token regexp="yes" case_sensitive="yes">[Hh]ah[ha]+|[Hh]ih[hi]+|[Hh]eh[he]+</token>
<example>Saito Mokichi's Shinitamau Haha.</example>
</antipattern>
<pattern>
<marker>
<token negate="yes">,</token>
<token regexp="yes">(ha|hi|ho){2,10}</token>
<token negate="yes" regexp="yes">[.,]</token>
<token regexp="yes" case_sensitive="yes">hah[ha]+|hih[hi]+|heh[he]+</token>
</marker>
<token postag="SENT_END"/>
</pattern>
Expand All @@ -17088,15 +17094,15 @@ regexp case-insensitive maken: (?i)
</rule>
<rule>
<antipattern>
<token regexp="yes">(ha|hi|ho){2,10}</token>
<token regexp="yes">hah[ha]+|hih[hi]+|heh[he]+</token>
<token postag="SENT_END"/>
</antipattern>
<pattern>
<token postag_regexp="yes" postag="SENT_START|START"/>
<marker>
<token regexp="yes">(ha|hi|ho){2,10}</token>
<token regexp="yes">hah[ha]+|hih[hi]+|heh[he]+</token>
</marker>
<token negate="yes">,</token>
<token negate="yes">,<exception postag_regexp="yes" postag="ITP.*|UNKNOWN"/></token>
</pattern>
<message>Hier hoort een komma.</message>
<suggestion>\2,</suggestion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ USA
<example correction="je">Ik zie <marker>jou</marker> daar wel staan.</example>
</rule>
</rulegroup>
<rulegroup id="WIJ_ZIJ_MIJ_TEMP" name="Wij, zij, jij/jou/jouw, mij → we, ze, je, me" tags="picky" tone_tags="clarity" default="temp_off">
<rulegroup id="WIJ_ZIJ_MIJ_TEMP" name="Wij, zij, mij → we, ze, me" tags="picky" tone_tags="clarity" default="temp_off">
<!-- move to WIJ_ZIJ_MIJ if diff looks good -->
<antipattern>
<token postag="SENT_START"/>
Expand Down

0 comments on commit 673540f

Please sign in to comment.