Revision: 7429
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7429&view=rev
Author:   jaumeortola
Date:     2012-06-20 19:14:36 +0000 (Wed, 20 Jun 2012)
Log Message:
-----------
[ca] Change in disambiguation: ser + (participi)

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

Modified: trunk/JLanguageTool/src/resource/ca/disambiguation.xml
===================================================================
--- trunk/JLanguageTool/src/resource/ca/disambiguation.xml      2012-06-20 
18:37:00 UTC (rev 7428)
+++ trunk/JLanguageTool/src/resource/ca/disambiguation.xml      2012-06-20 
19:14:36 UTC (rev 7429)
@@ -1694,52 +1694,7 @@
         </pattern>
         <disambig action="filter" postag="SP.*"></disambig>
     </rule>
-    <!-- ser + participi-->
-    <rulegroup id="ser_participi" name="ser + participi">
-        <rule>
-            <pattern> 
-                <token inflected="yes" 
regexp="yes">ser|estar|quedar|restar</token> 
-                <!-- exc.: les restes fossilitzades, però fou desmantellat. 
Cal comprovar la concordança abans -->
-                <marker>
-                    <token postag="V.P.*" postag_regexp="yes"></token>
-                </marker>
-            </pattern>
-            <disambig>
-                <match no="2" postag_regexp="yes" postag="V.P.*"></match>
-            </disambig>
-        </rule>
-        <rule>
-            <pattern>
-                <marker>
-                    <token inflected="yes" 
regexp="yes">ser|estar|quedar|restar</token>
-                </marker>
-                <token postag="V.P.*" postag_regexp="yes"></token>
-            </pattern>
-            <disambig>
-                <match no="1" postag_regexp="yes" postag="V.*"></match>
-            </disambig>
-        </rule>
-<!--         <rule>
-            <pattern>
-                <token inflected="yes" 
regexp="yes">ser|estar|quedar|restar</token>
-                <marker>
-                    <token postag="V.P.*" postag_regexp="yes"></token>
-                </marker>
-            </pattern>
-            <disambig action="add"><wd pos="_GV_"></wd>
-            </disambig>
-        </rule>
-        <rule>
-            <pattern>
-                <marker>
-                    <token inflected="yes" 
regexp="yes">ser|estar|quedar|restar</token>
-                </marker>
-                <token postag="V.P.*" postag_regexp="yes"></token>
-            </pattern>
-            <disambig action="add"><wd pos="_GV_"></wd>
-            </disambig>
-        </rule> -->
-    </rulegroup>
+ 
     <!-- hi haver + nom/verb   Hi ha alzines-->
     <rule id="haver_nom" name="haver + nom">
         <pattern>
@@ -2952,6 +2907,33 @@
         </pattern>
         <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
     </rule>
+    <!-- ser + participi-->
+    <rulegroup id="ser_participi" name="ser + participi">
+        <rule>
+            <pattern>
+                <unify>
+                <feature id="nombre"/>
+                    <token postag="V.[ISM].*" postag_regexp="yes" 
inflected="yes" regexp="yes">ser|estar|quedar|restar</token>
+                    <marker>
+                        <token postag="V.P.*" postag_regexp="yes"></token>
+                    </marker>
+                </unify>    
+            </pattern>
+            <disambig action="filter" postag="V.P.*"/>
+        </rule>
+        <rule>
+            <pattern>
+                <unify>
+                <feature id="nombre"/>
+                    <marker>
+                        <token postag="V.[ISM].*" postag_regexp="yes" 
inflected="yes" regexp="yes">ser|estar|quedar|restar</token>
+                    </marker>
+                    <token postag="V.P.*" postag_regexp="yes"></token>
+                </unify>
+            </pattern>
+            <disambig action="filter" postag="V.[ISM].*"/>
+        </rule>
+    </rulegroup>
     <rulegroup id="NUMERALS_ENCADENATS" name="numerals encadenats">
         <rule>
             <pattern>

Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/ca/grammar.xml        2012-06-20 18:37:00 UTC 
(rev 7428)
+++ trunk/JLanguageTool/src/rules/ca/grammar.xml        2012-06-20 19:14:36 UTC 
(rev 7429)
@@ -1351,7 +1351,7 @@
                     </marker>
                     <token>part</token>
                 </pattern>
-                <message>Error de concordança de 
gènere.<suggestion>altra</suggestion></message>
+                <message>Error de concordança de gènere: 
<suggestion>altra</suggestion></message>
                 <short>Error de concordança.</short>
                 <example type="incorrect">Per <marker>altre</marker> 
part.</example>
                 <example type="correct">Per altra part.</example>
@@ -1787,6 +1787,7 @@
                 <short>Atenció: verbs pròxims.</short>
                 <example type="incorrect">Ell <marker>diu ha</marker> de 
fer.</example>
                 <example type="correct">Ell <marker>diu que ha</marker> de 
fer.</example>
+                <example type="correct">Aquestes són les restes 
fossilitzades.</example>
             </rule>
             <rule>
                 <pattern>
@@ -2139,7 +2140,7 @@
                     </marker>
                     <token postag="V.N.*" postag_regexp="yes"></token>
                 </pattern>
-                <message>Cal escriure <suggestion>fins a</suggestion>davant 
d'infinitiu.</message>
+                <message>Cal escriure <suggestion>fins a</suggestion> davant 
d'infinitiu.</message>
                 <short>Expressió incorrecta.</short>
                 <example type="incorrect"><marker>Fins</marker> 
vèncer.</example>
                 <example type="correct"><marker>Fins a</marker> 
vèncer.</example>

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to