[LanguageTool] SF.net SVN: languagetool:[7924] trunk/JLanguageTool/src/rules/pt/grammar. xml

2012-08-26 Thread dnaber
Revision: 7924
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7924view=rev
Author:   dnaber
Date: 2012-08-26 09:53:58 + (Sun, 26 Aug 2012)
Log Message:
---
[pt] new rules + cleanup of short elements by Marco A.G.Pinto

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

Modified: trunk/JLanguageTool/src/rules/pt/grammar.xml
===
--- trunk/JLanguageTool/src/rules/pt/grammar.xml2012-08-25 23:40:10 UTC 
(rev 7923)
+++ trunk/JLanguageTool/src/rules/pt/grammar.xml2012-08-26 09:53:58 UTC 
(rev 7924)
@@ -21,7 +21,7 @@
 License along with this library; if not, write to the Free Software
 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 
-$Id: grammar.xml,v 1.022 2012-08-24 11:36:00 marcoagpinto Exp $
+$Id: grammar.xml,v 1.023 2012-08-26 10:12:00 marcoagpinto Exp $
 --
 rules lang=pt xsi:noNamespaceSchemaLocation=../rules.xsd 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xs=http://www.w3.org/2001/XMLSchema;
 
@@ -41,7 +41,6 @@
 tokena/token
   /pattern
   messageSubstituir «a a» por suggestiona/suggestion./message
-  shortGramática./short
   example type=incorrectTenho markera a/marker data 
marcada./example
   example type=correctTenho markera/marker data marcada./example
 /rule
@@ -55,7 +54,6 @@
 tokenbocado/token
   /pattern
   messageSubstituir «à bocado» por suggestionhá 
bocado/suggestion./message
-  shortGramática./short
   example type=incorrectCheguei markerà bocado/marker do 
Algarve./example
   example type=correctCheguei markerhá bocado/marker do 
Algarve./example
 /rule
@@ -69,7 +67,6 @@
 tokenda/token
   /pattern
   messageSubstituir «abordo da» por suggestiona bordo 
da/suggestion./message
-  shortGramática./short
   example type=incorrectVai uma pessoa importante markerabordo 
da/marker fragata./example
   example type=correctVai uma pessoa importante markera bordo 
da/marker fragata./example
 /rule
@@ -83,7 +80,6 @@
 tokendo/token
   /pattern
   messageSubstituir «abordo do» por suggestiona bordo 
do/suggestion./message
-  shortGramática./short
   example type=incorrectVai uma pessoa importante markerabordo 
do/marker avião./example
   example type=correctVai uma pessoa importante markera bordo 
do/marker avião./example
 /rule
@@ -97,7 +93,6 @@
 tokenbracelete/token
   /pattern
   messageSubstituir «a bracelete» por suggestiono 
bracelete/suggestion./message
-  shortGramática./short
   example type=incorrectColoca markera bracelete/marker./example
   example type=correctColoca markero bracelete/marker./example
 /rule
@@ -112,7 +107,6 @@
 tokenem/token
   /pattern
   messageSubstituir «à mais em» por suggestionhá mais 
em/suggestion./message
-  shortGramática./short
   example type=incorrectAmanhã markerà mais em/marker 
jogo./example
   example type=correctAmanhã markerhá mais em/marker 
jogo./example
 /rule
@@ -126,7 +120,6 @@
 tokenque/token
   /pattern
   messageSubstituir «à que» por suggestionhá 
que/suggestion./message
-  shortGramática./short
   example type=incorrectMas markerà que/marker saber 
estudar./example
   example type=correctMas markerhá que/marker saber 
estudar./example
 /rule
@@ -142,7 +135,6 @@
 tokenhora/token
   /pattern
   messageSubstituir «à última da hora» por suggestionà última 
hora/suggestion./message
-  shortGramática./short
   example type=incorrectEles decidiram tudo markerà última da 
hora/marker./example
   example type=correctEles decidiram tudo markerà última 
hora/marker./example
 /rule
@@ -156,7 +148,6 @@
 tokenfronteiras/token
   /pattern
   messageSubstituir «além fronteiras» por 
suggestionalém-fronteiras/suggestion./message
-  shortGramática./short
   example type=incorrectO perigo encontra-se markeralém 
fronteiras/marker./example
   example type=correctO perigo encontra-se 
markeralém-fronteiras/marker./example
 /rule
@@ -170,7 +161,6 @@
 tokenvírus/token
   /pattern
   messageSubstituir «anti vírus» por 
suggestionantivírus/suggestion./message
-  shortGramática./short
   example type=incorrectActualiza sempre o markeranti 
vírus/marker./example
   example type=correctActualiza sempre o 
markerantivírus/marker./example
 /rule
@@ -185,7 +175,6 @@
 tokenver/token
   /pattern
   messageSubstituir «ao meu ver» por suggestiona meu 
ver/suggestion./message
-  shortGramática./short
   example type=incorrectIsto é, markerao meu ver/marker, muito 
importante./example
   example type=correctIsto é, markera meu ver/marker, muito 
importante./example
 /rule
@@ -199,7 +188,6 @@
 tokenbraceletes/token
   /pattern
 

[LanguageTool] SF.net SVN: languagetool:[7926] trunk/JLanguageTool/src

2012-08-26 Thread dominikoeo
Revision: 7926
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7926view=rev
Author:   dominikoeo
Date: 2012-08-26 11:22:28 + (Sun, 26 Aug 2012)
Log Message:
---
[fr] - added rule ACCORD_COULEUR to find such errors:
   *Des yeux marrons* - Des yeux marron
   *Des yeux vert* - Des yeux verts
 - fixed false positive in une sale affaire

Modified Paths:
--
trunk/JLanguageTool/src/resource/fr/disambiguation.xml
trunk/JLanguageTool/src/rules/fr/grammar.xml

Modified: trunk/JLanguageTool/src/resource/fr/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/fr/disambiguation.xml  2012-08-26 
10:42:55 UTC (rev 7925)
+++ trunk/JLanguageTool/src/resource/fr/disambiguation.xml  2012-08-26 
11:22:28 UTC (rev 7926)
@@ -86,7 +86,7 @@
   rule
 pattern
   token regexp=yesune|quelques|plusieurs/token
-  markertoken 
regexp=yesétranges?|larges?|drôles?|doubles?|triples?|quadruples?/token/marker
+  markertoken 
regexp=yesétranges?|larges?|drôles?|doubles?|triples?|quadruples?|sales?|solides?/token/marker
 /pattern
 disambig action=filter postag=J [ef] .*/
   /rule

Modified: trunk/JLanguageTool/src/rules/fr/grammar.xml
===
--- trunk/JLanguageTool/src/rules/fr/grammar.xml2012-08-26 10:42:55 UTC 
(rev 7925)
+++ trunk/JLanguageTool/src/rules/fr/grammar.xml2012-08-26 11:22:28 UTC 
(rev 7926)
@@ -1054,7 +1054,7 @@
 rule
 pattern
 marker
-token regexp=yesd[eé]sexception inflected=yes 
scope=previous regexp=yesapprocher|anniversaire|cap/exception/token
+token regexp=yesd[eé]sexception inflected=yes 
scope=previous 
regexp=yesapprocher|anniversaire|cap|programme/exception/token
 /marker
 token 
regexp=yes\d+|(une?|deux|trois|quatre|cinq|six|sept|huit|neuf|dix|vingt|trente|quarante|cinquante|soixante|septante|octante|huitante|nonante)(-.*)?|onze|douze|treize|quatorze|quinze|seize|cent/token
 token regexp=yesans?|heures?/token
@@ -3074,6 +3074,7 @@
 example type=correctLa justice est markerune si/marker 
belle chose./example
 example type=correctmarkerTelle est/marker la 
question./example
 example type=correctmarkerLa plus forte/marker 
progression./example
+example type=correctC’est une sale affaire./example
 /rule
 rule name=nom féminin suivi du masculin
 pattern
@@ -3112,6 +3113,32 @@
 example type=correctmarkerUne étrange/marker 
expérience./example
 /rule
 /rulegroup
