Revision: 5979
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=5979&view=rev
Author:   dominikoeo
Date:     2011-11-26 20:27:43 +0000 (Sat, 26 Nov 2011)
Log Message:
-----------
[br] - detect error in *kantonio?\195?\185 Ar C?\226?\128?\153hastell-Nevez* 
?\226?\134?\146 "kantonio?\195?\185 ar C?\226?\128?\153hastell-Nevez"
     - fixed some false positives.

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

Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml        2011-11-26 17:50:39 UTC 
(rev 5978)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml        2011-11-26 20:27:43 UTC 
(rev 5979)
@@ -295,6 +295,7 @@
         <pattern mark_from="1">
           <token 
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|gwall|ne|pa|re|seul
             <exception postag="P|L e" postag_regexp="yes">e</exception>
+            <exception scope="previous" regexp="yes">e?z|ned</exception>
           </token>
           <and>
             <token regexp="yes">b.*
@@ -310,6 +311,7 @@
         <example type="incorrect">Re <marker>bras</marker> eo.</example>
         <example type="correct">Re vras eo.</example>
         <example type="correct">Re bell e oa.</example>
+        <example type="correct">War gresk ez a <marker>bepred</marker> ar 
youl</example>
       </rule>
       <rule>
         <pattern mark_from="1">
@@ -1738,8 +1740,8 @@
         <token>bro</token>
       </pattern>
       <message>Implijit <suggestion>\1-\2</suggestion>.</message>
-      <example type="incorrect">Ur strollad eus <marker>korn bro</marker> An 
Orian</example>
-      <example type="correct">Ur strollad eus <marker>korn-bro</marker> An 
Orian</example>
+      <example type="incorrect">Ur strollad eus <marker>korn bro</marker> an 
Orian</example>
+      <example type="correct">Ur strollad eus <marker>korn-bro</marker> an 
Orian</example>
       <example type="incorrect">Kalz a <marker>gornioù bro</marker> e 
Breizh-Izel</example>
       <example type="correct">Kalz a gornioù-bro e Breizh-Izel</example>
     </rule>
@@ -2088,6 +2090,17 @@
   </category>
 
   <category name="A bep seurt">
+    <rule id="PENNLIZH_AR" name="Pennlizer eber gant ar/al/an">
+      <pattern case_sensitive="yes" mark_from="1" mark_to="-1">
+        <token postag="SENT_START" negate_pos="yes"/>
+        <token regexp="yes">A[rln]</token>
+        <token regexp="yes">\p{Lu}.*</token>
+      </pattern>
+      <message>Pennlizherenn ebet e gerioù-mell an anvioù divoutin pa vezont 
e-kreiz ul lavarenn. Ha fellout a rae deoc’h skrivañ <suggestion><match no="1" 
regexp_match=".(.)" regexp_replace="a$1"/>.</suggestion></message>
+      <example type="incorrect">Kantonioù <marker>Ar</marker> 
C’hastell-Nevez</example>
+      <example type="correct">Kantonioù ar C’hastell-Nevez</example>
+      <example type="correct">An Orian a zo pell ac’hann.</example>
+    </rule>
     <rule id="PEBEZH" name="Pebezh">
       <pattern mark_to="-1">
         <token>pebezh</token>

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


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to