Revision: 6366
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6366&view=rev
Author:   dominikoeo
Date:     2012-01-29 02:30:05 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
[br] - fixed a false positive in "ur gouel bras".
     - removed a duplicate exception.
     - added a rule to check that 'peogwir' should
       be followed by the verbal particule 'e'.

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

Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml        2012-01-28 19:55:11 UTC 
(rev 6365)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2012-01-29 02:30:05 UTC 
(rev 6366)
@@ -1664,7 +1664,9 @@
       </rule>
       <rule>
         <pattern mark_from="1" mark_to="-1">
-          <token postag="N f s.*|N m p t.*" postag_regexp="yes"/>
+          <token postag="N f s.*|N m p t.*" postag_regexp="yes">
+            <exception postag="N f p.*|N m s.*|N m p|N m p [^t].*" 
postag_regexp="yes"/>
+          </token>
           <token postag="J.*" postag_regexp="yes" inflected="yes" 
regexp="yes">[gbm].*
             <exception postag="J[^M]*M.*:1:.*" postag_regexp="yes"/>
             <exception postag="[^J].*" postag_regexp="yes"/>
@@ -1685,10 +1687,12 @@
         <example type="correct">Al lodenn vrasañ.</example>
         <example type="incorrect">Ur gevredigezh 
<marker>gouiziek</marker>.</example>
         <example type="correct">Ur gevredigezh ouiziek.</example>
+        <example type="correct">Ur gouel bras.</example>
       </rule>
       <rule>
         <pattern mark_from="1" mark_to="-1">
           <token postag="N f s.*|N m p t.*" postag_regexp="yes" 
regexp="yes">.*[lmnrvaeiouwy]
+            <exception postag="N f p.*|N m s.*|N m p|N m p [^t].*" 
postag_regexp="yes"/>
           </token>
           <token postag="J.*" postag_regexp="yes" inflected="yes" 
regexp="yes">[ktp].*
             <exception postag="J[^M]*M.*:1:.*" postag_regexp="yes"/>
@@ -1708,6 +1712,7 @@
       <rule>
         <pattern mark_from="1">
           <token postag="N f s.*|N m p t.*" postag_regexp="yes">
+            <exception postag="N f p.*|N m s.*|N m p|N m p [^t].*" 
postag_regexp="yes"/>
             <exception regexp="yes">.*([lnmrvaeiouù]|lh)</exception>
             <exception>gwall</exception>
           </token>
@@ -1737,7 +1742,6 @@
         <pattern mark_from="1">
           <token postag="N f p.*|N m s.*" postag_regexp="yes">
             <exception postag="N f s.*|N m p t.*" postag_regexp="yes"/>
-            <exception postag="N f s.*|N m p t.*" postag_regexp="yes"/>
             <exception regexp="yes" 
inflected="yes">.|re|aer|avel|brud|c’hoari|c’hwezh|gwall|lur|revr|seul|tra|war</exception>
           </token>
           <token postag="J[^M]*M:.*" postag_regexp="yes">
@@ -1957,6 +1961,36 @@
       <example type="incorrect">Hag <marker>ha</marker> zo</example>
       <example type="correct">Hag a zo</example>
     </rule>
+
+    <rulegroup id="PEOGWIR" name="peogwin + e">
+      <rule>
+        <pattern mark_to="-1">
+          <token>peogwir</token>
+          <token negate="yes">e<exception inflected="yes" 
regexp="yes">bezañ|ne</exception></token>
+          <token negate="yes" inflected="yes" regexp="yes">bezañ|kaout
+            <exception regexp="yes">[pd]?eus|[bpd](oa|ez|efe|ije)</exception>
+          </token>
+        </pattern>
+        <message>Ar ger «peogwir» a c’oulenn atav ar rannig-verb «e».</message>
+        <example type="incorrect"><marker>Peogwir plijout</marker> a ra 
din.</example>
+        <example type="correct">Peogwir e plij din.</example>
+        <example type="correct">Peogwir ez eo deut.</example>
+        <example type="correct">Peogwir en deus labour.</example>
+        <example type="correct">Peogwir out trist.</example>
+        <example type="correct">Peogwir n’hon eus ket arc’hant.</example>
+      </rule>
+      <rule>
+        <pattern mark_from="1" mark_to="-1">
+          <token>peogwir</token>
+          <token regexp="yes">am|az|ac’h</token>
+          <token inflected="yes">bezañ</token>
+        </pattern>
+        <message>Ar ger «peogwir» a c’houlenn atav ar rannig-verb «e». Ha 
fellout a rae skrivañ <suggestion><match no="1" regexp_match=".(.*)" 
regexp_replace="e$1"/></suggestion>?</message>
+        <example type="incorrect">Peogwir <marker>am</marker> eus amzer 
a-walc’h.</example>
+        <example type="correct">Peogwir em eus amzer a-walc’h.</example>
+      </rule>
+    </rulegroup>
+
   </category>
 
   <category name="Elision">

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to