+rulegroup id=ACCORD_COULEUR name=accord couleur
+  rule
+pattern
+  token postag=D . s?p postag_regexp=yes/
+  token postag=N . p postag_regexp=yes/
+  markertoken 
regexp=yesabricots|acajous|anthracites|argents|aubergines|azurs|bistres|briques|bronzes|cachous|caramels|carmins|cerises|chocolats|corails|crèmes|cuivres|ébènes|émeraudes|fraises|garances|grenats|indigos|isabelles|ivoires|lavandes|magentas|marrons|moutardes|nacres|noisettes|ocres|olives|ors|oranges|outremers|pailles|pastels|pervenches|pies|pistaches|pivoines|rouilles|sables|safrans|sépias|tabacs|taupes|tomates|turquoises|vermillons/token/marker
+/pattern
+messageQuand la couleur est exprimée par un nom de plante, de 
fruit, d’animal, de pierre ou de personne, l’invariabilité est alors de rigueur 
car il s’agit de tours elliptique (de la couleur de). Voulez-vous écrire 
suggestionmatch no=3 regexp_match=s$ 
regexp_replace=//suggestion ?/message
+example type=incorrectDes yeux 
markermarrons/marker./example
+example type=correctDes yeux markermarron/marker./example
+example type=correctDes créature 
markermaries/marker./example
+  /rule
+  rule
+pattern
+  token postag=D . s?p postag_regexp=yes/
+  token postag=N . p postag_regexp=yes/
+  markertoken 
regexp=yesalezane?|aubère|baie?|basanée?|beige|bigarrée?|bis|blafarde?|blanc(he)?|blême|bleue?|blonde?|brune?|châtaine?|cramoisie?|dorée?|écrue?|glauque|jaune|livide|louvet(?:te)?|mate?|mordorée?|noire?|opaline?|perse?|rouge|rousse|vairon|verte?|violet(?:te)|zain|zinzoline?/token/marker
+  tokenexception postag=[NJ] .* postag_regexp=yes//token
+/pattern
+messageQuand la couleur est exprimée par un adjectif simple, 
l’accord doit se faire. Voulez-vous écrire suggestionmatch no=3 
regexp_match=$ regexp_replace=s//suggestion ?/message
+example type=incorrectDes yeux markervert/marker./example
+example type=correctDes yeux markerverts/marker./example

[LanguageTool] SF.net SVN: languagetool:[7928] trunk/JLanguageTool/src

2012-08-26 Thread dominikoeo
Revision: 7928
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7928view=rev
Author:   dominikoeo
Date: 2012-08-26 15:01:19 + (Sun, 26 Aug 2012)
Log Message:
---
[fr] fixed false positive in Il est torse nu.

Modified Paths:
--
trunk/JLanguageTool/src/resource/fr/disambiguation.xml
trunk/JLanguageTool/src/rules/fr/grammar.xml

Modified: trunk/JLanguageTool/src/resource/fr/disambiguation.xml
===
--- trunk/JLanguageTool/src/resource/fr/disambiguation.xml  2012-08-26 
11:24:29 UTC (rev 7927)
+++ trunk/JLanguageTool/src/resource/fr/disambiguation.xml  2012-08-26 
15:01:19 UTC (rev 7928)
@@ -719,7 +719,7 @@
 pattern
 token postag=V etre .* postag_regexp=yes skip=2/
 marker
-token postag=J.* postag_regexp=yes/
+token postag=J.* 
postag_regexp=yesexceptiontorse/exception/token
 /marker
 /pattern
 disambigmatch no=2 postag_regexp=yes postag=J.*//disambig

Modified: trunk/JLanguageTool/src/rules/fr/grammar.xml
===
--- trunk/JLanguageTool/src/rules/fr/grammar.xml2012-08-26 11:24:29 UTC 
(rev 7927)
+++ trunk/JLanguageTool/src/rules/fr/grammar.xml2012-08-26 15:01:19 UTC 
(rev 7928)
@@ -3075,6 +3075,7 @@
 example type=correctmarkerTelle est/marker la 
question./example
 example type=correctmarkerLa plus forte/marker 
progression./example
 example type=correctC’est une sale affaire./example
+example type=correctIl est markertorse 
nu/marker./example
 /rule
 rule name=nom féminin suivi du masculin
 pattern
@@ -3484,6 +3485,7 @@
 marker
 token postag=V.* ppa f .*|J f .* 
postag_regexp=yes
 exceptionmême/exception
+exception postag=[JN] [me].* 
postag_regexp=yes/
 /token
 /marker
 /pattern
@@ -3495,6 +3497,7 @@
 example type=correctIls sont même resté ici./example
 example type=incorrectCelui-ci est 
