Revision: 10066
http://sourceforge.net/p/languagetool/code/10066
Author: jaumeortola
Date: 2013-05-10 21:20:10 +0000 (Fri, 10 May 2013)
Log Message:
-----------
[ca] Improve rules for "apostrofacio".
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-05-10 21:10:59 UTC (rev 10065)
+++
trunk/languagetool/languagetool-language-modules/ca/src/main/resources/org/languagetool/rules/ca/grammar.xml
2013-05-10 21:20:10 UTC (rev 10066)
@@ -6513,7 +6513,7 @@
<rule>
<pattern>
<token>el</token>
- <token regexp="yes">h?[aeiouàèéíòóú].*<exception
regexp="yes">h?[ui][aeioàèéóòu].+|o|i|host</exception><exception
inflected="yes">ordinal</exception><exception
postag="hac_aspirada|mot_foraster|UNKNOWN|NP..000" postag_regexp="yes"/></token>
+ <token regexp="yes">h?[aeiouàèéíòóú].*<exception
regexp="yes">h?[ui][aeioàèéóòu].+|o|i|host</exception><exception
inflected="yes" regexp="yes">halar|io[dt]itzar</exception><exception
postag="hac_aspirada|mot_foraster|UNKNOWN|NP..000" postag_regexp="yes"/></token>
</pattern>
<message>Cal apostrofar.</message>
<suggestion>l'<match no="2"></match></suggestion>
@@ -8902,6 +8902,19 @@
</rule>
<rule>
<pattern>
+ <marker>
+ <token postag="P.*" postag_regexp="yes"
regexp="yes">se|es|te|et|me|em</token>
+ <token postag="P.*" postag_regexp="yes"
regexp="yes">el|te|et|me|em|en|ne</token>
+ </marker>
+ <token postag="V.*" postag_regexp="yes" regexp="yes"
inflected="yes">halar|io[dt]itzar</token>
+ </pattern>
+ <message>Cal apostrofar: <suggestion><match no="1"
regexp_match="[Ee]?([^e])e?" regexp_replace="$1e"></match><match no="2"
regexp_match="e?([^e]{1,2})e?"
regexp_replace="'$1"></match></suggestion>.</message>
+ <short>Cal apostrofar</short>
+ <example type="incorrect" correction="Se't"><marker>Se
et</marker> halen de seguida.</example>
+ <example type="correct"><marker>Se't</marker> buida de
gent.</example>
+ </rule>
+ <rule>
+ <pattern>
<token postag="V.*|P[P0].*" postag_regexp="yes"
negate_pos="yes"><exception
regexp="yes">jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</exception></token>
<marker>
<token postag="P.*" postag_regexp="yes"
regexp="yes">es|et|em</token>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits