Revision: 7921
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7921&view=rev
Author:   dominikoeo
Date:     2012-08-25 18:38:43 +0000 (Sat, 25 Aug 2012)
Log Message:
-----------
[fr] - added rule PLUS_QUE_PREVU to detect such errors:
       *La facture est plus ?\195?\169lev?\195?\169e que pr?\195?\169vue* -> 
que pr?\195?\169vu
     - added rule COMME_PREVU to detect such errors:
       *La rencontre s'est d?\195?\169roul?\195?\169e comme pr?\195?\169vue* -> 
comme pr?\195?\169vu
     - fixed false positive in "se bien conna?\195?\174tre".
     - removed rule DECISION_FINALE (it was bogus)

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

Modified: trunk/JLanguageTool/src/rules/fr/grammar.xml
===================================================================
--- trunk/JLanguageTool/src/rules/fr/grammar.xml        2012-08-25 09:32:52 UTC 
(rev 7920)
+++ trunk/JLanguageTool/src/rules/fr/grammar.xml        2012-08-25 18:38:43 UTC 
(rev 7921)
@@ -3221,12 +3221,14 @@
                 <marker>
                     <token postag="[NJAKZ].*" postag_regexp="yes">
                         <exception postag="[^NJAKZ].*" postag_regexp="yes"/>
+                        <exception>bien</exception>
                     </token>
                 </marker>
             </pattern>
             <message>Le mot « \2 » ne peut pas suivre le mot « \1 ».</message>
             <example type="incorrect">Ça te <marker>gène</marker> si je 
fume ?</example>
             <example type="correct">Ça te gêne si je fume ?</example>
+            <example type="correct">Il faut se bien connaître 
soit-même.</example>
         </rule>
         <rule id="MON_NFS" name="mon/ton/son suivi d’un nom féminin singulier">
             <pattern>
@@ -6326,7 +6328,7 @@
               <token 
regexp="yes">clair|exacte|certaine?s?|sûre?s?|évident|probable|vrai|vraisemblable</token>
               <token>que</token>
               <token postag="R pers suj.*|Z.*" postag_regexp="yes"/>
-              <marker><token postag="V.* sub.*" postag_regexp="yes"><exception 
postag="V.* (ind|con).*" postag_regexp="yes"/></token></marker>
+              <marker><token postag="V.* sub.*" postag_regexp="yes"><exception 
postag="V.* (?:ind|con).*" postag_regexp="yes"/></token></marker>
             </pattern>
             <message>Le verbe « \5 » devrait être à l’indicatif ou au 
conditionnel (et non au subjonctif) après « \1 \2 \3 \4 » qui exprime la 
certitude ou une forte vraisemblance de manière positive.</message>
             <example type="incorrect">Elle est certaine que vous 
<marker>soyez</marker> un espion.</example>
@@ -6434,7 +6436,7 @@
         <rule id="QUELQUE" name="quelque invariable devant nombre">
           <pattern>
             <marker><token>quelques</token></marker>
-            <token 
regexp="yes">\d+|(deux|trois|quatre|cinq|six|sept|huit|neuf|dix|vingt|trente|quarante|cinquante|soixante|septante|huitante|octante|nonante|cents?|mille)(-.*)?|onze|douze|treize|quatorze|quinze|seize</token>
+            <token 
regexp="yes">\d+|(?:deux|trois|quatre|cinq|six|sept|huit|neuf|dix|vingt|trente|quarante|cinquante|soixante|septante|huitante|octante|nonante|cents?|mille)(?:-.*)?|onze|douze|treize|quatorze|quinze|seize</token>
           </pattern>
           <message>Le mot <suggestion>quelque</suggestion> est invariable 
devant un nombre et a une fonction d’adverbe signifiant « environ » ou « à peu 
près ».</message>
           <example type="incorrect">Il y a <marker>quelques</marker> 10 
ans.</example>
@@ -6449,7 +6451,7 @@
           <rule>
             <pattern>
               <token postag="SENT_START"/>
-              <marker><token 
regexp="yes">(attendu|entendu|excepté|ôté|ouï|passé|supposé|vu)(es?|e?s)|(non-)?comprises?</token></marker>
+              <marker><token 
regexp="yes">(?:attendu|entendu|excepté|ôté|ouï|passé|supposé|vu)(?:es?|e?s)|(?:non-)?comprises?</token></marker>
               <token postag="D.*" postag_regexp="yes"/>
               <token postag="[JN].*" postag_regexp="yes"/>
             </pattern>
@@ -6489,6 +6491,28 @@
           <example type="incorrect">Le serveur a été <marker>mi</marker> en 
place.</example>
           <example type="correct">Le serveur a été <marker>mis</marker> en 
place.</example>
         </rule>
+        <rule id="PLUS_QUE_PREVU" name="plus que prévue → plus que prévu">
+          <pattern>
+            <token regexp="yes">plus|mois</token>
+            <token postag="V ppa.*|J.*" postag_regexp="yes"/>
+            <token>que</token>
+            <marker><token regexp="yes">prévues?|prévus</token></marker>
+          </pattern>
+          <message>Le mot « prévu » doit être invariable après «\1 \2 \3» 
Voulez-vous écrire <suggestion>prévu</suggestion> ?</message>
+          <example type="incorrect">Les températures sont plus froides que 
<marker>prévues</marker>.</example>
+          <example type="correct">Les températures sont plus froides que 
prévu.</example>
+          <example type="incorrect">La facture est plus élevée que 
<marker>prévue</marker>.</example>
+          <example type="correct">La facture est plus élevée que 
prévu.</example>
+        </rule>
+        <rule id="COMME_PREVU" name="comme prévue → comme prévu">
+          <pattern>
+            <token>comme</token>
+            <marker><token 
regexp="yes">(?:annoncé|convenu|prévu)(?:es?|s)</token></marker>
+          </pattern>
+          <message>Le mot «\2» doit être invariable après « comme » 
Voulez-vous écrire <suggestion><match no="2" regexp_match="e?s?$" 
regexp_replace=""/></suggestion> ?</message>
+          <example type="incorrect">La rencontre s’est déroulée comme 
<marker>prévues</marker>.</example>
+          <example type="correct">La rencontre s’est déroulée comme 
<marker>prévu</marker>.</example>
+        </rule>
     </category>
     <category default="off" name="Régionalismes">
         <!--The following rules were created by Hugo Voisard-->
@@ -10759,15 +10783,6 @@
             <example type="incorrect"><marker>forger une 
signature</marker></example>
             <example type="correct"><marker>contrefaire une 
signature</marker></example>
         </rule>
-        <rule id="DECISION_FINALE" name="décision finale">
-            <pattern>
-                <token regexp="yes">décisions?</token>
-                <token regexp="yes">finale?s?|finaux</token>
-            </pattern>
-            <message>« Décision finale » est un anglicisme. Employez 
<suggestion>décision définitive</suggestion>.</message>
-            <example type="incorrect"><marker>décision 
finale</marker></example>
-            <example type="correct"><marker>décision 
définitive</marker></example>
-        </rule>
         <rule id="RIZ_SAUVAGE" name="riz sauvage">
             <pattern>
                 <token regexp="yes">rizs?</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