Revision: 5943
http://languagetool.svn.sourceforge.net/languagetool/?rev=5943&view=rev
Author: dominikoeo
Date: 2011-11-20 07:31:48 +0000 (Sun, 20 Nov 2011)
Log Message:
-----------
[br] fixed false positives such as in:
"Ne c?\226?\128?\153hell ket beza?\195?\177"
"Dre te"
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 2011-11-20
02:04:38 UTC (rev 5942)
+++ trunk/JLanguageTool/src/resource/br/disambiguation.xml 2011-11-20
07:31:48 UTC (rev 5943)
@@ -84,7 +84,7 @@
<rulegroup id="EZ_AN" name="ez an">
<rule>
<pattern mark="0">
- <token>ez</token>
+ <token regexp="yes">e?z|ned</token>
<token
regexp="yes">an|in|aen|afen|ajen|ez|i|aes|afes|ajes|a|aio|ae|afe|aje|eomp|aimp|aemp|afemp|ajemp|it|eot|eoc’h|aec’h|afec’h|ajec’h|eont|aint|aent|afent|ajent|eer|eor|aed|afed|ajed</token>
</pattern>
<disambig postag="L e"/>
@@ -150,4 +150,13 @@
<disambig action="remove"><wd lemma="e" pos="L e"/></disambig>
</rule>
</rulegroup>
+ <rulegroup id="NE_V" name="ne + verb">
+ <rule>
+ <pattern mark="1">
+ <token regexp="yes">ned?|n’</token>
+ <token postag="V.*" postag_regexp="yes"/>
+ </pattern>
+ <disambig><match no="1" postag_regexp="yes" postag="V.*"/></disambig>
+ </rule>
+ </rulegroup>
</rules>
Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml 2011-11-20 02:04:38 UTC
(rev 5942)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml 2011-11-20 07:31:48 UTC
(rev 5943)
@@ -191,19 +191,22 @@
<example type="correct">Gwall gozh eo da garr.</example>
<example type="correct">N’a ket mat en-dro an urzhiataer.</example>
<example type="correct">C’hoant am eus da c’hoari.</example>
+ <example type="correct">Ne c’hell ket bezañ.</example>
+ <example type="correct">Ne c’hall ket bezañ.</example>
</rule>
<rule>
<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>
</token>
- <token regexp="yes">t.*</token>
+ <token regexp="yes">t.*<exception>te</exception></token>
</pattern>
<message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «\1». Ha
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)"
regexp_replace="d$1"/></suggestion>?</message>
<example type="incorrect">Da <marker>tad</marker> zo er gêr.</example>
<example type="correct">Da dad zo er gêr.</example>
<example type="incorrect">Gant e <marker>tad</marker></example>
<example type="correct">Gant e dad</example>
+ <example type="correct">Dre te ez a ouzhin.</example>
</rule>
<rule>
<pattern mark_from="1">
@@ -238,7 +241,10 @@
</token>
<and>
<token regexp="yes">g[^w].*<exception>get</exception></token>
- <token regexp="yes" inflected="yes">g[^w].*<exception
inflected="yes" regexp="yes">k.*</exception></token>
+ <token regexp="yes" inflected="yes">g[^w].*
+ <exception inflected="yes" regexp="yes">k.*</exception>
+ <exception postag="UNKNOWN" postag_regexp="yes"/>
+ </token>
</and>
</pattern>
<message>Ur c’hemmadur dre vlotaat a zlefe bezañ goude ar ger «\1». Ha
fellout a rae deoc’h skrivañ <suggestion><match no="2" regexp_match=".(.*)"
regexp_replace="c’h$1"/></suggestion>?</message>
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