Revision: 6047
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6047&view=rev
Author:   dominikoeo
Date:     2011-12-16 21:03:12 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
[br] - detect error in *Fellout a ran* ?\226?\134?\146 "Fellout a ran din"
     - fixed false positive in "An ti a dle beza?\195?\177" (optional mutation
       d?\226?\134?\146z with verb "dleout")

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-16 16:14:30 UTC 
(rev 6046)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2011-12-16 21:03:12 UTC 
(rev 6047)
@@ -286,19 +286,47 @@
               <exception regexp="yes" inflected="yes">t.*</exception>
               <exception regexp="yes">[dt]ud(-(mañ|se|hont))?</exception>
             </token>
-            <token regexp="yes">[dt].*</token>
+            <!-- La mutation est faculative dans le verbe dleout d'après
+                 Hentenn Oulpan 3, Kentel 2 p.17 -->
+            <token regexp="yes">d.*<exception 
inflected="yes">dleout</exception></token>
           </and>
         </pattern>
         <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «\1». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)" 
regexp_replace="z$1"/></suggestion>?</message>
         <example type="incorrect">Re <marker>diwezhat</marker> e oan.</example>
+        <example type="correct">Re ziwezhat e oan.</example>
+        <example type="correct">Penaos emañ kont gant da dad-kozh?</example>
+        <example type="correct">Dre da faot</example>
+        <example type="correct">Muioc’h a dud</example>
+        <example type="incorrect">Pa <marker>deuio</marker></example>
+        <example type="correct">Pa <marker>zeuio</marker></example>
+        <example type="correct">An ti a <marker>dle</marker> bezañ 
amañ.</example>
+        <example type="correct">An ti a <marker>zle</marker> bezañ 
amañ.</example>
+      </rule>
+      <rule>
+        <pattern mark_from="1">
+          <token 
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|gwall|ne|pa|re|seul
+            <exception postag="P|L e" postag_regexp="yes">e</exception>
+          </token>
+          <and>
+            <token regexp="yes" inflected="yes" postag="UNKNOWN" 
negate_pos="yes">d.*
+              <exception inflected="yes">da</exception>
+              <exception regexp="yes" inflected="yes">t.*</exception>
+              <exception regexp="yes">[dt]ud(-(mañ|se|hont))?</exception>
+            </token>
+            <token regexp="yes">t.*</token>
+          </and>
+        </pattern>
+        <message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «\1». Ha 
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)" 
regexp_replace="z$1"/></suggestion>?</message>
         <example type="incorrect">Re <marker>tiwezhat</marker> e oan.</example>
         <example type="correct">Re ziwezhat e oan.</example>
         <example type="correct">Penaos emañ kont gant da dad-kozh?</example>
         <example type="correct">Dre da faot</example>
         <example type="correct">Muioc’h a dud</example>
-        <example type="incorrect">Pa <marker>deuio</marker></example>
         <example type="incorrect">Pa <marker>teuio</marker></example>
         <example type="correct">Pa <marker>zeuio</marker></example>
+        <example type="incorrect">An ti a <marker>tle</marker> bezañ 
amañ.</example>
+        <example type="correct">An ti a <marker>dle</marker> bezañ 
amañ.</example>
+        <example type="correct">An ti a <marker>zle</marker> bezañ 
amañ.</example>
       </rule>
       <rule>
         <pattern mark_from="1">
@@ -2003,6 +2031,69 @@
         <example type="correct">Alan <marker>’zo</marker> fur.</example>
       </rule>
     </rulegroup>
+
+    <rulegroup id="FELLOUT" name="fellout a ran → fellout a ra din">
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token regexp="yes">ran|raen|rajen|rafen</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 <match no="3" 
regexp_match="(.*)." regexp_replace="$1"/> din</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a ran</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a ra din mont kuit.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token>rin</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 raio din</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a rin</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a raio din mont kuit.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token>rez</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 ra dit</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a rez</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a ra dit mont kuit.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token>raes</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 rae dit</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a raes</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a rae dit mont kuit.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token>ri</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 raio dit</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a ri</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a raio dit mont kuit.</example>
+      </rule>
+      <rule>
+        <pattern>
+          <token regexp="yes">fellout|faotañ</token>
+          <token>a</token>
+          <token regexp="yes">ra[fj]es</token>
+        </pattern>
+        <message>Ar verb «\1» a vez graet gantañ hepken en trede gour unan. Ha 
fellout a rae deoc’h srivañ <suggestion>\1 \2 <match no="3" 
regexp_match="(.*)." regexp_replace="$1"/> dit</suggestion>?</message>
+        <example type="incorrect"><marker>Fellout a rajes</marker> mont 
kuit.</example>
+        <example type="correct">Fellout a raje dit mont kuit.</example>
+      </rule>
+    </rulegroup>
   </category>
 
   <category name="Berennig-stagañ">

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


------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to