Revision: 6613
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6613&view=rev
Author:   dominikoeo
Date:     2012-03-17 10:52:34 +0000 (Sat, 17 Mar 2012)
Log Message:
-----------
[br] fixed incorrect correction in *Teir wech*. Fixing
     it requires to split rule for mutation after
     words in "gw.*" and "w[^w]*".

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-03-16 09:42:07 UTC 
(rev 6612)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2012-03-17 10:52:34 UTC 
(rev 6613)
@@ -866,13 +866,31 @@
             <exception postag="C sub">ma</exception>
           </token>
           <and>
-            <token regexp="yes" inflected="yes">g.*
+            <token regexp="yes" inflected="yes">g[^w].*
               <exception regexp="yes" inflected="yes">k.*</exception>
             </token>
             <token regexp="yes">(c’h|[kw]).*</token>
           </and>
         </pattern>
         <message>Ne zlefe ket bezañ ur c’hemmadur amañ. Ha fellout a rae 
deoc’h skrivañ <suggestion><match no="2" regexp_match="(c’h|[kw])(.*)" 
regexp_replace="g$2"/></suggestion>?</message>
+        <example type="incorrect">Tri <marker>kouarnamant</marker>.</example>
+        <example type="incorrect">Tri <marker>c’houarnamant</marker>.</example>
+        <example type="correct">Tri <marker>gouarnamant</marker>.</example>
+      </rule>
+      <rule>
+        <pattern mark_from="1">
+          <token regexp="yes">am|em|he|ma|nav|o|peder|pevar|teir|tri|va
+            <exception postag_regexp="yes" postag="L o|X EN_EM"/>
+            <exception postag="C sub">ma</exception>
+          </token>
+          <and>
+            <token regexp="yes" inflected="yes">gw.*
+              <exception regexp="yes" inflected="yes">k.*</exception>
+            </token>
+            <token regexp="yes">k?w.*</token>
+          </and>
+        </pattern>
+        <message>Ne zlefe ket bezañ ur c’hemmadur amañ. Ha fellout a rae 
deoc’h skrivañ <suggestion><match no="2" regexp_match="k?w(.*)" 
regexp_replace="gw$1"/></suggestion>?</message>
         <example type="incorrect">Teir <marker>wetur</marker> en 
deus.</example>
         <example type="incorrect">Teir <marker>kwetur</marker> en 
deus.</example>
         <example type="correct">Teir gwetur en deus.</example>

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


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to