Revision: 9909
http://languagetool.svn.sourceforge.net/languagetool/?rev=9909&view=rev
Author: jaumeortola
Date: 2013-04-12 09:17:39 +0000 (Fri, 12 Apr 2013)
Log Message:
-----------
[ca] New rule: ALLO_ADJECTIU
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
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-10 19:51:45 UTC (rev 9908)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
2013-04-12 09:17:39 UTC (rev 9909)
@@ -6945,7 +6945,7 @@
<token><exception postag="SPS00|CC"
postag_regexp="yes"/><exception inflected="yes"
regexp="yes">ser|estar|semblar|parèixer|considerar</exception></token> <!-- en
calent -->
<marker>
<and>
- <token postag="V.G.*" postag_regexp="yes"><exception
regexp="yes">arrogant|equivalent</exception></token> <!-- exception: tots els
verbs reflexius -->
+ <token postag="V.G.*" postag_regexp="yes"><exception
regexp="yes">arrogant|equivalent|important</exception></token> <!-- exception:
tots els verbs reflexius -->
<token postag="A.*" postag_regexp="yes"><exception
postag="_GN.*" postag_regexp="yes" /></token>
</and>
</marker>
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-10 19:51:45 UTC (rev 9908)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-04-12 09:17:39 UTC (rev 9909)
@@ -50,6 +50,49 @@
</equivalence>
</unification>
<category name="Z) Concordances en grups nominals" type="grammar">
+ <rulegroup id="ALLO_ADJECTIU" name="allò + adjectiu (valor abstractiu)">
+ <rule>
+ <pattern>
+ <token>allò</token>
+ <token postag="A..[MC]S.*" postag_regexp="yes"
regexp="yes">h?[aeiouàéèíóòú].+</token>
+ </pattern>
+ <message>Amb valor abstractiu val més usar una
altra construcció. Correcte si equival a "aquella cosa <match no="2"
postag="AQ.*" postag_regexp="yes" postag_replace="AQ0[FC]S0"/>".</message>
+ <suggestion>el fet <match no="2"/></suggestion>
+ <suggestion>la cosa <match no="2" postag="AQ.*"
postag_regexp="yes" postag_replace="AQ0[FC]S0"/></suggestion>
+ <suggestion>les coses <match no="2" postag="AQ.*"
postag_regexp="yes" postag_replace="AQ0[FC]P0"/></suggestion>
+ <suggestion>l'<match no="2"/></suggestion>
+ <short>Possible construcció incorrecta</short>
+ <example type="incorrect" correction="el fet
important|la cosa important|les coses importants|l'important"><marker>allò
important</marker></example>
+ <example type="correct">l'important</example>
+ </rule>
+ <rule>
+ <pattern>
+ <token>allò</token>
+ <token postag="A..[MC]S.*"
postag_regexp="yes"><exception
regexp="yes">h?[aeiouàéèíóòú].+</exception></token>
+ </pattern>
+ <message>Amb valor abstractiu val més usar una
altra construcció.. Correcte si equival a "aquella cosa <match no="2"
postag="AQ.*" postag_regexp="yes" postag_replace="AQ0[FC]S0"/>".</message>
+ <suggestion>el fet <match no="2"/></suggestion>
+ <suggestion>la cosa <match no="2" postag="AQ.*"
postag_regexp="yes" postag_replace="AQ0[FC]S0"/></suggestion>
+ <suggestion>les coses <match no="2" postag="AQ.*"
postag_regexp="yes" postag_replace="AQ0[FC]P0"/></suggestion>
+ <suggestion>el <match no="2"/></suggestion>
+ <short>Possible construcció incorrecta</short>
+ <example type="incorrect" correction="el fet
considerable|la cosa considerable|les coses considerables|el
considerable"><marker>allò considerable</marker></example>
+ <example type="correct">l'important</example>
+ </rule><rule>
+ <pattern>
+ <token>allò</token>
+ <token postag="VMP.*SM."
postag_regexp="yes"></token>
+ </pattern>
+ <message>Amb valor abstractiu val més usar una
altra construcció. Correcte si equival a "aquella cosa <match no="2"
postag="AQ.*" postag_regexp="yes" postag_replace="AQ0[FC]S0"/>".</message>
+ <suggestion>el que <match no="2" postag="VMP.*SM."
postag_regexp="yes" postag_replace="VMIP3S00"/></suggestion>
+ <suggestion>allò que <match no="2"
postag="VMP.*SM." postag_regexp="yes" postag_replace="VMIP3S00"/></suggestion>
+ <suggestion>el fet <match no="2"/></suggestion>
+ <suggestion>la cosa <match no="2" postag="VMP.*SM."
postag_regexp="yes" postag_replace="VMP.*SF."/></suggestion>
+ <short>Possible construcció incorrecta</short>
+ <example type="incorrect" correction="el que
estableix|allò que estableix|el fet establert|la cosa establerta|la cosa
establida"><marker>allò establert</marker></example>
+ <example type="correct">l'important</example>
+ </rule>
+ </rulegroup>
<rulegroup id="CONCORDANCES_NUMERALS" name="concordances en numerals">
<!-- noms, adjectius en singular -->
<rule>
@@ -10879,10 +10922,10 @@
<example type="correct">De cara enfora no ha dit mai res.</example>
<example type="correct">Treu la cara enfora.</example>
</rule>
- <rule id="CORRER_A_CARREC" name="*córrer/anar/ser a càrrec de">
+ <rule id="CORRER_A_CARREC" name="*córrer/*estar/anar/ser a càrrec de">
<pattern>
<marker>
- <token inflected="yes">córrer</token>
+ <token regexp="yes"
inflected="yes">córrer|estar<exception>estat</exception></token>
</marker>
<token>a</token>
<token>càrrec</token>
@@ -17236,6 +17279,15 @@
<example type="incorrect"
correction="col·lidí"><marker>col·lisionà</marker></example>
<example type="correct">col·lidir</example>
</rule>
+ <rule id="DESPEDIDA" name="despedida">
+ <pattern>
+ <token inflected="yes">despedida</token>
+ </pattern>
+ <message>Paraula admesa només en alguns diccionaris.</message>
+ <suggestion><match no="1" regexp_match="despedid[ae](s?)"
regexp_replace="comiat$1" /></suggestion>
+ <example type="incorrect" correction="comiat">Fou la seva
<marker>despedida</marker></example>
+ <example type="correct">s'acomiadà</example>
+ </rule>
<rule id="DESPEDIR" name="despedir">
<pattern>
<token inflected="yes">despedir</token>
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