markerrestée/marker./example
 example type=correctCelui-ci est resté./example
+example type=correctIl est markertorse/marker 
nu./example
 /rule
 rule
 pattern

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7929] trunk/JLanguageTool

2012-08-26 Thread jaumeortola
Revision: 7929
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7929view=rev
Author:   jaumeortola
Date: 2012-08-26 21:49:04 + (Sun, 26 Aug 2012)
Log Message:
---
[ca] Rule improved: no cal confondre/cal no confondre

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

Modified: trunk/JLanguageTool/.classpath
===
--- trunk/JLanguageTool/.classpath  2012-08-26 15:01:19 UTC (rev 7928)
+++ trunk/JLanguageTool/.classpath  2012-08-26 21:49:04 UTC (rev 7929)
@@ -41,7 +41,6 @@
classpathentry kind=lib 
path=libs/lucene-analyzers-common-4.0.0-BETA.jar/
classpathentry kind=lib path=libs/lucene-sandbox-4.0.0-BETA.jar/
classpathentry kind=lib path=libs/junit-4.7.jar/
-   classpathentry kind=lib path=libs/jakarta-regexp-1.4.jar/
classpathentry kind=lib path=libs/tika-core-0.9.jar/
classpathentry kind=lib path=libs/ictclas4j-1.0.jar/
classpathentry kind=lib path=libs/CJFtransform_v1.0.1_bin.jar/

Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml
===
--- trunk/JLanguageTool/src/rules/ca/grammar.xml2012-08-26 15:01:19 UTC 
(rev 7928)
+++ trunk/JLanguageTool/src/rules/ca/grammar.xml2012-08-26 21:49:04 UTC 
(rev 7929)
@@ -6444,15 +6444,16 @@
 example type=correctNo tenia cap dubte que sí./example
 /rule
 /rulegroup
-rule id=NO_CAL_OBLIDAR name=no cal oblidat/cal no oblidar
+rule id=NO_CAL_OBLIDAR name=*no cal oblidar/cal no oblidar
 pattern
 tokenno/token
 token inflected=yescaldre/token
-tokenoblidar/token
+token regexp=yesoblidar|confondre/token
 /pattern
 messagePotser volíeu dir suggestionmatch no=2 / match 
no=1 case_conversion=alllower / match no=3 //suggestion./message
 shortSuggeriment/short
 example type=incorrectmarkerNo cal oblidar/marker que les 
coses són així./example
+example type=incorrectmarkerNo cal confondre/marker les 
coses./example
 example type=correctmarkerCal no oblidar/marker que les 
coses són així./example
 /rule
 rule id=PAPER_SECANT name=paper secant

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs


[LanguageTool] SF.net SVN: languagetool:[7930] trunk/JLanguageTool/src/rules/ca/grammar. xml

2012-08-26 Thread jaumeortola
Revision: 7930
  
http://languagetool.svn.sourceforge.net/languagetool/?rev=7930view=rev
Author:   jaumeortola
Date: 2012-08-26 22:36:29 + (Sun, 26 Aug 2012)
Log Message:
---
[ca] new rule: ACABAR + GERUNDI

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

Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml
===
--- trunk/JLanguageTool/src/rules/ca/grammar.xml2012-08-26 21:49:04 UTC 
(rev 7929)
+++ trunk/JLanguageTool/src/rules/ca/grammar.xml2012-08-26 22:36:29 UTC 
(rev 7930)
@@ -1257,6 +1257,18 @@
 /rule
 /rulegroup
 rulegroup id=PERIFRASIS name=Perífrasis d'obligació i de dubte
+rule id=ACABAR_GERUNDI name=*acabà fer/acabà fent
+pattern
+token inflected=yesacabar/token
+marker
+token postag=V.N.* postag_regexp=yes/token
+/marker
+/pattern
+messagePerífrasi verbal incorrecta: suggestionmatch 
no=2 postag=(..)(.+) postag_regexp=yes 
postag_replace=$1G/match/suggestion./message
+example type=incorrectVa acabar 
markerdedicar/marker-li l'obra./example
+example type=correctAcabà dedicant-li l'obra./example
+example type=correctPer acabar farem això./example
+/rule
 rule id=HI_HA_QUE name=Incorrecte: «haver-hi que»
 pattern
 marker

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


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Languagetool-cvs mailing list
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs