Revision: 8029
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8029&view=rev
Author:   dominikoeo
Date:     2012-09-12 20:49:15 +0000 (Wed, 12 Sep 2012)
Log Message:
-----------
[fr] - detect errors in:
       *J'ai pas compris* -> Je n'ai pas compris
       *aller retour* -> allez-retour
     - turn off by default 2 nitpicky "anglicisme" rules

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

Modified: 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml    
    2012-09-11 23:27:09 UTC (rev 8028)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml    
    2012-09-12 20:49:15 UTC (rev 8029)
@@ -5999,6 +5999,24 @@
         <rulegroup id="LA" name="là sans trait d’union">
             <rule>
                 <pattern>
+                    <token regexp="yes">allers?</token>
+                    <token regexp="yes">retours?</token>
+                </pattern>
+                <message>Voulez-vous dire 
<suggestion>\1-\2</suggestion> ?</message>
+                <example type="incorrect">Un <marker>aller retour</marker> 
pour Paris.</example>
+                <example type="correct">Un <marker>aller-retour</marker> pour 
Paris.</example>
+            </rule>
+            <rule>
+                <pattern>
+                    <token>longue</token>
+                    <token regexp="yes">vues?</token>
+                </pattern>
+                <message>Voulez-vous dire 
<suggestion>\1-\2</suggestion> ?</message>
+                <example type="incorrect">Une <marker>longue 
vue</marker>.</example>
+                <example type="correct">Une 
<marker>longue-vue</marker>.</example>
+            </rule>
+            <rule>
+                <pattern>
                     <token>là</token>
                     <token 
regexp="yes">bas|dedans|dessous|devant|derrière|haut</token>
                 </pattern>
@@ -6547,6 +6565,34 @@
         <rulegroup id="P_V_PAS" name="négation sans NE">
             <rule>
                 <pattern>
+                    <marker>
+                        <token>j</token>
+                        <token regexp="yes">[’´'‛′‘]</token>
+                        <token postag="V.* 1 s" postag_regexp="yes" 
regexp="yes">[aeiouyh].*</token>
+                        <token>pas</token>
+                    </marker>
+                    <token negate="yes" regexp="yes">mal|moins</token>
+                </pattern>
+                <message>Voulez-vous écrire <suggestion>je n’\3 
\4</suggestion> ?</message>
+                <example type="incorrect"><marker>J’ai pas</marker> 
compris.</example>
+                <example type="correct">Je n’a pas compris.</example>
+            </rule>
+            <rule>
+                <pattern>
+                    <marker>
+                        <token>t</token>
+                        <token regexp="yes">[’´'‛′‘]</token>
+                        <token postag="V.* 2 s" postag_regexp="yes" 
regexp="yes">[aeiouyh].*</token>
+                        <token>pas</token>
+                    </marker>
+                    <token negate="yes" regexp="yes">mal|moins</token>
+                </pattern>
+                <message>Voulez-vous écrire <suggestion>tu n’\3 
\4</suggestion> ?</message>
+                <example type="incorrect"><marker>T’as pas</marker> 
compris.</example>
+                <example type="correct">Tu n’as pas compris.</example>
+            </rule>
+            <rule>
+                <pattern>
                     <token postag="Z.*|R pers suj.*" postag_regexp="yes"/>
                     <marker>
                         <token postag="V.*" postag_regexp="yes" 
regexp="yes">[aeiouyh].*</token>
@@ -17965,7 +18011,7 @@
             <example type="incorrect"><marker>ghetto blaster</marker></example>
             <example type="correct"><marker>chaîner stéréo</marker></example>
         </rule>
-        <rule id="MARKETING" name="marketing">
+        <rule default="off" id="MARKETING" name="marketing">
             <pattern>
                 <token 
regexp="yes">marketing|marketings|markéting|markétings</token>
             </pattern>
@@ -18276,7 +18322,7 @@
                 <example type="correct"><marker>jeu de 
guerre</marker></example>
             </rule>
         </rulegroup>
-        <rulegroup id="SNOWBOARD" name="snow(board)">
+        <rulegroup default="off" id="SNOWBOARD" name="snow(board)">
             <rule>
                 <pattern>
                     <token 
regexp="yes">snow-board|snow-boards|snowboard|snowboards|snow|snows</token>

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