Revision: 6630
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6630&view=rev
Author:   dominikoeo
Date:     2012-03-23 12:19:46 +0000 (Fri, 23 Mar 2012)
Log Message:
-----------
[br] fixed false positive in:
     - "Ho c'hoant"
     - "Pe mat pe fall e oa"
     - "Mar en deus"

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

Modified: trunk/JLanguageTool/src/resource/br/disambiguation.xml
===================================================================
--- trunk/JLanguageTool/src/resource/br/disambiguation.xml      2012-03-22 
18:59:40 UTC (rev 6629)
+++ trunk/JLanguageTool/src/resource/br/disambiguation.xml      2012-03-23 
12:19:46 UTC (rev 6630)
@@ -151,13 +151,22 @@
       <disambig postag="C sub"/>
     </rule>
   </rulegroup>
-  <rule id="EM_EUS" name="em eus">
-    <pattern mark="1">
-      <token regexp="yes">[ea]m</token>
-      <token>eus</token>
-    </pattern>
-    <disambig postag="V pres 3 s"/>
-  </rule>
+  <rulegroup id="KAOUT" name="kaout">
+    <rule>
+      <pattern mark="0">
+        <token regexp="yes">[ea]([mnz]|c’h)|he|hon|hoc’h|o</token>
+        <token regexp="yes">[pd]?eus|[bpd](eze?|oa?)</token>
+      </pattern>
+      <disambig postag="X KAOUT1"/>
+    </rule>
+    <rule>
+      <pattern mark="1">
+        <token regexp="yes">[ea]([mnz]|c’h)|he|hon|hoc’h|o</token>
+        <token regexp="yes">[pd]?eus|[bpd](eze?|oa?)</token>
+      </pattern>
+      <disambig postag="X KAOUT2"/>
+    </rule>
+  </rulegroup>
   <rulegroup id="E_R" name="e pronom">
     <rule>
       <pattern mark="1">

Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml        2012-03-22 18:59:40 UTC 
(rev 6629)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2012-03-23 12:19:46 UTC 
(rev 6630)
@@ -675,13 +675,16 @@
           <token regexp="yes">ho|ez|az</token>
           <and>
             <token regexp="yes" inflected="yes">k.*</token>
-            <token regexp="yes">(g|c’h).*</token>
+            <token regexp="yes">(g|c’h).*
+              <exception postag="[^M]*" postag_regexp="yes" regexp="yes" 
inflected="yes">c’h.*</exception>
+            </token>
           </and>
         </pattern>
         <message>Ne zlefe ket bezañ ur c’hemmadur goude ar ger «\1» gant ur 
ger a grog gant «k». Ha fellout a rae deoc’h skrivañ <suggestion><match no="2" 
regexp_match="(g|c’h)(.*)" regexp_replace="k$2"/></suggestion>?</message>
-        <example type="incorrect">Ho <marker>c’harr</marker></example>
-        <example type="incorrect">Ho <marker>garr</marker></example>
-        <example type="correct">Ho <marker>karr</marker></example>
+        <example type="incorrect">Ho <marker>c’harr</marker>.</example>
+        <example type="incorrect">Ho <marker>garr</marker>.</example>
+        <example type="correct">Ho <marker>karr</marker>.</example>
+        <example type="correct">Ho <marker>c’hoant</marker>.</example>
       </rule>
       <rule>
         <pattern mark_from="1">
@@ -1691,8 +1694,8 @@
 
     <rule id="V_KEMM" name="kemmadur ebet goude ar verb">
       <pattern mark_from="1">
-        <token postag="V.*" postag_regexp="yes">
-          <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/>
+        <token postag="V.*|X KAOUT2" postag_regexp="yes">
+          <exception negate_pos="yes" postag="V.*|X KAOUT2" 
postag_regexp="yes"/>
           <exception>eme</exception>
         </token>
         <token postag="[^M]*M:.*" postag_regexp="yes">
@@ -1702,6 +1705,7 @@
       </pattern>
       <message>Ne zlefe ket bezañ ur c’hemmadur er ger «\2» goude ur 
verb.</message>
       <example type="incorrect">Gwelet em eus <marker>vagoù</marker>.</example>
+      <example type="incorrect">Gwelet en doa <marker>vagoù</marker>.</example>
       <example type="correct">Gwelet em eus bagoù.</example>
       <example type="incorrect">N’out ket chomet 
<marker>bell</marker>.</example>
       <example type="correct">N’out ket chomet pell.</example>
@@ -2705,7 +2709,7 @@
     </rule>
     <rule id="J_TRE" name="fentus tre → fentus-tre (hag all)">
       <pattern>
-        <token postag="J.*" postag_regexp="yes"/>
+        <token postag="J.*" 
postag_regexp="yes"><exception>pe</exception></token>
         <token regexp="yes">kenañ|mat|meurbet|tre</token>
       </pattern>
       <message>Implijit <suggestion>\1-\2</suggestion>.</message>
@@ -2713,6 +2717,7 @@
       <example type="correct">Fentus-tre eo.</example>
       <example type="incorrect"><marker>Brudet mat</marker> eo.</example>
       <example type="correct"><marker>Brudet-mat</marker> eo.</example>
+      <example type="correct">Pe mat pe fall e oa.</example>
     </rule>
     <rule id="SETU_ME" name="setu me → setu-me (hag all)">
       <pattern>
@@ -3577,12 +3582,14 @@
       <pattern>
         <!-- Exception avoids double error in *a hend-all* already
              detected by rule A_HEND_ALL -->
-        <token regexp="yes" 
postag="UNKNOWN">.*-all<exception>hend</exception></token>
+        <token regexp="yes" 
postag="UNKNOWN">.*-(all|bennak)<exception>hend</exception></token>
       </pattern>
       <message>Implijit <suggestion><match no="1" regexp_match="(.*)-([^-]*)" 
regexp_replace="$1 $2"/></suggestion>.</message>
       <example type="incorrect">En <marker>tu-all</marker></example>
       <example type="correct">En tu all</example>
       <example type="correct">Biskoazh kemend-all!</example>
+      <example type="incorrect">Un <marker>dra-bennak</marker>.</example>
+      <example type="correct">Un dra bennak.</example>
     </rule>
   </category>
 
@@ -5253,7 +5260,7 @@
       <pattern>
         <token regexp="yes">pa|mar</token>
         <token>
-          <exception postag="V.*|UNKNOWN" postag_regexp="yes"/>
+          <exception postag="V.*|X KAOUT1|UNKNOWN" postag_regexp="yes"/>
           <exception regexp="yes">n?[e’]</exception>
         </token>
       </pattern>
@@ -5262,6 +5269,7 @@
       <example type="correct">Pa lavaran dit.</example>
       <example type="correct">Pa ne labouran ket.</example>
       <example type="correct">Pa ’z on skuizh.</example>
+      <example type="correct">Mar en deus unan bennak divskouarn da 
glevout.</example>
     </rule>
 
     <rulegroup id="HEMAN_HOUMAN" name="hemañ ha houmañ">

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