Revision: 5949
http://languagetool.svn.sourceforge.net/languagetool/?rev=5949&view=rev
Author: dominikoeo
Date: 2011-11-20 20:33:19 +0000 (Sun, 20 Nov 2011)
Log Message:
-----------
[br] detect errors such as *C?\226?\128?\153hastell Nevez* ?\226?\134?\146
"C?\226?\128?\153hastell-Nevez"
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-20 18:17:35 UTC
(rev 5948)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml 2011-11-20 20:33:19 UTC
(rev 5949)
@@ -618,21 +618,6 @@
<rulegroup id="FAZ_KEMM_DRE_VLOTAAT_AR" name="kemmadur dre vlotaat en anv
goude ar ger-mell.">
<rule>
<pattern mark_from="1">
- <token postag="SENT_START"/>
- <token postag="[^M]*M.*:1:.*" postag_regexp="yes">
- <exception negate_pos="yes" postag="[^M]*M:.*"
postag_regexp="yes"/>
- <exception>vat</exception>
- </token>
- </pattern>
- <message>Ne zlefe ket bezañ ur c’hemmadur dre vlotaat amañ.</message>
- <example type="incorrect"><marker>Zebriñ</marker> a ran.</example>
- <example type="correct"><marker>Debriñ</marker> a ran.</example>
- <example type="incorrect"><marker>C’hallout</marker> a ran.</example>
- <example type="correct"><marker>Gallout</marker> a ran.</example>
- <example type="correct">Vat a raio ur c’hafe tomm.</example>
- </rule>
- <rule>
- <pattern mark_from="1">
<token>hor</token>
<token inflected="yes" regexp="yes">k.*<exception
regexp="yes">c.*</exception></token>
</pattern>
@@ -770,6 +755,7 @@
<and>
<token postag="N m s.*|N f p.*" postag_regexp="yes"
regexp="yes">v.*
<exception postag="N m s.*|N f p.*" postag_regexp="yes"
regexp="yes" inflected="yes">v.*</exception>
+ <exception regexp="yes">(?-i)Vouster</exception>
</token>
<token postag="N m s.*|N f p.*" postag_regexp="yes" regexp="yes"
inflected="yes">m.*
<exception postag="N f s.*|N m p t.*" postag_regexp="yes"
regexp="yes" inflected="yes">m.*</exception>
@@ -779,6 +765,7 @@
<message>Direizh eo kemmañ ar ger «\2» amañ. Ha fellout a rae deoc’h
skrivañ <suggestion><match no="2" regexp_match=".(.*)"
regexp_replace="m$1"/></suggestion>?</message>
<example type="incorrect">Ar <marker>vammoù</marker></example>
<example type="correct">Ar mammoù</example>
+ <example type="correct">Ar Vouster</example>
</rule>
<rule>
<pattern mark_from="1">
@@ -901,8 +888,22 @@
<example type="incorrect">Ar <marker>weleoù</marker></example>
<example type="correct">Ar gweleoù</example>
</rule>
-
</rulegroup>
+ <rule id="FAZ_KEMM" name="kemmadur faziet">
+ <pattern mark_from="1">
+ <token postag="SENT_START"/>
+ <token postag="[^M]*M.*" postag_regexp="yes">
+ <exception negate_pos="yes" postag="[^M]*M:.*" postag_regexp="yes"/>
+ <exception regexp="yes">va[dt]</exception>
+ </token>
+ </pattern>
+ <message>Ne zlefe ket bezañ ur c’hemmadur dre vlotaat amañ.</message>
+ <example type="incorrect"><marker>Zebriñ</marker> a ran.</example>
+ <example type="correct"><marker>Debriñ</marker> a ran.</example>
+ <example type="incorrect"><marker>C’hallout</marker> a ran.</example>
+ <example type="correct"><marker>Gallout</marker> a ran.</example>
+ <example type="correct">Vat a raio ur c’hafe tomm.</example>
+ </rule>
<rulegroup id="KEMM_MESKET_MA" name="kemmadur mesket goude ar stagell ma">
<rule>
<pattern mark_from="1">
@@ -1170,7 +1171,7 @@
</token>
<token postag="[^M]*M:.*" postag_regexp="yes">
<exception negate_pos="yes" postag="[^M]*M:.*|SENT_END"
postag_regexp="yes"/>
- <exception>vat</exception>
+ <exception regexp="yes">va[dt]</exception>
</token>
</pattern>
<message>Ne zlefe ket bezañ ur c’hemmadur er ger «\2» goude ur
verb.</message>
@@ -1187,7 +1188,7 @@
<token
regexp="yes">a-benn|arabat|abaoe|eus|evel(-se)?|hag?|hep|ke[nt]|krenn|lies|mard?|nemet|nebeu(dig)?|pas|pep|pebezh|pegen|pere|petvet|peseurt|petore|setu</token>
<token postag="[^M]*M:.*" postag_regexp="yes">
<exception negate_pos="yes" postag="[^M]*M:.*" postag_regexp="yes"/>
- <exception>var</exception>
+ <exception>vat</exception>
</token>
</pattern>
<message>Ne zlefe ket bezañ ur c’hemmadur er ger «\2» goude ar ger
«\1».</message>
@@ -1357,8 +1358,8 @@
</rule>
</category>
- <category name="ELISION">
- <rule id="DA_M" name="d’am → da‘m">
+ <category name="Elision">
+ <rule id="DA_M" name="d’am → da’m">
<pattern>
<token regexp="yes">[dmp]’</token>
<token regexp="yes">a[mz]</token>
@@ -1368,8 +1369,8 @@
<example type="correct">Ur pok da'm gwaz</example>
<example type="incorrect"><marker>P’az</marker> eer d’ar
marc’had</example>
<example type="correct">Pa’z eer d’ar marc’had</example>
- <example type="incorrect">Abaoe <marker>m’az</marker> on yac‘h
en-dro</example>
- <example type="correct">Abaoe ma’z on yac‘h en-dro</example>
+ <example type="incorrect">Abaoe <marker>m’az</marker> on yac’h
en-dro</example>
+ <example type="correct">Abaoe ma’z on yac’h en-dro</example>
</rule>
<rule id="D_AR" name="da’r → d’ar">
<pattern>
@@ -1778,6 +1779,16 @@
<example type="incorrect">Ober a ra <marker>war dro</marker> ar
saout.</example>
<example type="correct">Ober a ra war-dro ar saout.</example>
</rule>
+
+ <rule id="C_HASTELL_NEVEZ" name="C’hastell Nevez → C’hastell-Nevez">
+ <pattern case_sensitive="yes">
+ <token>C’hastell</token>
+ <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>C’hastell Nevez</marker> emaon o
chom.</example>
+ <example type="correct">E C’hastell-Nevez emaon o chom.</example>
+ </rule>
</category>
<category name="Araogenn">
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