Revision: 7747 http://languagetool.svn.sourceforge.net/languagetool/?rev=7747&view=rev Author: dominikoeo Date: 2012-07-22 21:16:40 +0000 (Sun, 22 Jul 2012) Log Message: ----------- [fr] - detect error in: *Il s'?\195?\169puise ?\195?\160 la tache.* -> Il s'?\195?\169puise ?\195?\160 la t?\195?\162che. - fixed false positives in: "C'est ma pr?\195?\169f?\195?\169r?\195?\169e." "Les enfants ont recours au suicide."
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-07-22 20:07:34 UTC (rev 7746) +++ trunk/JLanguageTool/src/rules/fr/grammar.xml 2012-07-22 21:16:40 UTC (rev 7747) @@ -23,11 +23,6 @@ $Id$ --> <rules lang="fr" xsi:noNamespaceSchemaLocation="../rules.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <phrases> - <phrase id="V_NON_NR"> - <token postag="V.*" postag_regexp="yes"><exception postag="[NR].*" postag_regexp="yes"/></token> - </phrase> - </phrases> <category name="Pléonasmes"> <!--The following rules were created by Hugo Voisard (the rule on "ajouter en plus" @@ -1411,12 +1406,15 @@ <marker> <token>ma</token> </marker> - <phraseref idref="V_NON_NR"/> + <token postag="V.*" postag_regexp="yes"> + <exception postag="[NR].*|V ppa [fe] s" postag_regexp="yes"/> + </token> </pattern> <message>Voulez-vous écrire <suggestion>m’a</suggestion>?</message> <example type="incorrect">Il <marker>ma</marker> répondu.</example> <example type="correct">Il <marker>m’a</marker> répondu.</example> <example type="correct">C’est ma voiture.</example> + <example type="correct">C'est ma préférée.</example> </rule> <!-- mis en default="off" car cette règle génère des fausses alertes sur toutes les phrases avec un attribut du sujet, etc. --> <rule default="off" id="SONT_SON" name="SONT au lieu de SON"> @@ -1527,7 +1525,7 @@ </marker> <token postag="V.*" postag_regexp="yes"> <exception postag="V.* ppa .*" postag_regexp="yes"/> - <exception regexp="yes">envie|confiance|force</exception> + <exception regexp="yes">envie|confiance|force|recours</exception> </token> </pattern> <message>Voulez-vous écrire <suggestion>on</suggestion> ?</message> @@ -1535,6 +1533,7 @@ <example type="incorrect"><marker>Ont</marker> a tendance à ralentir.</example> <example type="correct">Ceux qui ont envie de voir le film</example> <example type="correct">Les décrets ont force de loi.</example> + <example type="correct">Les enfants ont recours au suicide.</example> </rule> <rule id="SEPTIQUE" name="septique au lieu de sceptique"> <pattern> @@ -2165,6 +2164,16 @@ <example type="incorrect">Une <marker>tâche</marker> sur ma chemise.</example> <example type="correct">Une <marker>tache</marker> sur ma chemise.</example> </rule> + <rule> + <pattern> + <token>à</token> + <token>la</token> + <marker><token>tache</token></marker> + </pattern> + <message>Voulez-vous écrire <suggestion>tâche</suggestion> ?</message> + <example type="incorrect">Il s'épuise à la <marker>tache</marker>.</example> + <example type="correct">Il s'épuise à la tâche.</example> + </rule> </rulegroup> <rulegroup id="CENSE_SENSE" name="sensé et censé"> <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