Skip to content

Commit

Permalink
[fr] Fix CONFUSION_ER_E_PAR2 after last diffs (#10403)
Browse files Browse the repository at this point in the history
* Fix detection of nouns and verbes that are preceeded with "tu"

* Fix tag order

* Fix CONFUSION_ER_E_PAR2 for adjectives and pronouns

* Fix wrong attribute "skip" used instead of "optional"

* "optional" attribute didn't exist. Replace with the attribute "min"

---------

Co-authored-by: François Billioud <[email protected]>
  • Loading branch information
Sharcoux and Sharcoux authored Mar 15, 2024
1 parent b95198d commit 66968d1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54687,12 +54687,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<rule>
<antipattern>
<token>tu</token>
<token postag="R pers obj.*" postag_regexp="yes" min="0"/>
<token postag="V ind pres 2 s" regexp="yes">.*es$</token>
</antipattern>
<pattern>
<marker>
<token postag="V ind pres 2 s" regexp="yes">
<exception postag="N.*" postag_regexp="yes"/>
<exception postag="J.*" postag_regexp="yes"/>
.*es$
</token>
</marker>
Expand All @@ -54703,6 +54705,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
<example correction="envisagés">Les cours <marker>envisages</marker> par cet élève ne paraissent pas pertinents.</example>
<example>Tu envisages de venir ?</example>
<example>Actes de naissance</example>
<example>Tu me manques</example>
<example>Des choses brillantes</example>
</rule>
<!-- Règle pour les Erreurs d'Orthographe Communes cameras|tractes|magasines|députes|délègues|cosignes|arrives|jures|immigres|troues|lutes -->
<rule>
Expand Down

0 comments on commit 66968d1

Please sign in to comment.