Revision: 9942
http://languagetool.svn.sourceforge.net/languagetool/?rev=9942&view=rev
Author: jaumeortola
Date: 2013-04-15 17:01:20 +0000 (Mon, 15 Apr 2013)
Log Message:
-----------
[ca] Improved rules: COM_COM_A, COM_CONDICIONAL.
Modified Paths:
--------------
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/rules/ca/grammar.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-04-15 12:58:03 UTC (rev 9941)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-04-15 17:01:20 UTC (rev 9942)
@@ -3475,7 +3475,7 @@
<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>
+ <token postag="V.P.*" skip="1"
postag_regexp="yes" regexp="yes"
inflected="yes">figurar|reconèixer|conèixer|definir|veure|entendre|interpretar</token>
<marker>
<token>com</token>
</marker>
@@ -3492,7 +3492,7 @@
</rule>
<rule>
<pattern>
- <token postag="V.P.*" skip="1"
postag_regexp="yes" regexp="yes"
inflected="yes">reconèixer|conèixer|definir|veure|entendre|interpretar</token>
+ <token postag="V.P.*" skip="1"
postag_regexp="yes" regexp="yes"
inflected="yes">figurar|reconèixer|conèixer|definir|veure|entendre|interpretar</token>
<marker>
<token>com</token>
</marker>
@@ -11632,7 +11632,7 @@
<token postag="SENT_START"/>
<marker>
<token skip="4">com<exception
postag="RN|PP.*|P0.*|V.*|SENT_END|DA.*|_GV_|_reflexiu|_perfet" scope="next"
postag_regexp="yes" negate_pos="yes" /></token>
- <token postag="V.S.*" postag_regexp="yes"><exception
inflected="yes" regexp="yes">poder|voler</exception><exception postag="V.I.*"
postag_regexp="yes"/></token>
+ <token postag="VMS.*" postag_regexp="yes"><exception
inflected="yes" regexp="yes">poder|voler</exception><exception postag="V.I.*"
postag_regexp="yes"/></token>
</marker>
</pattern>
<message>Construcció incorrecta: "com + subjuntiu"
condicional.</message>
@@ -11653,16 +11653,18 @@
<pattern>
<token>com</token>
<token>no</token>
- <token postag="VSS[PI]..0.?"
postag_regexp="yes"><exception postag="V.I.*" postag_regexp="yes"/></token>
+ <token postag="VSS[PI][23].*|VSS[PI]1P.*"
postag_regexp="yes"><exception postag="V.I.*" postag_regexp="yes"/></token>
</pattern>
+ <!-- Ignore first person singular for suggestions as it is
unusual -->
<message>Construcció incorrecta: "com + subjuntiu"
condicional.</message>
- <suggestion>si no <match no="3" postag="VSS(.+[SP]0)(.?)"
postag_regexp="yes" postag_replace="VSI$1[0$2]"/></suggestion>
+ <suggestion>si no <match no="3"
postag="VSS([PI])([23][SP]|1P)0(.?)" postag_regexp="yes"
postag_replace="VSI$1$20[0$3]"/></suggestion>
<suggestion>fora que <match no="3"/></suggestion>
<suggestion>llevat que <match no="3"/></suggestion>
<suggestion>fora de (...)</suggestion>
<suggestion>llevat de (...)</suggestion>
<short>Construcció incorrecta</short>
<example type="incorrect" correction="si no ets|fora que
siguis|llevat que siguis|fora de (...)|llevat de (...)"><marker>com no
siguis</marker></example>
+ <example type="incorrect" correction="Si no és|Fora que
sigui|Llevat que sigui|Fora de (...)|Llevat de (...)"><marker>Com no
sigui</marker> aquesta</example>
<example type="correct">si no és</example>
</rule>
<!-- <rule>
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