Revision: 9782
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=9782&view=rev
Author:   dominikoeo
Date:     2013-03-24 23:09:52 +0000 (Sun, 24 Mar 2013)
Log Message:
-----------
[br] - fixed an incorrect suggestions and added more tests on suggestions.
     - "Daou dre gant" was giving an incorrect error suggesting the
       incorrect *Daou zre gant*.

Modified Paths:
--------------
    
trunk/languagetool/languagetool-language-modules/br/src/main/resources/org/languagetool/rules/br/grammar.xml

Modified: 
trunk/languagetool/languagetool-language-modules/br/src/main/resources/org/languagetool/rules/br/grammar.xml
===================================================================
--- 
trunk/languagetool/languagetool-language-modules/br/src/main/resources/org/languagetool/rules/br/grammar.xml
        2013-03-24 22:41:41 UTC (rev 9781)
+++ 
trunk/languagetool/languagetool-language-modules/br/src/main/resources/org/languagetool/rules/br/grammar.xml
        2013-03-24 23:09:52 UTC (rev 9782)
@@ -484,7 +484,7 @@
               <token regexp="yes" inflected="yes" postag="UNKNOWN|Z.*" 
negate_pos="yes" postag_regexp="yes">d.*
                 <exception inflected="yes">da</exception>
                 <exception regexp="yes" 
inflected="yes">t.*|dirak|dindan|diouzh</exception>
-                <exception regexp="yes">[dt]ud(-(mañ|se|hont))?</exception>
+                <exception 
regexp="yes">[dt]ud(-(mañ|se|hont))?|dre(-gant)?</exception>
               </token>
               <!-- La mutation est faculative dans le verbe dleout d’après
                    Hentenn Oulpan 3, Kentel 2 p.17 -->
@@ -2266,7 +2266,7 @@
       </rule>
       <rule>
         <pattern>
-          <token postag="K e .*" postag_regexp="yes">
+          <token postag="K . .*" postag_regexp="yes">
             <exception 
regexp="yes">[dtz]aou|[dtz]iv|[dtz]ri|[tdz]eir|[pbf]evar|[pbf]eder|nav</exception>
           </token>
           <marker>
@@ -5252,6 +5252,18 @@
       <example type="incorrect" correction="dra bennak">Un 
<marker>dra-bennak</marker>.</example>
       <example type="correct">Un dra bennak.</example>
     </rule>
+    <rule id="DRE_GANT" name="dre gant → dre-gant">
+      <pattern>
+        <token postag="K . .*" postag_regexp="yes"/>
+        <marker>
+          <token>dre</token>
+          <token>gant</token>
+        </marker>
+      </pattern>
+      <message>Ha fellout a rae deoc’h skrivañ 
<suggestion>\2-\3</suggestion>?</message>
+      <example type="incorrect" correction="dre-gant">Daou <marker>dre 
gant</marker>.</example>
+      <example type="correct">Daou dre-gant.</example>
+    </rule>
   </category>
 
   <category name="Araogenn">
@@ -5718,7 +5730,7 @@
         <token regexp="yes">Bourc’h|Briant|Geron|Nevez|Noez|Paol|Tepaod</token>
       </pattern>
       <message>Implijit <suggestion>\1-\2</suggestion>.</message>
-      <example type="incorrect">E <marker>Kastell Nevez</marker> emaon o 
chom.</example>
+      <example type="incorrect" correction="Kastell-Nevez">E <marker>Kastell 
Nevez</marker> emaon o chom.</example>
       <example type="correct">E Kastell-Nevez emaon o chom.</example>
     </rule>
 
@@ -5770,7 +5782,7 @@
         <token postag="J"/>
       </pattern>
       <message>Implijit <suggestion>pegen</suggestion> pe <suggestion>na 
pegen</suggestion> goude an doare gourc’hemenn «\2». (CHALM V2.2.4)</message>
-      <example type="incorrect">Sellit <marker>na</marker> kaer eo!</example>
+      <example type="incorrect" correction="pegen|na pegen">Sellit 
<marker>na</marker> kaer eo!</example>
       <example type="correct">Sellit na pegen kaer eo!</example>
       <example type="correct">Sellit pegen kaer eo!</example>
     </rule>
