Revision: 6578
http://languagetool.svn.sourceforge.net/languagetool/?rev=6578&view=rev
Author: dominikoeo
Date: 2012-03-06 22:18:34 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
[br] detect missing soft mutation after the interrogative word "pe".
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-06
22:16:32 UTC (rev 6577)
+++ trunk/JLanguageTool/src/resource/br/disambiguation.xml 2012-03-06
22:18:34 UTC (rev 6578)
@@ -209,4 +209,12 @@
<disambig action="filter" postag="N.*"/>
</rule>
</rulegroup>
+ <rule id="PE_INT" name="pe interrogatif">
+ <pattern mark="1">
+ <token postag="SENT_START"/>
+ <token>pe</token>
+ <token postag="N.*" postag_regexp="yes"/>
+ </pattern>
+ <disambig postag="J itg"/>
+ </rule>
</rules>
Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/br/grammar.xml 2012-03-06 22:16:32 UTC
(rev 6577)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml 2012-03-06 22:18:34 UTC
(rev 6578)
@@ -200,9 +200,10 @@
<rulegroup id="KEMM_DRE_VLOTAAT_GER" name="kemmadur dre vlotaat goude
gerioù zo.">
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="V.*" postag_regexp="yes">a</exception>
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">k.*</token>
@@ -216,8 +217,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">t.*</token>
@@ -242,9 +244,10 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
<exception scope="previous">ez</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">p.*</token>
@@ -264,8 +267,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">gw.*</token>
@@ -279,8 +283,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">g(?!ou[ie])[^w].*
@@ -299,8 +304,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes">gou[ie].*
@@ -316,8 +322,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes" postag="UNKNOWN"
negate_pos="yes">d.*
@@ -340,11 +347,14 @@
<example type="correct">Pa <marker>zeuio</marker></example>
<example type="correct">An ti a <marker>dle</marker> bezañ
amañ.</example>
<example type="correct">An ti a <marker>zle</marker> bezañ
amañ.</example>
+ <example type="incorrect">Pe <marker>deiz</marker> e teuy?</example>
+ <example type="correct">Pe zeiz e teuy?</example>
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes" inflected="yes" postag="UNKNOWN"
negate_pos="yes">d.*
@@ -369,9 +379,10 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
<exception scope="previous" regexp="yes">e?z|ned</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes">b.*
@@ -391,8 +402,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<token regexp="yes">m.*
<exception regexp="yes"
inflected="yes">[mp][ae]|ma’|meur</exception>
@@ -407,9 +419,10 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="V.*" postag_regexp="yes">a</exception>
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes">c’h.*
@@ -429,8 +442,9 @@
</rule>
<rule>
<pattern mark_from="1">
- <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|re|seul
+ <token
regexp="yes">2|[ae]|aba|da|daou|div|dre|eme|endra|ez|gwall|ne|pa|pe|re|seul
<exception postag="P|L e" postag_regexp="yes">e</exception>
+ <exception postag="C coor">pe</exception>
</token>
<and>
<token regexp="yes">z.*
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs