Revision: 8529
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8529&view=rev
Author:   jaumeortola
Date:     2012-12-10 11:26:41 +0000 (Mon, 10 Dec 2012)
Log Message:
-----------
[ca] Fixed false alarms.

Modified Paths:
--------------
    
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
    trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml

Modified: 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
      2012-12-10 09:26:29 UTC (rev 8528)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/ca/disambiguation.xml
      2012-12-10 11:26:41 UTC (rev 8529)
@@ -1974,7 +1974,7 @@
     <rulegroup id="POT" name="pot/pots/vol/vols + infinitiu">
         <rule>
             <pattern>
-                <token 
postag="P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00" 
postag_regexp="yes"><exception>el</exception></token>
+                <token 
postag="P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00" 
postag_regexp="yes"><exception regexp="yes">el|[-'].+</exception></token>
                 <marker>
                     <and>
                         <token regexp="yes">pot|vol|sol</token>
@@ -1986,7 +1986,7 @@
         </rule>
         <rule>
             <pattern>
-                <token 
postag="P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00" 
postag_regexp="yes"><exception>els</exception></token>
+                <token 
postag="P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00" 
postag_regexp="yes"><exception regexp="yes">els|[-'].+</exception></token>
                 <marker>
                     <and>
                         <token regexp="yes">pots|vols|sols</token>
@@ -6342,16 +6342,31 @@
         </pattern>
         <disambig action="filter" postag="[^V].*"></disambig>
     </rule>    
-    <rule id="nParticipi" name="no participi si no ha concordat">
-    <!--  paraules que habitualment no són participi si no han concordat 
(darrere de "de"?: base de dades, sistema de partits -->
-        <pattern>
-            <and>
-                <token postag="V.P.*" postag_regexp="yes" 
regexp="yes">dada|dades|partit|partits<exception postag="_GN_.*" 
postag_regexp="yes"/></token>
-                <token postag="N.*" postag_regexp="yes"></token>
-            </and>
-        </pattern>
-        <disambig action="filter"  postag="[^V].*"/>
-    </rule>
+    <rulegroup id="nParticipi" name="no participi si no ha concordat">
+        <rule> <!--  paraules que habitualment no són participi si no han 
concordat (darrere de "de"?: base de dades, sistema de partits -->
+            <pattern>
+                <and>
+                    <token postag="V.P.*" postag_regexp="yes" 
regexp="yes">dada|dades|partit|partits<exception postag="_GN_.*" 
postag_regexp="yes"/></token>
+                    <token postag="N.*" postag_regexp="yes"></token>
+                </and>
+            </pattern>
+            <disambig action="filter"  postag="[^V].*"/>
+        </rule>
+        <rule> <!--  A més, són nom si tenen un adjectiu al darrere que 
concorda -->
+            <pattern>
+                <unify>
+                    <feature id="genere"/>
+                    <feature id="nombre"/>
+                    <and>
+                        <token postag="V.P.*" postag_regexp="yes" 
regexp="yes">dada|dades|partit|partits</token>
+                        <token postag="N.*" postag_regexp="yes"></token>
+                    </and>
+                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
+                </unify>
+            </pattern>
+            <disambig action="filter"  postag="[^V].*"/>
+        </rule>
+    </rulegroup>
     <!-- verb + adj/verb  Havien estat ocultes. Mogut per: cap historiador 
reputat accepta aquesta teoria -->
     <rule id="verb_nom2" name="verb + adjectiu">
         <pattern>

Modified: 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml    
    2012-12-10 09:26:29 UTC (rev 8528)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/ca/grammar.xml    
    2012-12-10 11:26:41 UTC (rev 8529)
@@ -3102,7 +3102,7 @@
             <pattern>
                 <token><exception postag="V.[SI].*|_GV_" postag_regexp="yes" 
inflected="yes" regexp="yes">ser|estar|anar|quedar|restar</exception></token>
                 <marker>
-                <token skip="3">conforme<exception postag="_PUNCT.*" 
postag_regexp="yes" scope="next"/><exception postag="_GN_.*" 
postag_regexp="yes"/></token>
+                    <token skip="3">conforme<exception postag="_PUNCT.*" 
postag_regexp="yes" scope="next"/><exception postag="_GN_.*" 
postag_regexp="yes"/></token>
                 </marker>
                 <token postag="V.[SI].*|_GV_" postag_regexp="yes"/>
             </pattern>
@@ -14951,7 +14951,7 @@
         <rulegroup id="FALTA_ELEMENT_ENTRE_VERBS" name="Falta un element entre 
verbs: hi ha una cosa *(que) és clara">
             <rule>
                 <pattern>
-                    <token postag="SENT_START|CC" postag_regexp="yes" 
skip="-1"><exception postag="PR.*|PT.*|DT.*|.*LOC_CONJ.*|CS" 
postag_regexp="yes" scope="next"/><exception scope="next" 
regexp="yes">perquè|com</exception></token>
+                    <token postag="SENT_START|V.[^NGP].*" postag_regexp="yes" 
skip="-1"><exception postag="PR.*|PT.*|DT.*|.*LOC_CONJ.*|CS" 
postag_regexp="yes" scope="next"/><exception scope="next" 
regexp="yes">perquè|com</exception></token>
                     <marker>
                         <token postag="V.[^NGP].*" postag_regexp="yes" 
regexp="yes" skip="-1">[\p{Ll}·]+<exception postag="_GN_.*|N.*|A.*|V.[NGP].*" 
postag_regexp="yes"/><exception>di</exception><exception scope="next" 
regexp="yes">[:;,.!?\(\)–—\[\]]|com|perquè|que</exception><exception 
postag="C.*|PR.*|PT.*|DT.*|.*LOC_CONJ.*|locucio_unavegada" postag_regexp="yes" 
scope="next"/></token>
                         <token postag="V.[^NGP].*" postag_regexp="yes" 
regexp="yes">[\p{Ll}·]+<exception postag="_GN_.*|N.*|A.*|V.[NGP].*|.*LOC.*" 
postag_regexp="yes"/><exception regexp="yes">di|cap</exception></token>
@@ -14969,7 +14969,7 @@
                 <example type="correct">Hi ha una cosa en què som 
clars.</example>
                 <example type="incorrect">El camí de la política catalana 
dibuixa una espiral cònica i s'<marker>accelera a gran velocitat conforme 
s'apropa</marker> al vèrtex.</example>
                 <example type="correct">El camí de la política catalana 
dibuixa una espiral cònica i s'accelera a gran velocitat a mesura que s'apropa 
al vèrtex.</example>
-                <example type="correct">I encara no li ha passat. </example>
+                <example type="correct">I encara no li ha passat.</example>
                 <example type="correct">No ho diu d'aquesta manera encara que 
ho pensi així.</example> 
                 <example type="correct">Encara a vegades em miro la 
foto</example>
                 <example type="correct">Encara no es troba bé</example>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to