Revision: 9920
http://languagetool.svn.sourceforge.net/languagetool/?rev=9920&view=rev
Author: jaumeortola
Date: 2013-04-14 06:58:20 +0000 (Sun, 14 Apr 2013)
Log Message:
-----------
[ca] New rules: COM_COM_A, NO_OBSTANT.
Modified Paths:
--------------
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/wrongWordInContext.txt
Modified:
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
2013-04-13 11:06:25 UTC (rev 9919)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
2013-04-14 06:58:20 UTC (rev 9920)
@@ -3797,12 +3797,12 @@
<feature id="nombre"/>
<feature id="genere"/>
<marker>
- <token postag="N.*" postag_regexp="yes" regexp="yes"
inflected="yes">corrent|pendent|germà</token>
+ <token postag="N.*" postag_regexp="yes" regexp="yes"
inflected="yes">corrent|pendent|germà|partit</token>
</marker>
<token postag="AQ.*|V.P.*" postag_regexp="yes"/>
</unify>
</pattern>
- <disambig action="filter" postag="[^A].*"/>
+ <disambig action="filter" postag="[^AV].*"/>
</rule>
<rule id="vers" name="vers (preposició)">
<pattern>
Modified:
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-04-13 11:06:25 UTC (rev 9919)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-04-14 06:58:20 UTC (rev 9920)
@@ -3290,6 +3290,22 @@
</rule>
</category>
<category name="Z) Conjuncions" type="grammar">
+ <rule id="NO_OBSTANT" name="no obstant/això no obstant">
+ <pattern>
+ <token><exception>això</exception></token>
+ <marker>
+ <token>no</token>
+ <token>obstant</token>
+ </marker>
+ <token>,</token>
+ </pattern>
+ <message>Com a conjunció, és preferible usar una altra
expressió. Correcte com a loc. prepositiva (=malgrat).</message>
+ <suggestion>això no obstant</suggestion>
+ <suggestion>no obstant això</suggestion>
+ <short>Expressió preferible</short>
+ <example type="incorrect" correction="Això no obstant|No
obstant això"><marker>No obstant</marker>, vingué.</example>
+ <example type="correct">Això no obstant, vingué.</example>
+ </rule>
<rule id="CONFORME_CONJUNCIO" name="*conforme (conjunció)">
<pattern>
<token><exception postag="V.[SI].*|_GV_" postag_regexp="yes"
inflected="yes" regexp="yes">ser|estar|anar|quedar|restar</exception></token>
@@ -3438,6 +3454,36 @@
<example type="correct">El llibre <marker>tracta</marker> aspectes
importants de les matemàtiques</example>
<example type="correct">El llibre <marker>tracta</marker> a més a
més aspectes importants de les matemàtiques</example>
</rule> -->
+ <rulegroup id="COM_COM_A" name="com / com a">
+ <rule>
+ <pattern>
+ <token postag="V.P.*" skip="1" postag_regexp="yes"
regexp="yes"
inflected="yes">reconèixer|conèixer|definir|veure|entendre|interpretar</token>
+ <marker>
+ <token>com</token>
+ </marker>
+ <token><exception>a</exception><exception
postag="D[AI].*" postag_regexp="yes" inflected="yes"
regexp="yes">el|un</exception></token>
+ </pattern>
+ <message>Probablement cal escriure <suggestion>com
a</suggestion>.</message>
+ <url>http://esadir.cat/sintaxi/advcomcoma/view</url>
+ <short>Possible error</short>
+ <example type="incorrect" correction="com a">Francesc
Sabaté Llopart, conegut <marker>com</marker> Quico Sabaté</example>
+ <example type="correct">És conegut com el millor pastisser del
món.</example>
+ <example type="correct">És reconegut com un dels
millors</example>
+ </rule>
+ <rule>
+ <pattern>
+ <marker>
+ <token>com</token>
+ </marker>
+ <token
regexp="yes">autors?|president[ae]?s?|representants?</token>
+ </pattern>
+ <message>Probablement cal escriure <suggestion>com
a</suggestion>.</message>
+ <url>http://esadir.cat/sintaxi/advcomcoma/view</url>
+ <short>Possible error</short>
+ <example type="incorrect" correction="com a">Hi va
acudir <marker>com</marker> representant del sindicat</example>
+ <example type="correct">És conegut com a autor de
teatre.</example>
+ </rule>
+ </rulegroup>
<rule id="PER_A_DESPRES" name="per a després">
<pattern>
<token>per</token>
@@ -4353,6 +4399,15 @@
</rulegroup>
</category>
<category name="Z) Confusions" type="grammar">
+ <rule id="DE_BADES_DEBADES" name="de bades / debades">
+ <pattern>
+ <token>de</token>
+ <token>bades</token>
+ </pattern>
+ <message>¿Volíeu dir
<suggestion>debades</suggestion>?</message>
+ <example type="incorrect"><marker>de
bades</marker></example>
+ <example type="correct">debades</example>
+ </rule>
<rule id="AVANS" name="avanç/abans de">
<pattern>
<marker>
@@ -17000,7 +17055,7 @@
<token>d'</token>
<token>edat</token>
</pattern>
- <message>Redundància. Val més dir:
<suggestion>anys</suggestion></message>
+ <message>Redundància. Val més dir: <suggestion><match
no="1"/></suggestion></message>
<short>Redundància</short>
<example type="incorrect" correction="anys">Té 30 <marker>anys
d'edat</marker>.</example>
<example type="correct">Té 30 anys.</example>
Modified:
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/wrongWordInContext.txt
===================================================================
---
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/wrongWordInContext.txt
2013-04-13 11:06:25 UTC (rev 9919)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/wrongWordInContext.txt
2013-04-14 06:58:20 UTC (rev 9920)
@@ -51,5 +51,7 @@
(?i)bót(a|es) (?i)bot(a|es) ót ot
(?i)congrenyada|bodega|bodegues|vaixells?|vi|vins|racó|racons|cellers?|nassos|olis?|ferment.*|envell[ieí].+
(?i)peus?|cal[çc].+|muntar|enllustr.+ recipient calçat
#arxivament/arxiu
(?i)arxivaments? (?i)arxius? ivament iu
(?i)denúnci(a|es)|diligènci(a|es)|expedients?|investigació (?i)històrics?
acció o efecte d'arxivar conjunt de documentació; edifici
+#colon|còlon
+(?i)colon (?i)còlon col còl
(?i)jueus?|israel.*|palest[ií].*|pagès|pagesos|terratinents?|serfs?|senyors?
càncers?|tumors?|ganglis?|oper[aàée].*|extirp.* membre d'una colònia part de
l'intestí
#compte/conte/comte
#mil·liar,millar,miliar,miler
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits