Revision: 7865 http://languagetool.svn.sourceforge.net/languagetool/?rev=7865&view=rev Author: dominikoeo Date: 2012-08-15 18:57:32 +0000 (Wed, 15 Aug 2012) Log Message: ----------- [fr] - improved rule A_A_ACCENT to detect errors in: *Venez-vous a la f?\195?\170te ?* -> Venez-vous ?\195?\160 la f?\195?\170te *Ne joue pas a ?\195?\167a.* -> Ne jour pas ?\195?\160 ?\195?\167a. - fixed false positive in: "Dans la Voie Lact?\195?\169e" - fixed false positive in: "Je me demande s'il avait ou non consience de?\226?\128?\166"
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-14 21:30:44 UTC (rev 7864) +++ trunk/JLanguageTool/src/rules/fr/grammar.xml 2012-08-15 18:57:32 UTC (rev 7865) @@ -1120,13 +1120,17 @@ </rule> <rule> <pattern> - <token>pas</token> + <token regexp="yes">pas|.*-(tu|ils?|elles?|on|[nv]ous)</token> <marker><token>a</token></marker> - <token>pas</token> </pattern> <message>Voulez-vous écrire <suggestion>à</suggestion> ?</message> + + <example type="incorrect">Ne joue pas <marker>a</marker> ça.</example> + <example type="correct">Ne joue pas <marker>à</marker> ça.</example> <example type="incorrect">Pas <marker>a</marker> pas</example> <example type="correct">Pas <marker>à</marker> pas</example> + <example type="incorrect">Venez-vous <marker>a</marker> la fête ?</example> + <example type="correct">Venez-vous <marker>à</marker> la fête ?</example> </rule> <rule> <pattern> @@ -2052,10 +2056,12 @@ <token>dans</token> <token regexp="yes">[mtsl]a|leurs?|[vn]os</token> <marker><token regexp="yes">voies?</token></marker> + <token><exception>Lactée</exception></token> </pattern> <message>Voulez-vous écrire <suggestion>voix</suggestion> ?</message> <example type="incorrect">Il y avait une émotion dans sa <marker>voie</marker>.</example> <example type="correct">Il y avait une émotion dans sa voix.</example> + <example type="correct">Combien y a-t-il d’étoiles dans la Voie Lactée ?</example> </rule> </rulegroup> <rulegroup id="VOIX_VOIE" name="voix → voie"> @@ -20789,7 +20795,7 @@ </rulegroup> <rule id="QUASI_NOM" name="Quasi + nom"> <pattern> - <token regexp="yes">quasi|non</token> + <token regexp="yes">quasi|non<exception scope="previous">ou</exception></token> <token postag="N.*|V.* inf" postag_regexp="yes"> <exception negate_pos="yes" postag="N.*|V.* inf" postag_regexp="yes"/> <exception regexp="yes">pas|merci</exception> @@ -20802,6 +20808,7 @@ <example type="incorrect">Une fin de <marker>non recevoir</marker>.</example> <example type="correct">Une fin de non-recevoir.</example> <example type="correct">Non merci.</example> + <example type="correct">Je me demande s’il avait ou <marker>non conscience</marker> que son arme était chargée.</example> </rule> <rule id="ETC..." name="etc..."> <pattern> 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