Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fr] Temp_off typo rules #9057

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65886,23 +65886,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<example>mais ce n'est pas avant l'année 1847</example>
<example>Meilleurs vœux à Tom et Marie pour l'année 2018.</example>
</rule>
<rule default="off">
<antipattern>
<token regexp="yes">année|années</token>
<token regexp="yes">de|d'</token>
</antipattern>
<pattern>
<token>par
<exception scope="previous" regexp="yes">recherches?</exception></token>
<token regexp="yes">année|années
<exception scope="next" postag="J.*|V.* ppa.*" postag_regexp="yes"/></token>
</pattern>
<message>L’expression « par an » désigne un repère dans le temps.</message>
<suggestion>\1 an</suggestion>
<example correction="par an">Il gagne quatorze mille euros <marker>par année</marker>.</example>
<example>Il est augmenté par année d'ancienneté.</example>
<example>Pour les périodiques faire une recherche par année puis numéro.</example>
</rule>
<rule>
<antipattern>
<token regexp="yes" skip="1">mois|jour|mm|jj</token>
Expand Down Expand Up @@ -70556,7 +70539,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
</antipattern>
<antipattern>
<token>souhaite</token>
<token postag="J m s" postag_regexp="yes"/>
<token postag="J m s"/>
<example>Un jour que je te souhaite chargé d'émotions.</example>
</antipattern>
<pattern>
Expand Down Expand Up @@ -116144,7 +116127,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<example correction="tatonnement|taton-nement">C'est un <marker>tato-nnement</marker>.</example>
<example>The pia- nist</example>
</rule>
<rule default="off">
<rule default="temp_off">
<pattern>
<token postag="UNKNOWN" regexp="yes">\p{L}.*[^aeéèiouy]$
<exception scope="previous">-</exception>
Expand Down Expand Up @@ -123919,7 +123902,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<suggestion><match no="3" regexp_match="(?iu)(\d\d\d$)" regexp_replace=" $1"/></suggestion>
<example correction="300 000">Il en a <marker>300000</marker>.</example>
</rule>
<rule default="off"> <!--rule23-->
<rule default="temp_off"> <!--rule23-->
<antipattern>
<token regexp="yes">\d.*</token>
<token regexp="yes" case_sensitive="yes">AED|AFN|ALL|AMD|ANG|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BGN|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HRK|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLL|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VES|VND|VUV|WST|XAF|XCD|XDR|XOF|XPF|XSU|XUA|YER|ZAR|ZMW|ZWL</token>
Expand Down Expand Up @@ -129390,21 +129373,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<suggestion>autour</suggestion>
<example correction="autour">Il est <marker>au tour</marker> de moi.</example>
</rule>
<rule default="temp_off">
<pattern>
<marker>
<token>maison
<exception scope="previous" postag="[DP].*|J [ef] s" postag_regexp="yes"/></token>
</marker>
<token inflected="yes" min="0" max="1">ne</token>
<token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
<token postag="V.* (ind|con|sub).*" postag_regexp="yes">
<exception postag="[NJ].*" postag_regexp="yes"/></token>
</pattern>
<message>Une espace est nécessaire.</message>
<suggestion>mais on</suggestion>
<example correction="mais on">Il fait nuit <marker>maison</marker> arrive bientôt.</example>
</rule>
<rule>
<pattern>
<marker>
Expand Down Expand Up @@ -129623,7 +129591,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
</rule>
</rulegroup>
<!-- "off" par défaut car l’apostrophe ' est très courante -->
<rule id="APOS_TYP" name="apostrophe typographique (’)" tags="picky" default="off">
<rule id="APOS_TYP" name="apostrophe typographique (’)" tags="picky" default="temp_off">
<pattern>
<token chunk="containsTypewriterApostrophe" regexp="yes">(.*)'(.*)
<exception>'</exception></token>
Expand Down Expand Up @@ -129996,7 +129964,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<example>Nombre 1Z1141X30370035113</example>
<example>...utissement et la fin de développement de la série 2.5x.</example>
</rule>
<rule default="off">
<rule default="temp_off">
<regexp>([a-z]|[\d\.,⁻¹²³⁴⁵⁶⁷⁸⁹⁰]+?[a-z]{0,1})\*([a-z]|[\d\.,⁻¹²³⁴⁵⁶⁷⁸⁹⁰]+?[a-z]{0,1})</regexp>
<message>La lettre 'x' pourrait être remplacée par un signe de multiplication.</message>
<suggestion>\1×\2</suggestion>
Expand Down