@@ -6114,7 +6126,7 @@
             <token>eno</token>
           </marker>
         </pattern>
-        <message>Ha fellout a rae deoc’h skrivañ <suggestion>di</suggestion> 
goude ur verb evel «\1?</message>
+        <message>Ha fellout a rae deoc’h skrivañ <suggestion>di</suggestion> 
goude ur verb evel «\1»?</message>
         <example type="incorrect">C’hoant am eus da vont 
<marker>eno</marker>.</example>
         <example type="correct">C’hoant am eus da vont di.</example>
       </rule>
@@ -6127,7 +6139,7 @@
             <token>eno</token>
           </marker>
         </pattern>
-        <message>Ha fellout a rae deoc’h skrivañ <suggestion>di</suggestion> 
goude ur verb evel «\1?</message>
+        <message>Ha fellout a rae deoc’h skrivañ <suggestion>di</suggestion> 
goude ur verb evel «\1»?</message>
         <example type="incorrect">Mont a ran <marker>eno</marker>.</example>
         <example type="correct">Mont a ran di.</example>
       </rule>
@@ -6154,7 +6166,7 @@
           </token>
         </pattern>
         <message>«\1 a» a implijer dirak un anv. Ha fellout a rae deoc’h 
skrivañ <suggestion>\1 a \2</suggestion>?</message>
-        <example type="incorrect"><marker>Re dud</marker> zo.</example>
+        <example type="incorrect" correction="Re a dud"><marker>Re 
dud</marker> zo.</example>
         <example type="correct">Re a dud zo.</example>
         <example type="correct">Re vihan eo.</example>
       </rule>
@@ -6166,8 +6178,8 @@
             <exception postag="N.*" postag_regexp="yes"/>
           </token>
         </pattern>
-        <message>«Re» hep «a» a implijer dirak un anv-gwan. Ha fellout a rae 
deoc’h skrivañ <suggestion>\1 \2</suggestion>?</message>
-        <example type="incorrect"><marker>Re a vras</marker> eo.</example>
+        <message>«Re» hep «a» a implijer dirak un anv-gwan. Ha fellout a rae 
deoc’h skrivañ <suggestion>\1 \3</suggestion>?</message>
+        <example type="incorrect" correction="Re vras"><marker>Re a 
vras</marker> eo.</example>
         <example type="correct">Re vras eo.</example>
         <example type="correct">Re a drouz zo.</example>
         <example type="correct">Ar re a gar al lennegezh</example>
@@ -6382,7 +6394,7 @@
           <token postag="N.*" postag_regexp="yes"/>
         </pattern>
         <message>«\2» a rank bezañ implijet hep «\3». Ha fellout a rae deoc’h 
skrivañ <suggestion>\2</suggestion>? (CHALM R1.5.1)</message>
-        <example type="incorrect">Un <marker>nebeud a</marker> levrioù am 
eus.</example>
+        <example type="incorrect" correction="nebeud">Un <marker>nebeud 
a</marker> levrioù am eus.</example>
         <example type="correct">Un nebeud levrioù am eus.</example>
       </rule>
     </rulegroup>
@@ -6410,7 +6422,7 @@
           <token>eus</token>
         </pattern>
         <message>Ger doublet «\1 \2». Ha fellout a rae deoc’h skrivañ 
<suggestion>\1</suggestion>?</message>
-        <example type="incorrect"><marker>Eus eus</marker> Brest e 
oa.</example>
+        <example type="incorrect" correction="Eus"><marker>Eus eus</marker> 
Brest e oa.</example>
         <example type="correct">Bez’ ez eus eus Breizh</example>
         <example type="correct">Soñj am eus eus da vouezh.</example>
         <example type="correct">Soñj ’m eus eus da vouezh.</example>
@@ -6435,7 +6447,7 @@
         <token>eus</token>
       </pattern>
       <message>Ret eo skrivañ <suggestion>\1’z eus</suggestion>.</message>
-      <example type="incorrect"><marker>Ma ez</marker> eus ur gudenn</example>
+      <example type="incorrect" correction="Ma’z eus"><marker>Ma ez</marker> 
eus ur gudenn</example>
       <example type="correct">Ma’z eus ur gudenn</example>
     </rule>
     <rule id="MAZ_EO" name="maz eo → ma’z eo">
