Revision: 6006
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6006&view=rev
Author:   dominikoeo
Date:     2011-12-04 11:35:42 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
[br] detect more incorrect word mutations after "en em + verb"

Modified Paths:
--------------
    trunk/JLanguageTool/src/rules/br/grammar.xml

Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml        2011-12-03 18:47:54 UTC 
(rev 6005)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2011-12-04 11:35:42 UTC 
(rev 6006)
@@ -381,9 +381,12 @@
         <pattern mark_from="2">
           <token>en</token>
           <token>em</token>
-          <token regexp="yes">k.*</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">k.*</token>
+            <token postag="V.*" postag_regexp="yes" 
regexp="yes">(k|c’h).*</token>
+          </and>
         </pattern>
-        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)" 
regexp_replace="g$1"/></suggestion>?</message>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" 
regexp_match="(k|c’h)(.*)" regexp_replace="g$1"/></suggestion>?</message>
         <example type="incorrect">En em <marker>kavout</marker> a raimp dirak 
an iliz.</example>
         <example type="correct">En em gavout a raimp dirak an iliz.</example>
       </rule>
@@ -391,12 +394,71 @@
         <pattern mark_from="2">
           <token>en</token>
           <token>em</token>
-          <token regexp="yes">gw.*</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">t.*</token>
+            <token postag="V.*" postag_regexp="yes" regexp="yes">[tz].*</token>
+          </and>
         </pattern>
-        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)" 
regexp_replace="$1"/></suggestion>?</message>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" regexp_match=".(.*)" 
regexp_replace="d$1"/></suggestion>?</message>
+        <example type="incorrect">En em <marker>treiñ</marker> a rae etrezeg 
ennon</example>
+        <example type="incorrect">En em <marker>zreiñ</marker> a rae etrezeg 
ennon</example>
+        <example type="correct">En em <marker>dreiñ</marker> a rae etrezeg 
ennon</example>
+      </rule>
+      <rule>
+        <pattern mark_from="2">
+          <token>en</token>
+          <token>em</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">gw.*</token>
+            <token postag="V.*" postag_regexp="yes" 
regexp="yes">[gk]w.*</token>
+          </and>
+        </pattern>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" regexp_match=".(.*)" 
regexp_replace="$1"/></suggestion>?</message>
         <example type="incorrect">En em <marker>gwelet</marker> a 
raen.</example>
+        <example type="incorrect">En em <marker>kwelet</marker> a 
raen.</example>
         <example type="correct">En em welet a raen.</example>
       </rule>
+      <rule>
+        <pattern mark_from="2">
+          <token>en</token>
+          <token>em</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">g[^w].*</token>
+            <token postag="V.*" postag_regexp="yes" regexp="yes">[gk].*</token>
+          </and>
+        </pattern>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" regexp_match=".(.*)" 
regexp_replace="c’h$1"/></suggestion>?</message>
+        <example type="incorrect">En em <marker>goulenn</marker> a 
ran</example>
+        <example type="incorrect">En em <marker>koulenn</marker> a 
ran</example>
+        <example type="correct">En em c’houlenn a ran</example>
+      </rule>
+      <rule>
+        <pattern mark_from="2">
+          <token>en</token>
+          <token>em</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">d.*</token>
+            <token postag="V.*" postag_regexp="yes" regexp="yes">[dt].*</token>
+          </and>
+        </pattern>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" regexp_match=".(.*)" 
regexp_replace="z$1"/></suggestion>?</message>
+        <example type="incorrect">En em <marker>dibab</marker> a reont 
o-unan.</example>
+        <example type="incorrect">En em <marker>tibab</marker> a reont 
o-unan.</example>
+        <example type="correct">En em <marker>zibab</marker> a reont 
o-unan.</example>
+      </rule>
+      <rule>
+        <pattern mark_from="2">
+          <token>en</token>
+          <token>em</token>
+          <and>
+            <token postag="V.*" postag_regexp="yes" regexp="yes" 
inflected="yes">m.*</token>
+            <token postag="V.*" postag_regexp="yes" regexp="yes">m.*</token>
+          </and>
+        </pattern>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude «\1 \2». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="3" regexp_match=".(.*)" 
regexp_replace="v$1"/></suggestion>?</message>
+        <example type="incorrect">En em <marker>magañ</marker> a ra 
e-unan.</example>
+        <example type="correct">En em <marker>vagañ</marker> a ra 
e-unan.</example>
+      </rule>
     </rulegroup>
 
     <rulegroup id="KEMM_HEMAN_VLOTAAT" name="kemmadur dre vlotaat goude 
hemañ.">

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to