Skip to content

Commit

Permalink
[fr] improved rule NOM_MAL_EPELLE
Browse files Browse the repository at this point in the history
  • Loading branch information
dpelle committed Sep 23, 2017
1 parent dc97723 commit 582f845
Showing 1 changed file with 40 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3707,6 +3707,32 @@ though, and has since been slightly modified)-->
<url>https://fr.wikipedia.org/wiki/Weird_Al_Yankovic</url>
<example correction="Weird Al Yankovic"><marker>Weird al Yankovich</marker></example>
</rule>
<rule>
<antipattern>
<token>Andrea</token>
<token>Bocelli</token>
</antipattern>
<pattern>
<token regexp="yes">Andr[eé]a?</token>
<token regexp="yes">Bocc?h?ell?i</token>
</pattern>
<message>Écrivez <suggestion>Andrea Bocelli</suggestion> s’il s’agit du ténor italien.</message>
<url>https://fr.wikipedia.org/wiki/Andrea_Bocelli</url>
<example correction="Andrea Bocelli"><marker>Andrea Boccelli</marker> est né en 1958.</example>
</rule>
<rule>
<antipattern>
<token>Ennio</token>
<token>Morricone</token>
</antipattern>
<pattern>
<token regexp="yes">[EÉ]nn?io</token>
<token regexp="yes">Morr?icc?onn?[eé]</token>
</pattern>
<message>Écrivez <suggestion>Ennio Morricone</suggestion> s’il s’agit du compositeur italien.</message>
<url>https://nl.wikipedia.org/wiki/Ennio_Morricone</url>
<example correction="Ennio Morricone"><marker>Ennio Moricone</marker> est né en 1928.</example>
</rule>
<rule>
<antipattern>
<token>Barbra</token>
Expand Down Expand Up @@ -4034,13 +4060,20 @@ though, and has since been slightly modified)-->
<example correction="Bram Moolenaar"><marker>Bram Moolenar</marker> est l’auteur de Vim.</example>
</rule>
<rule>
<pattern>
<antipattern>
<token>Henri</token>
<marker><token regexp="yes">Point?carr?é<exception>Poincaré</exception></token></marker>
<token>Poincaré</token>
</antipattern>
<pattern>
<marker>
<token regexp="yes">Henr[iy]</token>
<token regexp="yes">Point?carr?[ée]</token>
</marker>
</pattern>
<message>Écrivez <suggestion>Poincaré</suggestion> s’il s’agit du mathématicien français.</message>
<message>Écrivez <suggestion>Henri Poincaré</suggestion> s’il s’agit du mathématicien français.</message>
<url>https://fr.wikipedia.org/wiki/Henri_Poincar%C3%A9</url>
<example correction="Poincaré">Henri <marker>Pointcaré</marker></example>
<example correction="Henri Poincaré"><marker>Henri Pointcaré</marker></example>
<example correction="Henri Poincaré"><marker>Henry Poincaré</marker></example>
</rule>
<rule>
<pattern>
Expand Down Expand Up @@ -4078,7 +4111,7 @@ though, and has since been slightly modified)-->
</antipattern>
<pattern>
<token regexp="yes">Fran[cç]ois</token>
<token regexp="yes">Mit?terr?and</token>
<token regexp="yes">Mit?te?rr?an[dt]?</token>
</pattern>
<message>Écrivez <suggestion>François Mitterrand</suggestion> s’il s’agit du président de la république.</message>
<url>https://fr.wikipedia.org/wiki/Fran%C3%A7ois_Mitterrand</url>
Expand Down Expand Up @@ -4113,11 +4146,11 @@ though, and has since been slightly modified)-->
</rule>
<rule>
<antipattern>
<token regexp="yes">Emmanuel|Brigitte</token>
<token>Emmanuel</token>
<token>Macron</token>
</antipattern>
<pattern>
<token regexp="yes">[EÉ]mm?ann?uel(lle)?|Brigitt?e?</token>
<token regexp="yes">[EÉ]mm?ann?uel(lle)?</token>
<token regexp="yes">Ma(c|c?k)a?ron</token>
</pattern>
<message>Écrivez <suggestion>Emmanuel Macron</suggestion> s’il s’agit du président de la république.</message>
Expand Down

0 comments on commit 582f845

Please sign in to comment.