Revision: 9864
http://languagetool.svn.sourceforge.net/languagetool/?rev=9864&view=rev
Author: dominikoeo
Date: 2013-04-02 20:15:13 +0000 (Tue, 02 Apr 2013)
Log Message:
-----------
[fr] - fixed false positive in "L'histoire comence il y a longtemps."
- detect error in:
*Les trois-quarts du temps* -> Les trois quarts du temps.
Modified Paths:
--------------
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
Modified:
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
2013-04-02 20:11:04 UTC (rev 9863)
+++
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/resource/fr/disambiguation.xml
2013-04-02 20:15:13 UTC (rev 9864)
@@ -1314,7 +1314,7 @@
</rule>
<rule id="DECL_SUR_HONNEUR" name="declaration sur l’honneur">
<pattern>
- <token>déclaration</token>
+ <token regexp="yes">attestation|déclaration</token>
<token>sur</token>
<token>l</token>
<token regexp="yes">[’´'‛′‘]</token>
Modified:
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
===================================================================
---
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
2013-04-02 20:11:04 UTC (rev 9863)
+++
trunk/languagetool/languagetool-language-modules/fr/src/main/resources/org/languagetool/rules/fr/grammar.xml
2013-04-02 20:15:13 UTC (rev 9864)
@@ -6898,15 +6898,18 @@
</rule>
<rule>
<pattern>
- <and>
- <token postag="V.* 3 s" postag_regexp="yes">
- <exception>cela</exception>
- <exception postag="N.*" postag_regexp="yes"/>
- <exception postag="R pers suj .*" postag_regexp="yes"
scope="previous"/>
- </token>
- <token regexp="yes">.*[aec]</token>
- </and>
- <token regexp="yes">(t-)?(il|elle|on)</token>
+ <marker>
+ <and>
+ <token postag="V.* 3 s" postag_regexp="yes">
+ <exception>cela</exception>
+ <exception postag="N.*" postag_regexp="yes"/>
+ <exception postag="R pers suj .*" postag_regexp="yes"
scope="previous"/>
+ </token>
+ <token regexp="yes">.*[aec]</token>
+ </and>
+ <token regexp="yes">(t-)?(il|elle|on)</token>
+ </marker>
+ <token><exception>y</exception></token>
</pattern>
<message>Voulez-vous dire <suggestion>\1-\2</suggestion> ?</message>
<example type="incorrect">Que <marker>mange il</marker> ?</example>
@@ -6917,6 +6920,7 @@
<example type="correct">Quel âge a-t-elle ?</example>
<example type="correct">Comme cela elle n’a pas à cuisiner.</example>
<example type="correct">Les jours de fête on ne travaille
pas.</example>
+ <example type="correct">L’histoire <marker>commence il</marker> y a
longtemps.</example>
</rule>
<rule>
<pattern>
@@ -21413,6 +21417,28 @@
<example type="correct">La bouteille est aux deux tiers
pleine.</example>
</rule>
<rule>
+ <pattern>
+ <token>les</token>
+ <marker><token>trois-quarts</token></marker>
+ <token regexp="yes">du|des</token>
+ </pattern>
+ <message>« \1 » est une faute de typographie. Employez
<suggestion><match no="2" regexp_match="-" regexp_replace=" "/></suggestion>
s’il s’agit d’une fraction.</message>
+ <example type="incorrect" correction="trois quarts">Les
<marker>trois-quarts</marker> du temps, il ne fait rien.</example>
+ <example type="correct">Les <marker>trois quarts</marker> du temps, il
ne fait rien.</example>
+ <example type="correct">Un <marker>trois-quarts</marker> de
rugby.</example>
+ <example type="correct">Les <marker>trois-quarts</marker> de l’équipe
de rugby.</example>
+ </rule>
+ <rule>
+ <pattern>
+ <token>aux</token>
+ <marker><token>trois-quarts</token></marker>
+ </pattern>
+ <message>« \1 » est une faute de typographie. Employez
<suggestion><match no="2" regexp_match="-" regexp_replace="
"/></suggestion>.</message>
+ <example type="incorrect" correction="trois quarts">La bouteille est
aux <marker>trois-quarts</marker> pleine.</example>
+ <example type="correct">La bouteille est aux trois quarts
pleine.</example>
+ <example type="correct">Un <marker>trois-quarts</marker> de
rugby.</example>
+ </rule>
+ <rule>
<pattern><token regexp="yes">tout-[aà]-fait</token></pattern>
<message>« \1 » est une faute de typographie. Employez
<suggestion>tout à fait</suggestion>.</message>
<example type="incorrect" correction="Tout à
fait"><marker>Tout-à-fait</marker></example>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits