Revision: 7935
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7935&view=rev
Author:   jaumeortola
Date:     2012-08-28 12:00:19 +0000 (Tue, 28 Aug 2012)
Log Message:
-----------
[ca] new rule: *cap el(s)/ cap al(s)

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

Modified: trunk/JLanguageTool/src/rules/ca/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/ca/grammar.xml        2012-08-27 22:26:00 UTC 
(rev 7934)
+++ trunk/JLanguageTool/src/rules/ca/grammar.xml        2012-08-28 12:00:19 UTC 
(rev 7935)
@@ -2085,15 +2085,37 @@
     </category>
     <category name="Preposicions">
         <rule id="CAP_ELS_CAP_ALS" name="*cap els/cap als">
-        <!-- Falten excepcions... -->
+        <!-- Falten excepcions!! -->
             <pattern>
-                <token>cap</token>
-                <token>els</token>
+                <token negate="yes">a<exception postag="V.*" 
postag_regexp="yes" inflected="yes">fer</exception></token>
+                <marker>
+                    <token>cap<exception postag="_GN_.*" 
postag_regexp="yes"/></token>
+                    <token>els</token>
+                </marker>
             </pattern>
             <message>Volíeu dir <suggestion>cap als</suggestion>?</message>
             <example type="incorrect">la confiança <marker>cap els</marker> 
partits</example>
             <example type="correct">la confiança cap als partits</example>
+            <example type="correct">que portaren a cap els comtes</example>
+            <example type="correct">on fan cap els comtes</example>
+            <example type="correct">tocar amb el cap els esquís de la 
gent</example>
         </rule>
+        <rule id="CAP_EL_CAP_AL" name="*cap el/cap al">
+        <!-- Falten excepcions!! -->
+            <pattern>
+                <token negate="yes">a<exception postag="V.*" 
postag_regexp="yes" inflected="yes">fer</exception></token>
+                <marker>
+                    <token>cap<exception postag="_GN_.*" 
postag_regexp="yes"/></token>
+                    <token>el</token>
+                </marker>
+            </pattern>
+            <message>Volíeu dir <suggestion>cap al</suggestion>?</message>
+            <example type="incorrect">la confiança <marker>cap el</marker> 
partit</example>
+            <example type="correct">la confiança cap al partit</example>
+            <example type="correct">que tingué com a cap el Comte 
d'Espanya</example>
+            <example type="correct">on fa cap el Comte</example>
+            <example type="correct">la Colònia del Cap el 1788</example>
+        </rule>
         <rulegroup id="DACI_A" name="d'ací a">
             <rule>
                 <pattern>

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
Languagetool-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to