Revision: 7873
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7873&view=rev
Author:   dominikoeo
Date:     2012-08-17 22:29:36 +0000 (Fri, 17 Aug 2012)
Log Message:
-----------
[br] detect invalid mutation *Ar c'herio?\195?\185* -> "ar gerio?\195?\185"

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-08-17 20:48:03 UTC 
(rev 7872)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2012-08-17 22:29:36 UTC 
(rev 7873)
@@ -1490,10 +1490,11 @@
           <token regexp="yes">[au]r</token>
           <marker>
             <and>
-              <token postag="N f s.*|N m p t.*" postag_regexp="yes" 
regexp="yes">c’h.*
-                <exception postag="N f s.*|N m p t.*" postag_regexp="yes" 
regexp="yes" inflected="yes">(g|c’h).*</exception>
+              <token postag="N f s M:.*|N m p t M:.*" postag_regexp="yes" 
regexp="yes">c’h.*
+                <exception postag="N f s M:.*|N m p t M:.*" 
postag_regexp="yes" regexp="yes" inflected="yes">g.*</exception>
+                <exception postag="N[^M]*" postag_regexp="yes" regexp="yes" 
inflected="yes">c’h.*</exception>
               </token>
-              <token postag="N f s.*|N m p t.*" postag_regexp="yes" 
regexp="yes" inflected="yes">k.*
+              <token postag="N f s M:.*|N m p t M:.*" postag_regexp="yes" 
regexp="yes" inflected="yes">k.*
                 <exception postag="N m s.*|N f p.*" postag_regexp="yes" 
regexp="yes" inflected="yes">k.*</exception>
               </token>
             </and>
@@ -1531,6 +1532,27 @@
       </rule>
       <rule>
         <pattern>
+          <token regexp="yes">[au]r</token>
+          <marker>
+            <and>
+              <token postag="N f p M:.*|N m . M:.*" postag_regexp="yes" 
regexp="yes">c’h.*
+                <exception postag="N f s.*|N m p t.*" postag_regexp="yes" 
regexp="yes" inflected="yes">g.*</exception>
+                <exception postag="N[^M]*" postag_regexp="yes" regexp="yes" 
inflected="yes">c’h.*</exception>
+              </token>
+              <token postag="N f p M:.*|N m . M:.*" postag_regexp="yes" 
regexp="yes" inflected="yes">g.*</token>
+            </and>
+          </marker>
+        </pattern>
+        <message>Direizh eo ober ur c’hemmadur dre vlotaat er ger «\2» amañ. 
Ha fellout a rae deoc’h skrivañ <suggestion><match no="2" 
regexp_match="...(.*)" regexp_replace="g$1"/></suggestion>?</message>
+        <example type="incorrect">Ar <marker>c’herioù</marker>.</example>
+        <example type="correct">Ar <marker>gerioù</marker>.</example>
+        <example type="correct">Ar <marker>ger</marker>.</example>
+        <example type="incorrect">Ar <marker>c’hizioù</marker>.</example>
+        <example type="correct">Ar <marker>gizioù</marker>.</example>
+        <example type="correct">Ar <marker>C’hallaoued</marker>.</example>
+      </rule>
+      <rule>
+        <pattern>
           <token regexp="yes">a[nr]</token>
           <marker>
             <and>

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to