Revision: 8030
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8030&view=rev
Author:   dominikoeo
Date:     2012-09-13 04:17:45 +0000 (Thu, 13 Sep 2012)
Log Message:
-----------
[fr] improved disambiguator to fix false positive in "Avec contr?\195?\180le 
accru.".

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

Modified: 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
===================================================================
--- 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
      2012-09-12 20:49:15 UTC (rev 8029)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
      2012-09-13 04:17:45 UTC (rev 8030)
@@ -579,7 +579,18 @@
             <disambig postag="D e s"/>
         </rule>
     </rulegroup>
-
+    <rule id="AVEC_N" name="avec + verb/nom">
+      <pattern>
+        <token>avec</token>
+        <marker>
+          <and>
+              <token postag="N.*" postag_regexp="yes"/>
+              <token postag="V.*" postag_regexp="yes"/>
+          </and>
+        </marker>
+      </pattern>
+      <disambig action="filter" postag="[^V].*"/>
+    </rule>
     <rulegroup name="RP : Négation" id="RP-NEGATION">
         <rule name="pas">
             <pattern>

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-12 20:49:15 UTC (rev 8029)
+++ 
trunk/JLanguageTool/src/main/resources/org/languagetool/rules/fr/grammar.xml    
    2012-09-13 04:17:45 UTC (rev 8030)
@@ -3467,6 +3467,7 @@
             <example type="correct">Il est sans <marker>doute 
arrivé</marker>.</example>
             <example type="correct">Le monde est sans <marker>cesse 
menacé</marker>.</example>
             <example type="correct">Les livraisons ont en revanche 
augmenté.</example>
+            <example type="correct">Avec contrôle accru.</example>
         </rule>
         <rulegroup id="NON_V" name="pronom sujet + nom/adj">
             <rule>

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