Revision: 6506
http://languagetool.svn.sourceforge.net/languagetool/?rev=6506view=rev
Author: dominikoeo
Date: 2012-02-11 20:35:22 + (Sat, 11 Feb 2012)
Log Message:
---
[br] detect errors in:
- *An dra kenta?\195?\177* - An dra genta?\195?\177
- *Lakaet e vrezhoneg* - Lakaet e brezhoneg
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-02-11
19:23:13 UTC (rev 6505)
+++ trunk/JLanguageTool/src/resource/br/disambiguation.xml 2012-02-11
20:35:22 UTC (rev 6506)
@@ -166,6 +166,16 @@
disambig action=removewd lemma=e pos=L e//disambig
/rule
/rulegroup
+ rulegroup id=E_P name=e preposition
+rule
+ pattern mark=1
+token inflected=yes regexp=yestrein|lakaat|skrivañ/token
+token postag=Pe/token
+token postag_regexp=yes postag=N.* regexp=yes.*eg/token
+ /pattern
+ disambig postag=P/
+/rule
+ /rulegroup
rulegroup id=NE_V name=ne + verb
rule
pattern mark=1
@@ -175,4 +185,20 @@
disambigmatch no=1 postag_regexp=yes postag=V.*//disambig
/rule
/rulegroup
+ rulegroup id=UR_N name=ur + anv
+rule
+ pattern mark=1
+tokenurexception scope=previousen/exception/token
+token postag=V.* postag_regexp=yes/
+ /pattern
+ disambig action=filter postag=N.*/
+/rule
+rule
+ pattern mark=1
+token regexp=yesu[ln]|a[nlr]/token
+token postag=V.* postag_regexp=yes/
+ /pattern
+ disambig action=filter postag=N.*/
+/rule
+ /rulegroup
/rules
Modified: trunk/JLanguageTool/src/rules/br/grammar.xml
===
--- trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-11 19:23:13 UTC
(rev 6505)
+++ trunk/JLanguageTool/src/rules/br/grammar.xml2012-02-11 20:35:22 UTC
(rev 6506)
@@ -1680,10 +1680,10 @@
rulegroup id=KEMM_N_J name=Kemmadur en anv-gwan o tont warlec’h an
anv
rule
pattern mark_from=1 mark_to=-1
- token
regexp=yesaer|amzer|avel|brud|c’hoari|c’hwezh|lann|lur|revr|tra/token
+ token
regexp=yesaer|amzer|avel|brud|c’hoari|c’hwezh|lann|lur|revr|[dt]ra/token
token postag=J.* postag_regexp=yes inflected=yes
regexp=yes[ktpgbm].*
exception postag=J[^M]*M.*:1:.* postag_regexp=yes/
-exception postag=[^J].* postag_regexp=yes/
+exception postag=J.*|K e sp o postag_regexp=yes
negate_pos=yes/
/token
token negate=yesha/token
/pattern
@@ -1693,15 +1693,17 @@
example type=correctAn avel markergreñv/marker./example
example type=correctUr skol markerdivyezhek/marker./example
example type=correctUr skol markerzivyezhek/marker./example
+example type=incorrectAn dra markerkentañ/marker./example
+example type=correctAn dra markergentañ/marker./example
/rule
rule
pattern mark_from=1 mark_to=-1
token postag=N f s.*|N m p t.* postag_regexp=yes
-exception postag=N f p.*|N m s.*|N m p|N m p [^t].*
postag_regexp=yes/
+exception postag=N f p.*|N m s.*|N m p|N m p [^t].*|V.*
postag_regexp=yes/
/token
token postag=J.* postag_regexp=yes inflected=yes
regexp=yes[gbm].*
exception postag=J[^M]*M.*:1:.* postag_regexp=yes/
-exception postag=[^J].* postag_regexp=yes/
+exception postag=J.* postag_regexp=yes negate_pos=yes/
!-- bennak is marked as an adjective in the diction, it
should be an adverb --
exceptionbennak/exception
@@ -1724,11 +1726,11 @@
rule
pattern mark_from=1 mark_to=-1
token postag=N f s.*|N m p t.* postag_regexp=yes
regexp=yes.*[lmnrvaeiouwy]
-exception postag=N f p.*|N m s.*|N m p|N m p [^t].*
postag_regexp=yes/
+exception postag=N f p.*|N m s.*|N m p|N m p [^t].*|V.*
postag_regexp=yes/
/token
token postag=J.* postag_regexp=yes inflected=yes
regexp=yes[ktp].*
exception postag=J[^M]*M.*:1:.* postag_regexp=yes/
-exception postag=[^J].* postag_regexp=yes/
+exception postag=J.*|K e sp o postag_regexp=yes
negate_pos=yes/
!-- bennak is marked as an adjective in the diction, it
should be an adverb --
exceptionbennak/exception
@@ -1740,6 +1742,8 @@
example type=correctKendirvi binvidik./example
example type=correctTud kozh./example
example type=correctPaotred pinvidik./example
+example type=incorrectAn dro markerkentañ/marker./example
+example type=correctAn dro