@@ -6453,8 +6465,8 @@
           <token>setu</token>
           <token>ac’hanon</token>
         </pattern>
-        <message>Ha fellout a rae deoc’h skrivañ <suggestion>\1 
me</suggestion>?</message>
-        <example type="incorrect"><marker>Setu ac’hanon</marker></example>
+        <message>Ha fellout a rae deoc’h skrivañ 
<suggestion>\1-me</suggestion>?</message>
+        <example type="incorrect" correction="Setu-me"><marker>Setu 
ac’hanon</marker></example>
         <example type="correct"><marker>Setu-me</marker></example>
       </rule>
       <rule>
@@ -6462,8 +6474,8 @@
           <token>setu</token>
           <token>ac’hanout</token>
         </pattern>
-        <message>Ha fellout a rae deoc’h skrivañ <suggestion>\1 
te</suggestion>?</message>
-        <example type="incorrect"><marker>Setu ac’hanout</marker></example>
+        <message>Ha fellout a rae deoc’h skrivañ 
<suggestion>\1-te</suggestion>?</message>
+        <example type="incorrect" correction="Setu-te"><marker>Setu 
ac’hanout</marker></example>
         <example type="correct"><marker>Setu-te</marker></example>
       </rule>
       <rule>
@@ -6471,8 +6483,8 @@
           <token>setu</token>
           <token>ac’hanomp</token>
         </pattern>
-        <message>Ha fellout a rae deoc’h skrivañ <suggestion>\1 
ni</suggestion>?</message>
-        <example type="incorrect"><marker>Setu ac’hanomp</marker></example>
+        <message>Ha fellout a rae deoc’h skrivañ 
<suggestion>\1-ni</suggestion>?</message>
+        <example type="incorrect" correction="Setu-ni"><marker>Setu 
ac’hanomp</marker></example>
         <example type="correct"><marker>Setu-ni</marker></example>
       </rule>
     </rulegroup>
@@ -6513,7 +6525,7 @@
         <token regexp="yes">a[lrn]</token>
       </pattern>
       <message>Ha fellout a rae deoc’h skrivañ <suggestion>\1 
a</suggestion>?</message>
-      <example type="incorrect"><marker>Meur al</marker> levr en 
deus.</example>
+      <example type="incorrect" correction="Meur a"><marker>Meur al</marker> 
levr en deus.</example>
       <example type="correct">Meur a levr en deus.</example>
     </rule>
     <rulegroup id="UR_MIZ_ZO" name="ur miz zo → miz zo">
@@ -6524,7 +6536,7 @@
           <token>zo</token>
         </pattern>
         <message>Ger-mell ebet dirak «\2» pa vez lakaet dirak «\3» da ziskouez 
pad un amzer aet hebiou. Ha fellout a rae deoc’h skrivañ <suggestion>\2 
\3</suggestion>?</message>
-        <example type="incorrect"><marker>Ur miz zo</marker> e oa aet 
kuit.</example>
+        <example type="incorrect" correction="Miz zo"><marker>Ur miz 
zo</marker> e oa aet kuit.</example>
         <example type="correct">Miz zo e oa aet kuit.</example>
       </rule>
       <rule>
@@ -6580,7 +6592,7 @@
           </marker>
         </pattern>
         <message>Ret eo implijout <suggestion>banne \3 \4</suggestion> gant ur 
ger hollek «\3» a-raok ar ger «\4».</message>
-        <example type="incorrect">N’eus <marker>avel ebet</marker>.</example>
+        <example type="incorrect" correction="banne avel ebet">N’eus 
<marker>avel ebet</marker>.</example>
         <example type="correct">N’eus banne avel ebet.</example>
       </rule>
       <rule>
@@ -6593,7 +6605,7 @@
           </marker>
         </pattern>
         <message>Ret eo implijout <suggestion>tamm \3 \4</suggestion> gant ur 
ger hollek «\3» a-raok ar ger «\4».</message>
-        <example type="incorrect">Ne zebran <marker>frouezh 
ebet</marker>.</example>
+        <example type="incorrect" correction="tamm frouezh ebet">Ne zebran 
<marker>frouezh ebet</marker>.</example>
         <example type="correct">Ne zebran tamm frouezh ebet.</example>
       </rule>
     </rulegroup>

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


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to