All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.languagetool.resource.fr.disambiguation.xml Maven / Gradle / Ivy

There is a newer version: 6.5
Show newest version
<?xml version="1.0" encoding="utf-8"?>
<!--
French Disambiguation Rules for LanguageTool
Copyright (C) 2007 Agnès Souque, 2011-2014 Dominique Pellé
--><!-- ported from Myriam's Gramadoir rules --><!--
RP => Règles Particulières
RD => Règles par Défaut
RB => Règles Brutes

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
-->

  <!DOCTYPE rules [

    <!ENTITY apostrophe "[’´'‛′‘]">
    <!ENTITY prefixes "mini|anti|pré|nord|sud|néo|méga|ultra|pro|inter|micro|macro|sous|haut|auto|ré|super|vice|hyper|proto|grand|pseudo|multi|mi">
    <!ENTITY unites_temps "an|année|décade|décennie|heure|jour|lustre|millénaire|minute|mois|quadrimestre|seconde|semaine|semestre|siècle|trimestre">
    <!ENTITY expressions_temps "temps|passé|présent|avenir">
    <!ENTITY gentiles "(afghan|amérindien|algérien|arménien|arabe|australien|autrichien|bahaméen|bahreïnien|barbadien|bélizien|breton|bolivien|bosnien|brésilien|brunéien|cambodgien|canadien|capverdien|chilien|colombien|comorien|costaricien|djiboutien|équatorien|équato-guinéen|érythréen|estonien|états[-‑‐]?unien|étasunien|éthiopien|fidjien|gambien|guyanien|haïtien|hondurien|indien|ivoirien|égyptien|ghanéen|géorgien|guadeloupéen|grenadien|guinéen|indonésien|irakien|italien|iranien|israélien|jordanien|koweïtien|laotien|letton|libérien|lituanien|libyen|macédonien|malaisien|maldivien|malien|mauricien|mauritanien|namibien|nicaraguayen|nord[-‑‐]coréen|niouéen|nigérien|norvégien|micronésien|palestinien|panaméen|papouasien|paraguayen|parisien|péruvien|polynésien|qatarien|saint[-‑‐]lucien|salvadorien|santoméen|saoudien|singapourien|somalien|sud[-‑‐]coréen|surinamien|syrien|tahitien|tanzanien|tchadien|tonguien|trinidadien|tunisien|ukrainien|uruguayen|vénézuélien|vietnamien|zambien|zimbabwéen)(s|nes?)?|(albanais|allemand|angolais|anglais|antiguais|azerbaïdjanais|bâlois|bangladais|béninois|bhoutanais|bordelais|birman|botswanais|brestois|bruxellois|burkinais|burundais|camerounais|chinois|congolais|danois|dominiquais|finlandais|français|gabonais|genévois|hollandais|hongrois|indochinois|irlandais|islandais|lapon|libanais|liechtensteinois|lillois|luxembourgeois|japonais|lyonnais|maltais|marseillais|marshallais|myanmarais|nantais|nauruan|néerlandais|néo[-‑‐]zélandais|népalais|omanais|ougandais|pakistanais|paluan|polonais|portugais|rwandais|sénégalais|soudanais|srilankais|suédois|strasbourgeois|seychellois|taïwanais|thaïlandais|togolais|zaïrois|zurichois)(es)?|(andorran|américain|argentin|burkinab[èé]|centrafricain|cubain|dominicain|espagnol|jamaïcain|kényan|kosovar|maori|marocain|mexicain|mongol|monpelliérain|monténégrin|mozambicain|omani|philippin|roumain|sud[-‑‐]africain|toulousain|tuvaluan)e?s?|(basque|belge|biélorusse|britannique|bulgare|chypriote|corse|croate|guatémaltèque|malgache|malawite|moldave|monégasque|russe|slovaque|slovène|suisse|scandinave|serbe|soviétique|tchèque|turkmène|yéménite|yougoslave)s?|bahreïni|émirati|formosan|grec(que)?s?|kazakhs?|sothos|ouzbeks?|qatariotes?|swazi|tadjiks?|turcs?|turques?|vanuatuan">
    <!ENTITY unites_de_mesure "min|(centi|milli|déci|déca|hecto|kilo|atto|exa|mega|giga|tera|peta|zetta|yotta|micro|nano|pico|femto|zepto|yocto)?[mètre|gramme|litre]|degré|[mchkd][wglm]|dag|dal|dam|volt|watt|hz|hertz|bits?|ms|s|cs|cc|dB|go|kw">
    <!ENTITY noms_apres_faire "allusion|montre|appel|autorité|foi|mine|surface|attention|résonn?ance|carrière|confiance|demi-tour|débat|erreur|face|faillite|figure|fortune|fureur|gaffe|gymnastique|horreur|intrusion|irruption|lecture|main|mal|mention|part|partie|peur|place|plaisir|pression|preuve|profil|référence|saillie|semblant|signe|silence|suite|usage|écho|étalage">
    <!ENTITY mois_annee "jan(v?ier)?|f[eé]v(rier)?|mars|avril|mai|juin|jui(llet)?|ao[uû]t|sept?(embre)?|oct(obre)?|nov(embre)?|d[eé]c(embre)?">
]>
<rules lang="fr" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/resource/disambiguation.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <unification feature="number">
        <equivalence type="sg">
            <token postag=".* sp?" postag_regexp="yes"/>
        </equivalence>
        <equivalence type="pl">
            <token postag=".* s?p" postag_regexp="yes"/>
        </equivalence>
    </unification>
    <unification feature="gender">
        <equivalence type="masc">
            <token postag=".* [me] [sp][sp]?" postag_regexp="yes"/>
        </equivalence>
        <equivalence type="fem">
            <token postag=".* [fe] [sp][sp]?" postag_regexp="yes"/>
        </equivalence>
    </unification>
    <unification feature="person">
        <equivalence type="p1">
            <token postag=".* 1 .*" postag_regexp="yes"/>
        </equivalence>
        <equivalence type="p2">
            <token postag=".* 2 .*" postag_regexp="yes"/>
        </equivalence>
        <equivalence type="p3">
            <token postag=".* 3 .*" postag_regexp="yes"/>
        </equivalence>
    </unification>
    <!-- CATEGORY: numerals -->
    <rule id="ROMAN_NUMBER" name="roman number">
        <antipattern>
            <token>rayons</token>
            <token>x</token>
        </antipattern>
        <pattern>
            <!--(?=[MDCLXVI])M*(C[MD]|D?C*)(X[CL]|L?X*)(I[XV]|V?I*)-->
            <token regexp="yes" case_sensitive="yes">(?=.)M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})
                <exception scope="next" regexp="yes">&apostrophe;</exception></token>
        </pattern>
        <disambig postag=""/>
    </rule>
    <rule name="RD : nombres" id="RD-NOMBRES">
        <pattern>
            <marker>
                <token regexp="yes">\d[\d \.,]*</token>
            </marker>
        </pattern>
        <disambig postag="Y"/>
    </rule>
    <rule id="L_AN" name="l'an X">
        <pattern>
            <token>l'</token>
            <token>an</token>
            <marker>
                <token postag="K"/>
            </marker>
        </pattern>
        <disambig postag="K"/>
    </rule>
    <rule id="X_AN" name="Nombre suivi de 'an'">
        <pattern>
            <marker>
                <token postag="K"/>
            </marker>
            <token>an</token>
        </pattern>
        <disambig postag="K"/>
    </rule>
    <rule name="années" id="ANNEES">
        <pattern>
            <token regexp="yes">\d+</token>
            <marker>
                <token regexp="yes" case_sensitive="yes">EC|CE|AEC</token>
                <!-- CE is an anglicism -->
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
        </disambig>
    </rule>
    <rulegroup name="taille neuf" id="TAILLE_NEUF">
        <rule>
        <pattern>
            <token postag="N f s">taille</token>
            <marker>
                <token>neuf</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>neuf</token>
                </marker>
                <token postag="N f s">taille</token>
            </pattern>
            <disambig action="remove" postag="J m s"/>
        </rule>
    </rulegroup>
    <rule id="NEUF_CHIFFRE" name="neuf chiffre">
        <pattern>
            <token postag="[YK]" postag_regexp="yes"/>
            <token>virgule</token>
            <marker>
                <token>neuf</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="K"/>
    </rule>
    <!-- END: numerals -->
    <!-- CATEGORY: remove unusual tags -->
    <rule id="TOUT_JUSTE_VPPA" name="tout juste vppa">
        <pattern>
            <token>tout</token>
            <marker>
                <token>juste</token>
            </marker>
        <token postag="V.* ppa.*|J.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="NOM_AMATEUR" name="nom amateur">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>amateur</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J m s"/>
    </rule>
    <rule id="ETRE_CONTENT" name="être content">
        <pattern>
            <token postag="V etre.*" postag_regexp="yes"/>
            <token postag="A|R pers suj.*" postag_regexp="yes"/>
            <marker>
                <token>content</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J m s"/>
    </rule>
    <rule id="PAYS_BALTES" name="pays baltes">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>baltes</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J e p"/>
    </rule>
    <rule id="SEUL_NOM" name="seul nom">
        <pattern>
            <token regexp="yes">seule?s?</token>
            <token regexp="yes">les?|la</token>
            <marker>
                <token postag="V inf"/>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="CELUI_LA_VERBE" name="celui-là verbe">
        <pattern>
            <token regexp="yes">celles?-là|celui-là|ceux-là|celles?-ci|celui-ci|ceux-ci
                <exception scope="previous" postag="P|C sub" postag_regexp="yes"/></token>
            <marker>
                <and>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="QUE_LE_DEVOIR" name="que le devoir">
        <pattern>
            <token>que</token>
            <token>le</token>
            <marker>
                <token>devoir</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rulegroup id="LA_PAILLE" name="la paille">
    <rule>
        <pattern>
            <and>
            <token postag="D f s"/>
            <token postag="_GN_FS"/>
            </and>
            <marker>
                <and>
                    <token postag="N f s"/>
                    <token postag="_GN_FS"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule>
        <pattern>
            <and>
                <token postag="D [em] s" postag_regexp="yes"/>
                <token postag="_GN_MS"/>
            </and>
            <marker>
                <and>
                    <token postag="N [em] s" postag_regexp="yes"/>
                    <token postag="_GN_MS"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    </rulegroup>
    <rulegroup id="FAILLI" name="failli">
        <rule>
            <pattern>
                <token>à</token>
                <token>bien</token>
                <marker>
                    <token>failli</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa m s"/>
        </rule>
        <rule>
            <pattern>
                <token>à</token>
                <token postag="A" min="0" max="3"/>
                <marker>
                    <token>failli</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V avoir.*" postag_regexp="yes"/>
                <token postag="A" min="0" max="3"/>
                <marker>
                    <token>faillis</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa m p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="A"/>
                <marker>
                    <token>promis</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="J m sp"/>
        </rule>
    </rulegroup>
    <rule id="VOUS_VERBE2P" name="vous verbe 2 p">
        <pattern>
            <marker>
                <token>vous</token>
            </marker>
            <token postag="V .* 2 p" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="R pers obj 2 p"/>
    </rule>
    <rule id="FUTURE_NOURRISSE" name="future nourrisse">
        <pattern>
            <token postag="J f s"/>
            <marker>
                <token>nourrisse</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="ANXIETE_CHRONIQUE" name="anxiété chronique">
        <pattern>
            <token postag="N . s" postag_regexp="yes">
                    <exception regexp="yes">une?</exception></token>
            <marker>
                <token>chronique</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J e s"/>
    </rule>
    <rule id="TAPE_AUTOUR" name="tape autour">
        <pattern>
            <token postag="[VAN].*" postag_regexp="yes"/>
            <marker>
                <token>autour</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rule id="AYANT" name="ayant">
        <pattern>
            <marker>
                <token>ayant</token>
            </marker>
            <token postag="[APD].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V avoir ppr"/>
    </rule>
    <rule id="DANS1" name="dans">
        <pattern>
            <marker>
                <token>dans</token>
            </marker>
            <token postag="[PD].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rule id="VIT" name="vit">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes"/>
            <marker>
                <token>vit</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="TOUCHER" name="toucher">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes"/>
            <marker>
                <token>toucher</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="SORT" name="sort">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes">
                <exception regexp="yes">une?</exception>
            </token>
            <marker>
                <token>sort</token>
            </marker>
            <token postag="[AD].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="REVIENT" name="revient">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes"/>
            <marker>
                <token>revient</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="ETAIS" name="étais">
        <pattern>
            <token postag="N.*" postag_regexp="yes">
                <exception postag="J.*" postag_regexp="yes"/>
            </token>
            <marker>
                <token>étais</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m p"/>
    </rule>
    <rule id="DEVANT" name="devant">
        <pattern>
            <marker>
                <token>devant</token>
            </marker>
            <token postag="D.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rule id="TOUT_AVOIR" name="tout avoir">
        <pattern>
            <token>tout</token>
            <marker>
                <token>avoir</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V avoir inf"/>
    </rule>
    <rule id="SECURITE_INCENDIE" name="sécurité incendie">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>incendie</token>
            </marker>
            <token><exception postag="A|[PD].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="NOMBRE_DE" name="nombre de">
        <pattern>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token>nombre</token>
            </marker>
            <token inflected="yes">de</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="REPOS_COURT" name="repos court">
        <pattern>
            <token postag="[JN].*" postag_regexp="yes"/>
            <marker>
                <token>court</token>
            </marker>
            <token inflected="yes" min="0" max="1">ne</token>
            <token postag="V.* 3 ." postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="J m s"/>
    </rule>
    <rule id="NOM_FEMININ" name="nom féminin">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token postag="N e s"/>
            </marker>
            <token postag="J f s"/>
        </pattern>
        <disambig action="replace" postag="N f s"/>
    </rule>
    <rulegroup id="POULET_FERMIER" name="poulet fermier">
        <rule>
        <pattern>
                <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>fermier</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>fermiers</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J m p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>fermière</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>fermières</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J f p"/>
        </rule>
    </rulegroup>
    <!--<rule id="WRONG_SENT_END" name="wrong sent_end">
        <pattern>
            <token regexp="yes" case_sensitive="yes">ambass|p|liv|assoc|bibl|ENREG|al|circ|concl|deb|dest|dupl|éd|écon|incl?|ital|jur|juris|jurispr|larg|lex|législ|longit|(?-i)RR|(?-i)ÉÉm|(?-i)EExc|métr|méd|néol|obs|plur|préf|prog|publ|trib|trim|suiv|(?-i)LL|env|élem|ér|ét|hon|hypexp|conj|coop|ch|alph|anglic|app|pr|collab|paragr|sect|para|commiss|coord|dép|dir|gér|secour|sén|gén|abrév|adj|adr|anon|append|av|auj|bibl|bibliogr|bdc|boul|bull|bur|caar|cat|cell|chap|cir|compl|cf|corres|dest|dict|div|dom|dr|édif|éd|électr|élém|encycl|fig|fl|graph|hist|hyp|ill-imm-imp|impr|incl|inc|ind|in[gtvf]|jur|lat|litt|liq|loc|liv|livr|méd|mém|pl|réd|rel|sc|suiv|sup|suppl|trad|univ|mus|pharm|soc|pol|compt|urb|act|confect|exp|réal|prov|introd|inv|tial|enr|ép|équiv|esp|étym|excl|exc|ap|arr|arch|adv|al|anc|angl|ann|gest|gouv|prés|rect|représ|resp|scrut|vol|coll|réf|id|sqq?|janv|fév|avr|juill|oct|nov|déc|admin</token>
            <marker>
                <token regexp="yes">[\.]</token>
            </marker>
            <token regexp="yes" case_sensitive="yes">[a-z].*</token>
        </pattern>
        <disambig action="remove" postag="SENT_END"/>
    </rule>
    <rulegroup id="WRONG_SENT_START" name="wrong sent_start">
        <rule>
        <pattern>
            <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>
           <marker>
            <token postag="SENT_END">.</token>
           </marker>
        </pattern>
        <disambig action="remove" postag="SENT_END"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token regexp="yes">de|par</token>
                <token postag="Z.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token regexp="yes">de|par</token>
                <token regexp="yes">&unites_de_mesure;</token>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
                <token regexp="yes">]</token>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token regexp="yes" case_sensitive="yes">ambass|pp?|liv|assoc|bibl|ENREG|al|circ|concl|deb|dest|dupl|éd|écon|incl?|ital|jur|juris|jurispr|larg|lex|législ|longit|(?-i)RR|(?-i)ÉÉm|(?-i)EExc|métr|méd|néol|obs|plur|préf|prog|publ|trib|trim|suiv|(?-i)LL|env|élem|ér|ét|hon|hypexp|conj|coop|ch|alph|anglic|app|pr|collab|paragr|sect|para|commiss|coord|dép|dir|gér|secour|sén|gén|abrév|adj|adr|anon|append|av|auj|bibl|bibliogr|bdc|boul|bull|bur|caar|cat|cell|chap|cir|compl|cf|corres|dest|dict|div|dom|dr|édif|éd|électr|élém|encycl|fig|fl|graph|hist|hyp|ill-imm-imp|impr|incl|inc|ind|in[gtvf]|jur|lat|litt|liq|loc|liv|livr|méd|mém|pl|réd|rel|sc|suiv|sup|suppl|trad|univ|mus|pharm|soc|pol|compt|urb|act|confect|exp|réal|prov|introd|inv|tial|enr|ép|équiv|esp|étym|excl|exc|ap|arr|arch|adv|al|anc|angl|ann|gest|gouv|prés|rect|représ|resp|scrut|vol|coll|réf|id|sqq?|janv|fév|avr|juill|oct|nov|déc|admin</token>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token regexp="yes">oct|déc|jan|fév|avr|juil|sept|nov</token>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SENT_START"/>
                </marker>
                <token postag="_IS_URL"/>
            </pattern>
            <disambig action="remove" postag="SENT_START"/>
        </rule>
    </rulegroup>
    
    <rule id="DIALOGUE_SENT_START_WRONG" name="wrong sent_start tag in dialogs">
        <pattern>
            <marker>
                <token postag="SENT_START"/>
            </marker>
            <token regexp="yes" min="0" max="1">[mts]e|[nv]ous|leur|lui</token>
            <token inflected="yes" postag="V.* 3 ." postag_regexp="yes" regexp="yes">répéter|demander|couper|enquérir|exclamer|maugréer|rétorquer|grogner|déclarer|renchérir|rire|rigoler|ricaner|chantonner|sifflotter|interroger|dire|affirmer|ajouter|murmurer|chuchoter|crier|hurler|vociférer|répondre|soupirer|répliquer|reprendre</token>
            <token regexp="yes">-ils?|-t-ils?|-elle?|-t-elles?</token>
        </pattern>
        <disambig action="replace" postag=""/>
    </rule>
    <rule id="CUILLER_A_SOUPE" name="wrong sent_start">
        <pattern>
            <marker>
                <token postag="SENT_START"/>
            </marker>
            <token regexp="yes">[aà]</token>
            <token regexp="yes">soupe|café</token>
        </pattern>
        <disambig action="replace" postag=""/>
    </rule>-->
    <rule id="TOUT_LE_MONDE" name="tout le monde">
        <pattern>
            <token>tout</token>
            <token>le</token>
            <token>monde</token>
            <marker>
                <and>
                    <token postag="V imp pres 2 s"/>
                    <token postag="V ind pres 3 s"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V imp pres 2 s"/>
    </rule>
    <rule id="FIN" name="fin">
        <pattern>
            <token>
                <exception>en</exception></token>
            <marker>
                <token>fin</token>
            </marker>
            <token regexp="yes">des?|d'|du</token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="BIEN1" name="bien">
        <pattern>
            <token postag="V avoir.*" postag_regexp="yes"/>
            <token postag="A"/>
            <marker>
                <token postag="A" regexp="yes">bien|vite</token>
            </marker>
            <token postag="V.* inf|V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="BIEN2" name="bien">
        <pattern>
            <token postag="V avoir.*" postag_regexp="yes"/>
            <marker>
                <token postag="A" regexp="yes">bien|vite</token>
            </marker>
            <token postag="V.* inf|V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="DES_FAITS" name="des faits">
        <pattern>
            <token>des</token>
            <marker>
                <token regexp="yes">faits|appliqués|coulissants|aquifères</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m p"/>
    </rule>
    <rule id="TRANSIT" name="transit">
        <pattern>
            <token postag="V.*" postag_regexp="yes">
                <exception inflected="yes">faire</exception></token>
            <marker>
                <token>transit</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="RACCOURCIS" name="raccourcis">
        <pattern>
            <token postag="(P\+)?D . s" postag_regexp="yes"/>
            <token postag="J m sp"/>
            <marker>
                <token postag="N m p"/>
            </marker>
        </pattern>
        <disambig action="remove" postag="V (ind|imp|sub).*"/>
    </rule>
    <rule id="BAS" name="bas">
        <pattern>
            <marker>
                <token>bas</token>
            </marker>
            <token regexp="yes">résilles?</token>
        </pattern>
        <disambig action="filter" postag="N m sp"/>
    </rule>
    <rule id="PERSOS1" name="perso">
        <pattern>
            <marker>
                <token postag="D . p" postag_regexp="yes"/>
            </marker>
            <token regexp="yes">persos|plaqués</token>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="VARIABLE" name="variable">
        <pattern>
            <marker>
                <token regexp="yes">variables?</token>
            </marker>
            <token>système</token>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="BASSSE" name="basse">
        <pattern>
            <token regexp="yes">caissons?</token>
            <token>de</token>
            <marker>
                <token regexp="yes">bassses?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rulegroup id="POINT1" name="point1">
        <rule>
            <pattern>
                <token>à</token>
                <marker>
                    <token>point</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V (ind|imp|sub).*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N m s">point</token>
                    <token postag="N f s">barre</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="BANANES" name="bananes">
        <rule>
            <pattern>
                <token>tu</token>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
                <marker>
                    <token postag="N f p"/>
                </marker>
            </pattern>
            <disambig action="remove" postag="N f p"/>
        </rule>
        <rule>
            <pattern>
                <token>y</token>
                <marker>
                    <token postag="N f p"/>
                </marker>
            </pattern>
            <disambig action="remove" postag="N f p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>tu</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 pres 2 s" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers suj 2 s"/>
        </rule>
    </rulegroup>
    <rulegroup id="EDITIONS" name="éditions">
        <antipattern>
            <token skip="20">nous</token>
            <token postag="N . p" postag_regexp="yes" regexp="yes">.*ons$</token>
        </antipattern>
        <antipattern>
            <token skip="20">tu</token>
            <token postag="N . p" postag_regexp="yes" regexp="yes">.*es$</token>
        </antipattern>
        <antipattern>
            <token postag="N . p" postag_regexp="yes" regexp="yes">.*ons$</token>
            <token regexp="yes">(-?)nous</token>
        </antipattern>
        <antipattern>
            <token postag="N . p" postag_regexp="yes" regexp="yes">.*es$</token>
            <token regexp="yes">(-?)tu</token>
        </antipattern>
        <rule>
            <pattern>
                <token postag="[NJ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="N . p" postag_regexp="yes" regexp="yes">.*es$</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (ind|sub|imp).* 2 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="N . p" postag_regexp="yes" regexp="yes">.*ons$</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (ind|sub|imp).* 1 p"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">des?|d'</token>
                <marker>
                    <token postag="N f p" regexp="yes">.*es$</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="V.* (ind|sub|imp).*"/>
        </rule>
    </rulegroup>
    <rule id="CELA_LA_DESSERT" name="cela la dessert">
        <pattern>
            <token postag="R pers suj 3 . s|R dem.*" postag_regexp="yes">
                <exception regexp="yes">-.*</exception></token>
            <token regexp="yes">la|les?</token>
            <marker>
                <and>
                    <token postag="N . s" postag_regexp="yes"/>
                    <token postag="V ind pres 3 s" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N . s"/>
    </rule>
    <rule id="CERTAIN" name="certain">
        <pattern>
            <token postag="M nonfin|SENT_START|C.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">certaine?s?</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="R.*"/>
    </rule>
    <rule id="AUTRE" name="autre">
        <pattern>
            <token regexp="yes">autres?</token>
            <marker>
                <and>
                    <token postag="N . s" postag_regexp="yes"/>
                    <token postag="V ind pres [23] s" postag_regexp="yes"/>
                </and>
            </marker>
            <token>
                <exception postag="R pers suj.*" postag_regexp="yes" regexp="yes">-ils?|-elles?|-on|-je|-tu|-[nv]ous</exception></token>
        </pattern>
        <disambig action="remove" postag="V.* (ind|sub|imp).*"/>
    </rule>
    <rule id="EXCELLENT" name="excellent">
        <pattern>
            <marker>
                <token>excellent</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="V.* (ind|sub|imp).*"/>
    </rule>
    <rule id="JEUNE" name="jeune">
        <pattern>
            <marker>
                <token regexp="yes">jeunes?</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="REVENU" name="revenu">
        <pattern>
            <token regexp="yes">faibles?|hauts?|forts?|bas?</token>
            <marker>
                <token regexp="yes">revenus?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="VOIRE_MEME" name="voire même">
        <pattern>
            <token>voire</token>
            <marker>
                <token>même</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="POLICIERS" name="policiers">
        <pattern>
            <token>de</token>
            <marker>
                <token>policiers</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J m p"/>
    </rule>
    <rulegroup id="PERSOS" name="persos">
        <antipattern>
            <token postag="V.*" postag_regexp="yes"/>
            <token postag="A" min="0" max="3"/>
            <token regexp="yes" inflected="yes">point|directeur|produit|roman|entreprise|donnée|participant|distributeur|consommateur|pro|partie|permis|plan|accessoire|employé|rentrée|sortie|candidat|abonné|adaptateur|adhérent|ami|Beaujolais|bienvenue|caractéristique|chéri|Collégiale|Commune|imprimé|Logiciel|législative|Mathématiques|meuble|mobile|moteur|Perspective|Plastique|Sommaire|sorcier|spécialiste|suivi|technicien|tarte|tortue|malade|maréchal|Imprimantes|Composite|Concasseur|conduite|con|cuvée|descriptif|Détecteur|garantie|gironde|Handicapé-portable|perso|prostituée|animateur|armée|arrivée|artisan|cannelé|capital|action|comparatif|composant|contenu|contraite|courbe|crue|cube|enceinte|immobilier|impératif|manuel|manuscrit|pensée|pers|présidentielle|prêt|standard|statisitque|surprise|tapis|tissu|vernis|veuf|vidéo|adulte|amateur</token>
            <token postag="[NJ].*" postag_regexp="yes"/>
        </antipattern>
        <antipattern><!-- Cette photo que m'a donnée Tom.-->
            <token postag="V (avoir|etre).*" postag_regexp="yes"/>
            <token postag="A" min="0" max="3"/>
            <token regexp="yes" inflected="yes">point|directeur|produit|roman|entreprise|donnée|participant|distributeur|consommateur|pro|partie|permis|plan|accessoire|employé|rentrée|sortie|candidat|abonné|adaptateur|adhérent|ami|Beaujolais|bienvenue|caractéristique|chéri|Collégiale|Commune|imprimé|Logiciel|législative|Mathématiques|meuble|mobile|moteur|Perspective|Plastique|Sommaire|sorcier|spécialiste|suivi|technicien|tarte|tortue|malade|maréchal|Imprimantes|Composite|Concasseur|conduite|con|cuvée|descriptif|Détecteur|garantie|gironde|Handicapé-portable|perso|prostituée|animateur|armée|arrivée|artisan|cannelé|capital|action|comparatif|composant|contenu|contraite|courbe|crue|cube|enceinte|immobilier|impératif|manuel|manuscrit|pensée|pers|présidentielle|prêt|standard|statisitque|surprise|tapis|tissu|vernis|veuf|vidéo|adulte|amateur</token>
        </antipattern>
        <antipattern>
            <token postag="R.*" postag_regexp="yes" min="0" max="3"/>
            <token inflected="yes" min="0" max="1">ne</token>
            <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
            <token regexp="yes" inflected="yes">point|produit|permis|courbe|vernis|suivis</token>
            <token postag="[NJ].*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token>
                <exception postag="V.*" postag_regexp="yes"/></token>
            <token postag="R pers obj.*" postag_regexp="yes" min="1" max="3"/>
            <token regexp="yes" inflected="yes">point|produit|permis|courbe|vernis|suivis</token>
        </antipattern>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes" inflected="yes">point|directeur|roman|entreprise|donnée|participant|distributeur|consommateur|pro|partie|permis|plan|accessoire|employé|rentrée|sortie|candidat|abonné|adaptateur|adhérent|Beaujolais|bienvenue|caractéristique|chéri|Collégiale|Commune|imprimé|Logiciel|législative|Mathématiques|meuble|mobile|moteur|Perspective|Plastique|Sommaire|sorcier|spécialiste|suivi|technicien|tarte|tortue|malade|maréchal|Imprimantes|Composite|Concasseur|conduite|con|cuvée|descriptif|Détecteur|garantie|gironde|Handicapé-portable|perso|prostituée|animateur|armée|arrivée|artisan|cannelé|capital|action|comparatif|composant|contenu|contraite|courbe|crue|cube|enceinte|immobilier|impératif|manuel|manuscrit|pensée|pers|présidentielle|prêt|standard|statisitque|surprise|tapis|tissu|vernis|veuf|vidéo|adulte|amateur</token>
                </marker>
                <token postag="[NZJ].*" postag_regexp="yes">
                    <exception>pas</exception></token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D . s" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">liste|machine|discipline|agence|rencontre|recherche|place|chose|usine|pilote|avarie</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token>en</token>
                <marker>
                    <token regexp="yes">liste|machine|discipline|agence|rencontre|recherche|place|chose|usine|pilote|avarie</token>
                </marker>
                <token postag="J.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D . s" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">centre|type|dû|massage|élastique|ouvrage|signe|pilote|extrait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="J.*" postag_regexp="yes" regexp="yes" inflected="yes">différente?s?|éventuelles?|éventuels?|jeunes?|premi[èe]re?s?|seconde?s?|propre|sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau|superbe|important|gentil|méchant|parfait|grave|rare|énorme|lourd|futur|cher|majeur|simple|joli|mineur|meme|immense|minsucule|lointain|proche|infime|gigantesque|étrange|hideux|ravissant|magnifique|sombre|timide|sympathique|généreux|fidèle|loyal</token>
                <marker>
                    <token regexp="yes">liste|machine|discipline|agence|centre|type|dû|massage|rencontre|avarie|élastique|ouvrage|recherche|place|chose|signe|pilote|usine|extrait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N . s"/>
        </rule>
    </rulegroup>
    <rule id="EN_LA_COMMANDANT" name="en la commandant">
        <pattern>
            <token>en</token>
            <token regexp="yes">la|les?</token>
            <marker>
                <and>
                    <token postag="N m s"/>
                    <token postag="V ppr"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="N_DEMANDE" name="nom + demande">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token regexp="yes">jeunes?|vieux|premi[èe]re?|grand|petit|gros|méchant|gentil</token>
            <marker>
                <token>demande</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="CERTAIN_VPPR" name="certain cédant">
        <pattern>
            <token regexp="yes">certaine?s?|derni[èe]re?s?|secondes?|premi[èe]re?s?</token>
            <marker>
                <and>
                    <token postag="N m s"/>
                    <token postag="V ppr"/>
                </and>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token postag="P|C sub" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="CE_DERNIER_MESURE" name="ce dernier mesure">
        <pattern>
            <token postag="D m s"/>
            <token>dernier</token>
            <marker>
                <token postag="V ind pres 3 s"/>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token postag="D.*|C sub" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="JE_SOIS" name="je sois">
        <pattern>
            <token>je</token>
            <token inflected="yes" min="0" max="1">ne</token>
            <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
            <marker>
                <token postag="V etre sub pres 1 s"/>
            </marker>
        </pattern>
        <disambig action="remove" postag="V etre sub pres 2 s"/>
    </rule>
    <rule id="LA_LOTUS" name="la lotus">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token case_sensitive="yes">Lotus</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="TRILLIONS" name="trillions">
        <pattern>
            <token postag="[YK]" postag_regexp="yes"/>
            <marker>
                <and>
                    <token>trillions</token>
                    <token postag="V sub pres 1 p"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V sub pres 1 p"/>
    </rule>
    <rule id="QUE_CE_SOIT" name="que ce soit">
        <pattern>
            <token>que</token>
            <token>ce</token>
            <marker>
                <token>soit</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V etre sub pres 3 s"/>
    </rule>
    <rule id="CITE1" name="cité1">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token regexp="yes">fin|cité</token>
            </marker>
            <token postag="J f s"/>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="QUI_DIT" name="qui">
        <pattern>
            <token postag="SENT_START|M nonfin|C coor" postag_regexp="yes"/>
            <token>qui</token>
            <marker>
                <token>dit</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="TOUT_DROIT" name="tout droit">
        <pattern>
            <token>tout</token>
            <marker>
                <token>droit</token>
            </marker>
            <token postag="V ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="FAIT_AFFAIRE" name="fait affaire">
        <pattern>
            <token>tout</token>
            <marker>
                <token>fait</token>
            </marker>
            <token regexp="yes">affaire|fête|envie|plaisir|peur|honte|route|équipe|recette|polémique|halte|escale</token>
        </pattern>
        <disambig action="remove" postag="J m s"/>
    </rule>
    <rule id="COMPARATIF" name="comparatif">
        <pattern>
            <token postag=".*D m s" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">correspondant|contractuel|contenu|constructeur|consultant|comparatif</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="MALAISE_VAGAL" name="malaise vagal">
        <pattern>
            <marker>
                <token>malaise</token>
            </marker>
            <token>vagal</token>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rulegroup id="LITRE" name="litre">
        <rule>
            <pattern>
                <token regexp="yes" skip="-1">chapelle|église|écu|monastère|funèbre|ornée?s?|décès|seigneuriales?|gisante?s?|défunts?|armoiries|obsèques|armes|blasons?|funéraire|rite|nef|crucifix|vestige|seigneurs?|seigneuries?|évêché|chœur|funérailles?</token>
                <marker>
                    <token>litre</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token skip="-1">litre</token>
                </marker>
                <token regexp="yes">chapelle|église|écu|monastère|funèbre|ornée?s?|décès|seigneuriales?|gisante?s?|défunts?|armoiries|obsèques|armes|blasons?|funéraire|rite|nef|crucifix|vestige|seigneurs?|seigneuries?|évêché|chœur|funérailles?</token>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
        <rule>
            <antipattern>
                <token regexp="yes" skip="-1">chapelle|funéraire|église|écu|monastère|funèbre|ornée?s?|décès|seigneuriales?|gisante?s?|défunts?|armoiries|obsèques|armes|blasons?|funéraire|rite|nef|crucifix|vestige|seigneurs?|seigneuries?|évêché|chœur|funérailles?</token>
                <token>litre</token>
            </antipattern>
            <antipattern>
                <token skip="-1">litre</token>
                <token regexp="yes">chapelle|funéraire|église|écu|monastère|funèbre|ornée?s?|décès|seigneuriales?|gisante?s?|défunts?|armoiries|obsèques|armes|blasons?|funéraire|rite|nef|crucifix|vestige|seigneurs?|seigneuries?|évêché|chœur|funérailles?</token>
            </antipattern>
            <pattern>
                <marker>
                    <token skip="-1">litre</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="N f s"/>
        </rule>
    </rulegroup>
    <rule id="QUI_LA_CONTROLE" name="qui la contrôle">
        <pattern>
            <token>qui</token>
            <token regexp="yes">la|les?</token>
            <marker>
                <and>
                    <token postag="N m s"/>
                    <token postag="V ind pres 3 s"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rulegroup id="LA_POUSSA" name="la poussa">
        <rule>
            <pattern>
                <token regexp="yes">la|les?</token>
                <marker>
                    <token>poussa</token>
                </marker>
                <token postag="A" min="0" max="3"/>
                <token postag="P"/>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token postag="[DP].*" postag_regexp="yes" min="0" max="2"/>
                <token postag="[NJ].*" postag_regexp="yes" min="1" max="2"/>
                <token regexp="yes">la|les?</token>
                <marker>
                    <token>poussa</token>
                </marker>
                <token postag="A" min="0" max="3"/>
                <token postag="P"/>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
    </rulegroup>
    <rule id="LA_CRIBLE" name="la crible">
        <pattern>
            <token regexp="yes">la|les?</token>
            <marker>
                <token>crible</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="MEME" name="même">
        <pattern>
            <token regexp="yes">certaine?s?|quelques|plusieurs</token>
            <marker>
                <token>même</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J e s"/>
    </rule>
    <rulegroup id="CEUX_QUI_L_ECOUTE" name="ceux qui l'écoute">
        <rule>
            <pattern>
                <token>
                    <exception postag="P"/></token>
                <token regexp="yes">ceux|celles?|celui</token>
                <token>qui</token>
                <marker>
                    <token postag="D e s">l'</token>
                </marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </pattern>
            <disambig action="replace" postag="R pers obj e s"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="P"/></token>
                <token regexp="yes">ceux|celles?|celui</token>
                <token>qui</token>
                <token>l'</token>
                <marker>
                    <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V ind pres 3 ." postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="replace" postag="V ind pres 3 s"/>
        </rule>
    </rulegroup>
    <rule id="JE" name="je">
        <pattern>
            <token>je</token>
            <token postag="R pers obj.*" postag_regexp="yes"/>
            <marker>
                <token>permets</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ind pres 2 s"/>
    </rule>
    <rule id="STEAK_FRITES" name="steak frites">
        <pattern>
            <token regexp="yes">steaks?</token>
            <marker>
                <token regexp="yes">frites?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="POINTS_POSITIFS" name="points positifs">
        <pattern>
            <marker>
                <token regexp="yes">points?</token>
            </marker>
            <token regexp="yes">positifs?|négatifs?|neutres?</token>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="REVUE_DE_NOM" name="revue de nom">
        <pattern>
            <marker>
                <token regexp="yes">revues?</token>
            </marker>
            <token inflected="yes">de</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="V ppa.*"/>
    </rule>
    <rule id="REVUE_DE_NOM1" name="revue de nom">
        <pattern>
            <marker>
                <token regexp="yes">revues?</token>
            </marker>
            <token inflected="yes">de</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="NIVEAU_PORTIERES" name="niveau portières">
        <pattern>
            <marker>
                <token regexp="yes">niveaux?</token>
            </marker>
            <token regexp="yes">portières?</token>
        </pattern>
        <disambig action="filter" postag="V.* ppa.*"/>
    </rule>
    <rulegroup id="INTERDIT1" name="interdit1">
    <rule>
        <pattern>
            <token postag="N.*" postag_regexp="yes">
                <exception postag="V (avoir|etre).*|A" postag_regexp="yes"/></token>
            <marker>
                <token>interdit</token>
            </marker>
            <token regexp="yes" skip="-1">à|aux?</token>
            <token inflected="yes">de</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes"/>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes">
                    <exception postag="V (avoir|etre).*|A" postag_regexp="yes"/></token>
                <marker>
                    <token>interdit</token>
                </marker>
                <token inflected="yes" >de</token>
                <token regexp="yes" min="0" max="2">ne|pas</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="1"/>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes"/>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes">
                    <exception postag="V (avoir|etre).*|A" postag_regexp="yes"/></token>
                <marker>
                    <token>interdit</token>
                </marker>
                <token regexp="yes">en|à|pour</token>
                <token postag="[NZ].*" postag_regexp="yes"/>
                <token postag="D.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
    </rulegroup>
    <rule id="TIROIR_COUVERT" name="tiroir couvert">
        <pattern>
            <token regexp="yes">tiroirs?</token>
            <marker>
                <token regexp="yes">couverts?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="JE_LE_POURRAIS" name="je le pourrais">
        <pattern>
            <token inflected="yes">je</token>
            <token inflected="yes" min="0" max="1">ne</token>
            <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
            <marker>
                <token postag="V.* con pres 1 s" postag_regexp="yes"/>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.* con pres 2 s"/>
    </rule>
    <rule name="google" id="GOOGLE">
        <pattern>
            <marker>
                <token>google</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"/>
        </pattern>
        <disambig action="replace" postag="Z e sp"/>
    </rule>
    <rulegroup name="pensées" id="PENSEES">
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes">
                    <exception>train</exception></token>
                <token>de</token>
                <marker>
                    <token>pensée</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token>pensée</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <token>de</token>
                <marker>
                    <token>pensées</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token>pensées</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f p"/>
        </rule>
    </rulegroup>
    <rulegroup name="découverte" id="DECOUVERTE">
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin|C coor" postag_regexp="yes"/>
                <marker>
                    <token>découverte</token>
                </marker>
                <token postag="J.*" postag_regexp="yes" min="0" max="1"/>
                <token regexp="yes">des?|du</token>
            </pattern>
            <disambig action="remove" postag="V ppa f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <token>de</token>
                <marker>
                    <token>découverte</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f s"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="[AZNJ].*" postag_regexp="yes"/></token>
                <token postag="D f s"/>
                <marker>
                    <token>découverte</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa f s"/>
        </rule>
    </rulegroup>
    <rule name="étudiant" id="ETUDIANT">
        <pattern>
            <token postag="SENT_START"/>
            <marker>
                <token>étudiant</token>
            </marker>
            <token regexp="yes">des?|en</token>
        </pattern>
        <disambig action="remove" postag="V ppr"/>
    </rule>
    <rulegroup name="tu" id="TU">
        <rule>
            <pattern>
                <token>que</token>
                <marker>
                    <token>tu</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="J m s"/>
        </rule>
        <rule>
            <pattern>
                <token>que</token>
                <marker>
                    <token>tu</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppa m s"/>
        </rule>
    </rulegroup>
    <rule name="avoir envie" id="AVOIR_ENVIE">
        <pattern>
            <token postag="V avoir.*" postag_regexp="yes"/>
            <token postag="A" min="0" max="1"/>
            <token min="0" max="1">du</token>
            <token>tout</token>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">envie|avantage</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="N.*"/>
    </rule>
    <rulegroup name="il entre" id="IL_ENTRE">
        <rule>
            <pattern>
                <token>
                    <exception postag="V.* (ind|con|sub).*" postag_regexp="yes"/></token>
                <token postag="R pers suj 1 s"/>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
                <marker>
                    <token>entre</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="P"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="V.* (ind|con|sub).*" postag_regexp="yes"/></token>
                <token postag="R pers suj 3 . s" postag_regexp="yes">
                    <exception>-t-il</exception></token>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
                <marker>
                    <token postag="P">entre</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="V ind pres 3 s"/>
        </rule>
    </rulegroup>
    <rule name="moi seul vis" id="MOI_SEUL_VIS">
        <pattern>
            <token regexp="yes">[mt]oi|lui|elle|[nv]ous|eux</token>
            <token regexp="yes">seule?s?</token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="CLIENT" name="client (not adj)">
        <!-- They are usually nouns in apposition -->
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">acquéreur|fumeur|bruleur|brûleur|ordinateur|conducteur|utilisateur|client|administrateur|entreprise|identifiant|prestataire</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="LA_NOT_NOUN" name="la (not noun)">
        <antipattern>
            <token>la</token>
            <token regexp="yes">majeur|mineur|44\d</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="[RD].*" postag_regexp="yes">la</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m sp"/>
    </rule>
    <rule id="QUE" name="que">
        <!-- TODO: exceptions?-->
        <pattern>
            <token postag="C sub" regexp="yes">que|qu'</token>
        </pattern>
        <disambig postag="C sub"/>
    </rule>
    <rulegroup id="NOS" name="nos">
        <rule>
            <pattern>
                <token regexp="yes">[dl]es|plusieurs|nombreux</token>
                <marker>
                    <token postag="N m p">nos</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D e p">nos</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="D e p"/>
        </rule>
    </rulegroup>
    <!-- CATEGORY: not prepositions -->
    <rule id="EN_VERS" name="en vers">
        <pattern>
            <token postag="P" regexp="yes">en|de</token>
            <token postag="N m sp">vers</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="NOT_PREPOSITION" name="not preposition: vous concernant">
        <pattern>
            <token postag="R pers obj.*" postag_regexp="yes"/>
            <marker>
                <token postag="V ppr"/>
            </marker>
        </pattern>
        <disambig action="remove" postag="P"/>
    </rule>
    <rulegroup id="EN_PRON" name="en (pronom)">
        <rule>
            <pattern>
                <token postag="P">en</token>
                <token postag="N.*" postag_regexp="yes" regexp="yes">bus|train</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="R pers.*" postag_regexp="yes">
                        <exception regexp="yes">-.*</exception></token>
                    <token postag="R pers obj">en</token>
                </marker>
                <token postag="V.*" postag_regexp="yes">
                    <exception postag="V ppr"/></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="A">n'</token>
                <token postag="R pers obj">en</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="R pers obj">en</token>
                <token postag="V etre ind pres 3 s"/>
                <token postag="A" min="0"/>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule name="en (no preposition)" id="EN_NO_PREPOSITION">
        <pattern>
            <marker>
                <token>en</token>
            </marker>
            <token postag="V (sub|ind|con).*" postag_regexp="yes">
                <exception>fait</exception>
                <exception postag="N.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="remove" postag="P"/>
    </rule>
    <rule id="du_dessous" name="dessous (not preposition)">
        <pattern>
            <token postag="P.*|D.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">dessous|grâce</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="P"/>
    </rule>
    <rulegroup id="COMME" name="comme (not adverb)">
        <!-- TODO: improve -->
        <!-- adverb: Comme vous y allez ! -->
        <rule>
            <pattern>
                <token>comme</token>
            </pattern>
            <disambig action="remove" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>comme</token>
            </pattern>
            <disambig action="remove" postag="P"/>
        </rule>
    </rulegroup>
    <rule id="entre" name="entre-t-il, entre (not preposition)">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">entre</token>
                <token postag="R .*" postag_regexp="yes">-t-il</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!-- CATEGORY: not nouns -->
    <rule id="ABREVIATION" name="abréviation">
        <pattern>
            <token regexp="yes" case_sensitive="yes">[A-Z]</token>
            <token spacebefore="no">.</token>
            <token spacebefore="no">-</token>
            <token regexp="yes" case_sensitive="yes">[A-Z]</token>
            <token spacebefore="no">.</token>
        </pattern>
        <disambig action="add">
            <wd pos="S"/>
        </disambig>
    </rule>
    <rule id="COMME_NOUS_LE_NONTRE" name="comme nous le montre">
        <pattern>
            <token>comme</token>
            <token regexp="yes" min="1" max="3">[nv]ous|leur|les?|la|lui|[mts]e|[mts]'</token>
            <marker>
                <token postag="V ind pres 3 s"/>
                <token postag="N.*" postag_regexp="yes"/>
            </marker>
            <token postag="[DA].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rulegroup id="COM" name="com">
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token>com</token>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token>.</token>
                <token>com</token>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
    </rulegroup>
    <rule id="AB_UNITE" name="abréviation unité">
        <pattern>
            <token regexp="yes">&unites_de_mesure;</token>
            <token spacebefore="no" case_sensitive="yes" regexp="yes">[³²]</token>
        </pattern>
        <disambig action="add">
            <wd pos="S"/>
        </disambig>
    </rule>
    <rule id="SE_CHALLENGER" name="se challenger">
        <pattern>
            <token postag="R pers.*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*" postag_regexp="yes">challenger</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="DONNE_ENVIE" name="donne envie">
        <pattern>
            <token>donne</token>
            <marker>
                <token>envie</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="VIE1" name="vie">
        <pattern>
            <token regexp="yes">je|tu|il|elle|on</token>
            <marker>
                <token>vie</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V sub pres 3 s"/>
    </rule>
    <rule id="ENSEMBLE" name="ensemble">
        <pattern>
            <token postag="V imp pres [12] p" postag_regexp="yes"/>
            <token regexp="yes">l[ea]</token>
            <marker>
                <token>ensemble</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="AUDIOVISUEL" name="audiovisuel">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>audiovisuel</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="INTERDIT" name="interdit">
        <antipattern>
            <token postag="V avoir.*" postag_regexp="yes"/>
            <token postag="V.*" postag_regexp="yes" regexp="yes">introduit|interdit</token>
        </antipattern>
        <antipattern>
            <token regexp="yes">de|en</token>
            <token regexp="yes">charge|mesure</token>
        </antipattern>
        <pattern>
            <token postag="SENT_START"/>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="[NJ].*" postag_regexp="yes" min="1" max="2">
                <exception>est</exception></token>
            <token postag="P.*" postag_regexp="yes" min="0" max="1"/>
            <token postag="[NJ].*" postag_regexp="yes" min="0" max="2"/>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">introduit|interdit|charge|montre|porte|donne|mesure|veille|touche</token>
            </marker>
            <token postag="[DZ].*|C sub" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="TAILLE_V" name="taille verbe">
        <pattern>
            <marker>
                <token>taille</token>
            </marker>
            <token regexp="yes">grand|petit|large</token>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="LA_REGARDANT" name="la regardant">
        <pattern>
            <token regexp="yes">les?|la</token>
            <marker>
                <token postag="V ppr"/>
            </marker>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="HYPER1" name="hyper1">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token>hyper</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="CHIENNE" name="chienne">
        <pattern>
            <token postag="D . s" postag_regexp="yes"/>
            <token postag="A" min="0" max="1"/>
            <token postag="J . s" postag_regexp="yes"/>
            <marker>
                <token>chienne</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="VRAI" name="vrai">
        <pattern>
            <token postag="D . s" postag_regexp="yes"/>
            <token postag="J . s" postag_regexp="yes"/>
            <marker>
                <token>vrai</token>
            </marker>
            <token postag="N . s" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="J m s"/>
    </rule>
    <rule id="ALLANT" name="ALLANT">
        <pattern>
            <token postag="[NJ] . s" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">prenant|allant</token>
            </marker>
            <token regexp="yes">de|d'</token>
        </pattern>
        <disambig action="filter" postag="V ppr"/>
    </rule>
    <rule id="CHOSES" name="choses">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token>choses</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule id="CARTOUCHE" name="cartouche">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token>cartouche</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N e s"/>
    </rule>
    <rule id="INVITES" name="invités">
        <pattern>
            <token regexp="yes">chers?|chères?</token>
            <marker>
                <token>invités</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m p"/>
    </rule>
    <rulegroup id="LAMPE_TORCHE" name="lampe torche">
        <rule>
            <pattern>
                <token postag="N f s">lampe</token>
                <marker>
                    <token postag="N f s">torche</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N f p">lampes</token>
                <marker>
                    <token postag="N f s">torche</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="PARTICIPES" name="participes">
        <rule>
            <pattern>
                <marker>
                    <token>participe</token>
                </marker>
                <token regexp="yes">à|aux</token>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>participe</token>
                </marker>
                <token regexp="yes">à|aux</token>
            </pattern>
            <disambig action="remove" postag="N m p"/>
        </rule>
    </rulegroup>
    <rule id="NEUF_CENT" name="neuf cent">
        <pattern>
            <marker>
                <token>neuf</token>
            </marker>
            <token min="0" max="1">-</token>
            <token regexp="yes">cents?</token>
        </pattern>
        <disambig action="filter" postag="K"/>
    </rule>
    <rule id="DONNE" name="donne">
        <pattern>
            <token regexp="yes">cela|ça</token>
            <marker>
                <and>
                    <token postag="N f s"/>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rulegroup id="V_PPR_NOT_NOUN" name="V ppr not noun">
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin|UNKNOWN|N.*|A" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">la|les</token>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V ppr" postag_regexp="yes"/>
                    </and>
                </marker>
                <token>
                    <exception postag="J.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJ].*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">la|les</token>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V ppr" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="M fin"/>
            </pattern>
            <disambig action="remove" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[PD].*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes" inflected="yes" regexp="yes">propre|sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau|superbe|important|gentil|méchant|parfait|grave|rare|énorme|lourd|futur|cher|majeur|simple|joli|mineur|meme|immense|minsucule|lointain|proche|infime|gigantesque|étrange|hideux|ravissant|magnifique|sombre|timide|sympathique|généreux|fidèle|loyal</token>
                <marker>
                    <and>
                        <token postag="N m s" regexp="yes">.*ant</token>
                        <token postag="V ppr"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppr"/>
        </rule>
    </rulegroup>
    <rule id="LE_MANS" name="le mans">
        <pattern>
            <token>le</token>
            <marker>
                <token>mans</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m p"/>
    </rule>
    <rule id="LE_MANS1" name="le mans">
        <pattern>
            <token>le</token>
            <marker>
                <token>mans</token>
            </marker>
        </pattern>
        <disambig action="add">
            <wd pos="Z e sp"/>
        </disambig>
    </rule>
    <rule id="PUTAIN_DE" name="putain de">
        <pattern>
            <token postag="D . s" postag_regexp="yes"/>
            <marker>
                <token postag="N f s">putain</token>
            </marker>
            <token>de</token>
            <token postag="N m s|UNKNOWN|[YK]|Z.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="replace" postag="I"/>
    </rule>
    <rule id="BLACK" name="black">
        <pattern>
            <token>
                <exception postag="D f.*" postag_regexp="yes"/></token>
            <marker>
                <token regexp="yes">(?-i)Black</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="BLACK1" name="black">
        <pattern>
            <marker>
                <token regexp="yes">(?-i)Black</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="add">
            <wd pos="Z e sp"/>
        </disambig>
    </rule>
    <rule id="CENTRAL" name="central">
        <pattern>
            <marker>
                <token regexp="yes">(?-i)Central</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="CENTRAL1" name="central">
        <pattern>
            <marker>
                <token regexp="yes">(?-i)Central</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="add">
            <wd pos="Z e sp"/>
        </disambig>
    </rule>
    <rule id="BASCULE" name="bascule">
        <pattern>
            <token>tout</token>
            <marker>
                <token>bascule</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="TOUT_BOUGE" name="=tout bouge">
        <pattern>
            <token>tout</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="P"/>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="MILLE" name="mille">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">(?-i)mille</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="QUELLE" name="quelle">
        <pattern>
            <token regexp="yes">une|quelle</token>
            <marker>
                <token regexp="yes">(?-i)a</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <rule id="DATA" name="data">
        <pattern>
            <token postag="D m s"/>
            <marker>
                <token case_sensitive="yes">Data</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="replace" postag="N m s"/>
    </rule>
    <rule id="DATA1" name="data">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token case_sensitive="yes">Data</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="replace" postag="N f s"/>
    </rule>
    <rule id="LAQUELLE" name="laquelle">
        <pattern>
            <token regexp="yes">laquelle|lequel|lesquels|lesquelles</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="BUSINESS" name="business">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token postag="N m s">business</token>
            </marker>
            <token postag="N f s"/>
        </pattern>
        <disambig action="replace" postag="N f s"/>
    </rule>
    <rule id="HYPER" name="hyper">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <token>hyper</token>
            </marker>
            <token postag="N.*|UNKNOWN" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>
    <!--    <rule id="US" name="US Open">
        <pattern>
            <token regexp="yes">(?-i)US</token>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="remove" postag="N m s"/>
    </rule>-->
    <rule id="US1" name="US Open">
        <pattern>
            <marker>
                <token regexp="yes">(?-i)US</token>
            </marker>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </pattern>
        <disambig action="add">
            <wd pos="Z e sp"/>
        </disambig>
    </rule>
    <rule id="NOT_NOUNS" name="not nouns">
        <!-- unless exceptions-->
        <pattern>
            <token postag="N.*" postag_regexp="yes" negate_pos="yes" regexp="yes">y|un|une</token>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="ADJ_NOT_NOUN" name="adjective, not noun">
        <pattern>
            <token>
                <exception postag="D.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="J.*|V ppa.*" postag_regexp="yes" inflected="yes">engager</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rulegroup id="SI_NOM" name="si (noun/not noun)">
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">si</token>
                </marker>
                <token regexp="yes">majeur|mineur</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="D m s"/></token>
                <marker>
                    <token postag="N.*" postag_regexp="yes" negate_pos="yes">si</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
    </rulegroup>
    <!-- CATEGORY: verb + pronoun-->
    <rule id="VERB_PRON" name="verb + pronoun">
        <pattern>
            <token postag="V.* (ind|sub|imp|inf|cond) .*" postag_regexp="yes">
                <exception>entre</exception></token>
            <token postag="R .*" postag_regexp="yes" spacebefore="no" regexp="yes">['-].*</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!-- END: verb + pronoun-->
    <!-- CATEGORY: Elements dans périphrases verbals, exceptions -->
    <rule id="AI_Y_POINT" name="ai Y points">
        <pattern>
            <token inflected="yes">avoir</token>
            <token postag="A|R [mf] .*" postag_regexp="yes" min="0" max="3"/>
            <marker>
                <token postag="Y|D.*" postag_regexp="yes"/>
                <and>
                    <token postag="V.* ppa.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ppa.*"/>
    </rule>
    <rule id="JUSTE_TOUS" name="juste tous">
        <pattern>
            <token regexp="yes" inflected="yes">avoir|être|puovoir|vouloir</token>
            <marker>
                <token postag="A" regexp="yes">juste|pas|point|jamai</token>
                <token postag="R.*" postag_regexp="yes" regexp="yes">tous|toutes</token>
            </marker>
            <token postag="V.* inf|V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="LUI_AUSSI" name="lui aussi">
        <pattern>
            <token regexp="yes" inflected="yes">avoir|être|puovoir|vouloir</token>
            <marker>
                <token postag="R pers suj 3 m s">lui</token>
                <token postag="A" regexp="yes">aussi|également</token>
            </marker>
            <!--<token postag="V.* inf|V.* ppa.*" postag_regexp="yes"/>-->
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="BIEN" name="bien (adv)">
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">avoir|être|pouvoir|vouloir</token>
                <marker>
                    <token postag="A" regexp="yes">bien|vite</token>
                </marker>
                <token postag="V.* inf|V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="LE_PLUS" name="le plus (adv)">
        <pattern>
            <token inflected="yes">avoir</token>
            <!--|être|puovoir|vouloir-->
            <marker>
                <token>le</token>
                <token regexp="yes">plus|moins</token>
            </marker>
            <token postag="V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="replace">
            <wd lemma="le plus" pos="A"/>
            <wd lemma="le plus" pos="A"/>
        </disambig>
    </rule>
    <rulegroup id="TOUS_LES_DEUX" name="tous les deux (determiner / pronoun)">
        <rule>
            <pattern>
                <marker>
                    <token>tous</token>
                    <token>les</token>
                    <token regexp="yes">deux|trois|quatre|cinq</token>
                </marker>
                <token min="0" regexp="yes">bien|mal</token>
                <token>
                    <exception postag="[JN] .* (p|sp)" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace">
                <wd lemma="tous les deux" pos="R m p"/>
                <wd lemma="tous les deux" pos="R m p"/>
                <wd lemma="tous les deux" pos="R m p"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>toutes</token>
                    <token>les</token>
                    <token regexp="yes">deux|trois|quatre|cinq</token>
                </marker>
                <token min="0" regexp="yes">bien|mal</token>
                <token>
                    <exception postag="[JN] .* (p|sp)" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace">
                <wd lemma="toutes les deux" pos="R f p"/>
                <wd lemma="toutes les deux" pos="R f p"/>
                <wd lemma="toutes les deux" pos="R f p"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="TOUS_DEUX" name="tous deux (determiner / pronoun)">
        <rule>
            <pattern>
                <marker>
                    <token>tous</token>
                    <token regexp="yes">deux|trois|quatre|cinq</token>
                </marker>
                <token min="0" regexp="yes">bien|mal</token>
                <token>
                    <exception postag="[JN] .* (p|sp)" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace">
                <wd lemma="tous deux" pos="R m p"/>
                <wd lemma="tous deux" pos="R m p"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>toutes</token>
                    <token regexp="yes">deux|trois|quatre|cinq</token>
                </marker>
                <token min="0" regexp="yes">bien|mal</token>
                <token>
                    <exception postag="[JN] .* (p|sp)" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace">
                <wd lemma="toutes deux" pos="R f p"/>
                <wd lemma="toutes deux" pos="R f p"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="TOUT_PRON" name="tout (pron)">
        <rule>
            <pattern>
                <token inflected="yes">avoir</token>
                <token min="0" postag="A|R pers .*" postag_regexp="yes"/>
                <marker>
                    <token postag="R.*" postag_regexp="yes" inflected="yes">tout</token>
                </marker>
                <token postag="V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">avoir</token>
                <marker>
                    <token postag="R.*" postag_regexp="yes" inflected="yes">tout</token>
                </marker>
                <token min="0" postag="A"/>
                <token postag="V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
    </rulegroup>
    <rule id="AVOIR_ETE" name="avoir été">
        <pattern>
            <token inflected="yes">avoir</token>
            <token min="0" max="1">comme</token>
            <token postag="A" min="1" max="3"/>
            <marker>
                <token>été</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V etre ppa e sp"/>
    </rule>
    <!-- END: Elements dans périphrases verbals -->
    <!-- CATEGORY: Périphrases verbals -->
    <rule id="SOUDAIN" name="soudain">
        <pattern>
            <token postag="V.*" postag_regexp="yes" regexp="yes" inflected="yes">demeurer|être|devenir|para[îi]tre|rester|sembler</token>
            <marker>
                <token>soudain</token>
            </marker>
            <token postag="(V ppa|J).*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rulegroup id="FAIT0" name="fait">
        <rule>
            <pattern>
                <token regexp="yes">ce|du</token>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
    </rulegroup>
    <rule id="AVIONS0" name="des avions">
        <pattern>
            <token postag="P.*" postag_regexp="yes"/>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes">avions|sommes|restes|reste</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="QUI_MONTRE" name="qui montre">
        <pattern>
            <token>qui</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.* (ind|con|sub).*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="EN_AS_TU_FAIT" name="as tu (missing hyphen)">
        <pattern>
            <!-- missing hyphen -->
            <token postag="V avoir ind pres 2 s">as</token>
            <token postag="R pers suj 2 s">tu</token>
            <token postag="V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="AS_DONC_TU" name="qu'as donc tu fait">
        <pattern>
            <unify>
                <feature id="number"/>
                <feature id="person"/>
                <token inflected="yes">avoir</token>
                <unify-ignore>
                    <token min="0">donc</token>
                </unify-ignore>
                <token postag="R pers suj.*" postag_regexp="yes"/>
            </unify>
            <marker>
                <token postag="V.* ppa .*" postag_regexp="yes"/>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.* ppa .*"/>
    </rule>
    <rulegroup id="AVOIR_PARTICIPE" name="avoir + participe">
        <rule>
            <!-- As tu: missing hyphen-->
            <pattern>
                <token>
                    <exception regexp="yes">m'|t'|lui|nous|vous|leur</exception></token>
                <marker>
                    <token postag="V avoir.* 2 s" postag_regexp="yes"/>
                    <token postag="R pers suj 2 s">tu</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
            <example type="untouched">Y a-t-il quelque chose que tu m'aies tu ?</example>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">avoir</token>
                <token min="0" max="3" postag="A|R.*" postag_regexp="yes">
                    <exception inflected="yes" regexp="yes">un|ce|plusieurs</exception>
                    <exception postag="D.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="V.* ppa .*" postag_regexp="yes">
                        <exception>tu</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* ppa .*"/>
        </rule>
        <rule>
            <pattern>
                <token>tu</token>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
                <token inflected="yes">avoir</token>
                <token min="0" max="3" postag="A|R.*" postag_regexp="yes">
                    <exception inflected="yes" regexp="yes">un|ce|plusieurs</exception>
                    <exception postag="D.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="V.* ppa .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* ppa .*"/>
        </rule>
        <rule>
            <antipattern>
                <token regexp="yes">ces|quelques</token>
                <token>restes</token>
            </antipattern>
            <pattern>
                <marker>
                    <token inflected="yes" regexp="yes">avoir|rester</token>
                </marker>
                <token min="0" max="3" postag="A|R.*" postag_regexp="yes">
                    <exception inflected="yes" regexp="yes">un|ce|plusieurs</exception></token>
                <token postag="V.* ppa .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N f.*" postag_regexp="yes"/>
                <token min="0" max="1" regexp="yes">des?|du|d'</token>
                <token postag="[YK]" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token inflected="yes">rester</token>
                </marker>
                <token postag="J f.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">avoir</token>
                <token>que</token>
                <token>rarement</token>
                <marker>
                    <token postag="V.* ppa .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* ppa .*"/>
        </rule>
    </rulegroup>
    <rule id="AVIONS" name="avions">
        <pattern>
            <marker>
                <token postag="D.*" postag_regexp="yes">les</token>
                <token postag="N.*" postag_regexp="yes">avions</token>
            </marker>
            <token>
                <exception postag="V.* ppa .*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="AVOIR_PP" name="avoir + pp">
        <rule>
            <pattern>
                <token regexp="yes">l'|les</token>
                <marker>
                    <token inflected="yes">avoir</token>
                </marker>
                <token postag="V ppa .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token skip="2">ayant</token>
                </marker>
                <token postag="V ppa .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">avoir</token>
                <token>donc</token>
                <marker>
                    <token postag="V.* ppa .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* ppa .*"/>
        </rule>
    </rulegroup>
    <rulegroup name="Etre + participe passé ambigu" id="ETRE_PARTICIPE">
        <rule>
            <!-- Seras tu: missing hyphen-->
            <pattern>
                <token postag="V etre.* 2 s" postag_regexp="yes"/>
                <token postag="R pers suj 2 s">tu</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D m s" regexp="yes">un|cet</token>
                <token postag="N m s">être</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token postag="V ppa .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token spacebefore="no" regexp="yes">-.*</token>
                <token postag="V ppa .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token postag="A"/>
                <marker>
                    <token postag="V ppa .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa .*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token postag="A"/>
                <token postag="A"/>
                <marker>
                    <token postag="V ppa .*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa .*"/>
        </rule>
        <rule name="avoir été">
            <pattern>
                <token postag="V avoir .*" postag_regexp="yes" skip="2"/>
                <marker>
                    <token>été
                        <exception scope="previous" postag="D m s"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa .*"/>
        </rule>
        <rule name="avoir été">
            <pattern>
                <token regexp="yes">.*[-‑‐](?:je|tu|ils?|elles?|on|[nv]ous)</token>
                <marker>
                    <token>été</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa .*"/>
        </rule>
    </rulegroup>
    <!-- TODO: tu ne l'as; l'avoir rencontrée -->
    <!-- This is to catch frequent errors such as "J'ai manger" which would not
         be caught without disambiguation as "manger" can also be a noun -->
    <rulegroup name="Etre/Avoir + verb" id="ETRE_AVOIR_V_ER">
        <rule>
            <pattern>
                <token postag="V avoir .*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes" postag="V inf">.*er</token>
                </marker>
            </pattern>
            <disambig postag="V inf"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V avoir .*" postag_regexp="yes"/>
                <token regexp="yes">assez|beaucoup|bien|déjà|encore|enfin|énormément|guerre|mieux|moins|parfois|pas|peu|peut-être|plus|presque|toujours|très|trop</token>
                <marker>
                    <token regexp="yes" postag="V inf">.*er</token>
                </marker>
            </pattern>
            <disambig postag="V inf"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V avoir .*" postag_regexp="yes"/>
                <token regexp="yes">assez|beaucoup|déjà|pas|plus|presque|peut-être|jamais|toujours|très|trop</token>
                <token regexp="yes">assez|beaucoup|bien|encore|énormément|peu|plus|très|trop</token>
                <marker>
                    <token regexp="yes" postag="V inf">.*er</token>
                </marker>
            </pattern>
            <disambig postag="V inf"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V avoir .*" postag_regexp="yes"/>
                <token min="1" max="3" postag="A"/>
                <marker>
                    <token regexp="yes" postag="V inf">.*er</token>
                </marker>
            </pattern>
            <disambig postag="V inf"/>
        </rule>
    </rulegroup>
    <rulegroup name="est" id="EST">
        <rule>
            <pattern>
                <marker>
                    <token postag="V etre ind pres 3 s">est</token>
                </marker>
                <token postag="R.*" postag_regexp="yes" regexp="yes">-.*</token>
            </pattern>
            <disambig postag="V etre ind pres 3 s"/>
        </rule>
        <rule>
            <antipattern>
                <token>en</token>
                <token>est</token>
            </antipattern>
            <pattern>
                <token postag="P">
                    <exception postag="V ppr|A" postag_regexp="yes"/>
                    <exception regexp="yes">passé|avant</exception></token>
                <token min="0">l'</token>
                <marker>
                    <token postag="N m s">est</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>l'</token>
                <marker>
                    <token postag="N m s">est</token>
                </marker>
                <token min="0" postag="R pers obj.*" postag_regexp="yes"/>
                <token postag="V .* 3 s" postag_regexp="yes"/>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>ouest</token>
                <token regexp="yes">[–/\-]|et|ou</token>
                <marker>
                    <token postag="N m s">est</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N m s">est</token>
                </marker>
                <token regexp="yes">[–/\-]|et|ou</token>
                <token>ouest</token>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[ns]e|il|elle|on</token>
                <token>l'</token>
                <marker>
                    <token>est</token>
                </marker>
            </pattern>
            <disambig postag="V etre ind pres 3 s"/>
        </rule>
        <rule>
            <!-- it is a verb, unless it is tagged previously as a noun -->
            <antipattern>
                <token>
                    <exception postag="SENT_START"/></token>
                <token case_sensitive="yes">Est</token>
            </antipattern>
            <pattern>
                <marker>
                    <token postag="V etre ind pres 3 s">est</token>
                </marker>
            </pattern>
            <disambig postag="V etre ind pres 3 s"/>
        </rule>
    </rulegroup>
    <rulegroup id="LE_POUVOIR" name="le pouvoir">
        <rule>
            <antipattern>
                <token>pouvoir</token>
                <token postag="V .*inf" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="D m s" regexp="yes">le|leur</token>
                <token postag="N m s">pouvoir</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D [me] s" postag_regexp="yes" regexp="yes">son|ton|mon|notre|votre</token>
                <token postag="N m s">pouvoir</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="POUVOIRINITIF" name="pouvoir + infinitif">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">aimer|pouvoir|vouloir|devoir|faire|oser|désirer|laisser</token>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <!--<antipattern>
        <!-\- error: missing hyphen -\->
        <token postag="V.* 1 p" inflected="yes">pouvoir</token>
        <token skip="-1">nous</token>
        <token>?</token>
      </antipattern>-->
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">aimer|pouvoir|vouloir|devoir|faire|oser|désirer|laisser
                    <exception>puis</exception></token>
                <token postag="R pers obj.*|A" postag_regexp="yes"/>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">aimer|pouvoir|vouloir|devoir|faire|oser|désirer|laisser</token>
                <token postag="A"/>
                <token postag="R pers obj.*" postag_regexp="yes"/>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">aimer|pouvoir|vouloir|devoir|faire|oser|désirer|laisser</token>
                <token postag="R.*" postag_regexp="yes" inflected="yes">tout</token>
                <token postag="R pers obj.*" postag_regexp="yes"/>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup name="verbe dire" id="VERBE_DIRE">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dire</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes" min="0" max="1">["«]</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dis</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ind psim.*"/>
        </rule>
    </rulegroup>
    <rulegroup name="RP : Infinitif ambigu" id="RP-INFINITIF">
        <rule name="Infinitif être">
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <marker>
                    <token postag="V etre inf"/>
                </marker>
            </pattern>
            <disambig postag="V etre inf"/>
        </rule>
        <rule name="Infinitif avoir">
            <pattern>
                <token postag="V .*" postag_regexp="yes"/>
                <marker>
                    <token postag="V avoir inf"/>
                </marker>
            </pattern>
            <disambig postag="V avoir inf"/>
        </rule>
    </rulegroup>
    <rule id="CONTINUER_A" name="continuer à">
        <pattern>
            <marker>
                <token postag="V (ind|sub|imp).*" postag_regexp="yes" inflected="yes">continuer</token>
            </marker>
            <token regexp="yes" skip="1">à</token>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule id="CRAINDRE_DE_VINF" name="craindre de">
        <pattern>
            <marker>
                <token postag="V (ind|sub|imp) .*" postag_regexp="yes" inflected="yes">craindre</token>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token>de</token>
            <token postag="V inf"/>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp) .*"/>
    </rule>
    <!-- END: périphrases verbals -->
    <!-- CATEGORY: périphrases verbe + nom-->
    <rule id="PORTER_NAISSANCE" name="porter naissance">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">porter</token>
            </marker>
            <token>naissance</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="PRETER_DE_L_ARGENT" name="prêter de l'argent">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">prêter</token>
            </marker>
            <token>de</token>
            <token>l'</token>
            <token>argent</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="DONNER_UNE_SOMME" name="donner une somme">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">donner</token>
            <token postag="D f s">une</token>
            <token postag="N f s">somme</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="PRETER_SERMENT" name=" prêter serment">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">prêter</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">allégeance|conseil|serment|aide|assistance|attention|foi|garde|hommage|main|main-forte|renfort|appui|secours</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="PRETER_UNE" name=" prêter">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes" skip="1">prêter</token>
            </marker>
            <token inflected="yes" regexp="yes">flanc|oreille|concours|allégeance|conseil|serment|aide|assistance|attention|foi|garde|hommage|main|main-forte|renfort|appui|secours</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule name="avoir lieu" id="AVOIR_LIEU">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">avoir</token>
                <token postag="N m s" inflected="yes">lieu</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="dire le monde" id="DIRE_LE_MONDE">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">construire|dire</token>
            <token postag="D m s">le</token>
            <token postag="N m s">monde</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="dire vrai" id="DIRE_VRAI">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">dire</token>
            <token postag="N m s" regexp="yes">vrai|adieu|bonjour|stop</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="BATTRE_PAVILLON" name="battre pavillon">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">battre</token>
            <token postag="N m s">pavillon</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="souffir le martyre" id="SOUFFIR_LE_MARTYRE">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">souffrir</token>
            <token postag="D m s">le</token>
            <token postag="N m s">martyre</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="FAIT_PARTIE1" name="fait partie 1">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s" regexp="yes">(re)?fait</token>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token postag="N .*" postag_regexp="yes" regexp="yes">&noms_apres_faire;</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="PARLANT_AFFAIRE" name="parlant affaire">
        <pattern>
            <marker>
                <token>parlant</token>
            </marker>
            <token regexp="yes">affaires?</token>
        </pattern>
        <disambig action="filter" postag="V ppr"/>
    </rule>
    <rule id="TRAITE_DE" name="traite de">
        <pattern>
            <marker>
                <token postag="V (ind|sub|imp) .*" postag_regexp="yes">traite
                    <exception scope="previous">de</exception></token>
            </marker>
            <token min="0" postag="A"/>
            <token regexp="yes">de|d'|du|des</token>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp) pres .*"/>
    </rule>
    <rule id="FAIRE_DU_PROFIT" name="fait du profit">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">faire</token>
            </marker>
            <token postag="P.*" postag_regexp="yes" regexp="yes">du|de</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="SECHER_A" name="sécher à">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>sèche</token>
            </marker>
            <token postag="P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rulegroup id="AVOIR_ENVIE1" name="avoir envie">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">faire|avoir|donner</token>
                <token postag="A"/>
                <token postag="N .*" postag_regexp="yes">envie</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">faire|avoir|donner</token>
                <token postag="A"/>
                <token postag="A"/>
                <token postag="N .*" postag_regexp="yes">envie</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">faire|avoir|donner</token>
                <token postag="A"/>
                <token postag="A"/>
                <token postag="A"/>
                <token postag="N .*" postag_regexp="yes">envie</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="PRENDRE_PLACE" name="prendre place">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">prendre</token>
            <token postag="N .*" postag_regexp="yes">place</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="avoir_trait_a" name="avoir trait à">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">avoir</token>
            <token postag="N m s">trait</token>
            <token postag="P.*" postag_regexp="yes" regexp="yes">à|aux</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="GRISE_MINE" name="grise mine">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">faire</token>
            <token postag="J f s">grise</token>
            <token postag="N f s">mine</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="TIRER_PARTIE" name="tirer partie">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">tirer</token>
            <token postag="N.*" postag_regexp="yes">partie</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="RENDRE_VISITE" name="rendre visite">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">rendre</token>
            <token postag="N f s">visite</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="DONNER_DROIT" name="donner droit">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">donner</token>
            <token postag="N . s" postag_regexp="yes" regexp="yes">droit|naissance</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="DONNER_A_INF" name="donner a + inf">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">donner</token>
            <token postag="P">à</token>
            <token postag="V inf"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="EXPRESSIONS_BON" name="expressions bon">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes">tenir</token>
                <token postag="J.*" postag_regexp="yes" regexp="yes">bon|ferme</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes">filer</token>
                <token postag="J m s">bon</token>
                <token postag="N m s">train</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token postag="A|C coor" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token>bon</token>
                </marker>
                <token postag="[DPZR].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="[JN] m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token postag="A|C coor" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token>bon</token>
                </marker>
                <token postag="[DPZR].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="A"/>
            </disambig>
        </rule>
    </rulegroup>
    <!-- END: périphrases verbe + noms -->
    <!-- CATEGORY: appositions -->
    <rule id="SURPRISE" name="surprise">
        <pattern>
            <token regexp="yes" inflected="yes">succès|absent</token>
            <marker>
                <token>surprise</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule id="DONNER_ENVIE" name="donner envie">
        <pattern>
            <token regexp="yes" inflected="yes">donner|faire|avoir</token>
            <token postag="A" min="0" max="1"/>
            <marker>
                <token>envie</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="N f s"/>
    </rule>
    <rule id="CHARGE_PROJET" name="ondes radio">
        <pattern>
            <token regexp="yes">chargée?s?|acheteurs?</token>
            <marker>
                <token regexp="yes">projets?|qualité</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule id="TAILLE" name="taille">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">taille</token>
                <token postag="N.*" postag_regexp="yes" inflected="yes">adolescent</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="ONDES_RADIO" name="ondes radio">
        <pattern>
            <token regexp="yes" inflected="yes">onde|signal|écho|émetteur|interféromètre|récepteur|réflecteur|brouilleur|station</token>
            <marker>
                <token regexp="yes">radio|radar|météo</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule id="TYPE" name="type">
        <pattern>
            <token regexp="yes" inflected="yes">modèle|caractéristique</token>
            <marker>
                <token>type</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule id="ENTREE" name="entrée">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">entrée</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">microphone|blog|phono</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="IMPRIMANTE" name="imprimante">
        <pattern>
            <marker>
                <token postag="N f.*" postag_regexp="yes" inflected="yes">imprimante</token>
                <token postag="N m s" regexp="yes">jet|laser</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="FORMAT" name="format">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">carré</token>
                <token postag="N m s">format</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="FRITES" name="frites">
        <pattern>
            <token inflected="yes" regexp="yes">(demi-)?(poulet|burger|hamburger)</token>
            <marker>
                <token>frites</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule name="code remise" id="CODE_REMISES">
        <pattern>
            <token postag="N m ." postag_regexp="yes" inflected="yes">code</token>
            <token postag="N f ." postag_regexp="yes" inflected="yes">remise</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="EN_TISSU" name="en tissu">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">pochette</token>
            <marker>
                <token>tissu</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="J e sp"/>
    </rule>
    <rule name="moteur" id="MOTEUR">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes">pannes?|voyants?|vidange|anodes?|avaries?|huile|essence|parties?|température|préparation</token>
            <token postag="N m s">moteur</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="forte puissance" id="FORTE_PUISSANCE">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>forte</token>
                <token>puissance</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd lemma="fort puissance" pos="J e sp"/>
            <wd lemma="fort puissance" pos="J e sp"/>
        </disambig>
    </rule>
    <rule name="section périodiques" id="SECTION_PERIODIQUES">
        <pattern>
            <token postag="N f s" inflected="yes">section</token>
            <token postag="N m p">périodiques</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="journée portes ouvertes" id="JOURNEE_PORTES_OUVERTES">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">journée</token>
            <marker>
                <token>portes</token>
                <token>ouvertes</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd lemma="portes ouvertes" pos="J e sp"/>
            <wd lemma="portes ouvertes" pos="J e sp"/>
        </disambig>
    </rule>
    <rule name="idées menu" id="IDEES_MENU">
        <pattern>
            <token postag="N f ." postag_regexp="yes" inflected="yes">idée</token>
            <token postag="N m ." postag_regexp="yes" inflected="yes">menu</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="expérience utilisateur" id="EXPERIENCE_UTILISATEUR">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">réponse|identifiant|commercial|nom|droit|tuteur|identité|stratégie|spécifications|infos|réclamation|prospect|carte|création|nouveauté|dimension|fiche|donnée|tendance|relation|commande|expérience|documentation|session|garantie|réglage|assurance|section|code</token>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">vendeur|consommateur|utilisateur|qualité|client|visite|administrateur|parent|producteur|passager|entreprise|carburant|objectif|contenu|conducteur|constructeur</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="expérience utilisateur" id="ASSURANCE_ANIMAUX">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">assurance|mutuelle</token>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">animal|chien</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="joli vue" id="JOLI_VUE">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">jolie?s?</token>
            <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">vues?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="expérience utilisateur" id="MUR_BIENVENUE">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">mur</token>
            <token postag="N .*" postag_regexp="yes">bienvenue</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="indemnité carburant" id="INDEMNITE_CARBURANT">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">indemnité</token>
            <token postag="N .*" postag_regexp="yes">carburant</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="suivi objectif" id="SUIVI_OBJECTIF">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">suivi</token>
            <token postag="N .*" postag_regexp="yes" regexp="yes">objectifs?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="point de vue" id="POINT_DE_VUE">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">point</token>
            <token postag="P">de</token>
            <token postag="N .*" postag_regexp="yes">vue</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="touche raccourci" id="TOUCHE_RACCOURCI">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">touche</token>
            <token postag="N .*" postag_regexp="yes" regexp="yes">raccourci?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="plafond cathédrale" id="PLAFOND_CATHEDRALE">
        <pattern>
            <token postag="N .*" postag_regexp="yes" inflected="yes">plafond</token>
            <token postag="N .*" postag_regexp="yes" regexp="yes">cathédrales?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="dimensions produit" id="DIMENSIONS_PRODUIT">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">café|connaissance|expertises?|produits?|amélioration|contrôle|mariée?s?|mutuelle|carte|locations?|références?|figurations?|test|cessions?|fiches?|actus?|affichages?|informations?|démos?|tables?|exploitations?|équipes?|qualités?|expériences?|top|innovation|expiration|nouveauté|dimension|fiche|retour|photo|recherche|image|page</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">produits?|marchés?|droit|logiciels?|imprimantes?|citoyen|qualités?|artisan|créateur|caractérisitique</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="expérience candidat" id="EXPERIENCE_CANDIDAT">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">expériences?|pages?|candidatures?</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">candidate?s?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="aspirateur poussière" id="ASPIRATEUR_POUSSIERE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">aspirateur</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">poussières?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="pôle jeune" id="POLE_JEUNE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">pôle</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">jeunes?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="page titre" id="PAGE_TITRE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">page</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">titres?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="accessoires mobiles" id="ACCESSOIRE_MOBILE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">accessoire</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">mobiles?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="rédaction contenu" id="REDACTION_CONTENU">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">rédaction</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes">contenu</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="matrice contenant" id="MATRICE_CONTENANT">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes" inflected="yes">contenant</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="pose enduit" id="POSE_ENDUIT">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">enduit</token>
            </marker>
            <token postag="[JN].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="remise comprise" id="REMISE_COMPRISE">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <token>remise</token>
            <token postag="J f s"/>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule name="remise comprise" id="REMISE_COMPRISE1">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <token>remises</token>
            <token postag="J f s"/>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule name="location matérielle" id="LOCATION_MATERIEL">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">location|vente</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes">matériel</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="maitrise logiciel caisse" id="MAITRISE_LOGICIEL_CAISSE">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>logiciel</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule name="maitrise logiciel caisse" id="MAITRISE_LOGICIEL_CAISSE1">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>logiciels</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N m p"/>
    </rule>
    <rule name="conduite de projets" id="CONDUITE_DE_PROJET">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>conduite</token>
            </marker>
            <token min="0" max="1">de</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule name="conduite de projets" id="CONDUITE_DE_PROJET1">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>conduites</token>
            </marker>
            <token min="0" max="1">de</token>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule name="licence enseignant" id="LICENCE_ENSEIGNANT">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">licence|promotion|demande|aide</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">enseignant|étudiant</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="fiche patient" id="FICHE_PATIENT">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">fiche</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes">patient</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="conseiller immobilier" id="CONSEILLER_IMMOBILIER">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">conseiller|agent|directeur|achat|vente|vendeur|acheteur</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes">immobilier</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="seconde abréviation" id="SECONDE_ABREVIATION">
        <pattern>
            <token regexp="yes">\d|1re|1er|\dème|\de</token>
            <marker>
                <token>sec</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule name="atelier découverte" id="ATELIR_DECOUVERTE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">atelier|visite|stage|entretien|vol|parcours|achat|offre|mention|promotion|séjour|voyage</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes">découverte</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="portière passager" id="PORTIERE_PASSAGER">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">portière</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">passager|conducteur</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="service informatique" id="SERVICE_INFORMATIQUE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">service</token>
            <!-- NOT PLURAL: informatiques (J e p) -->
            <token postag="N.*" postag_regexp="yes">informatique</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup name="points clés" id="POINTS_CLES">
        <rule>
            <pattern>
                <token postag="N.* (s|sp)" postag_regexp="yes"/>
                <marker>
                    <token>clé</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="J e s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.* (p|sp)" postag_regexp="yes"/>
                <marker>
                    <token>clés</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="J e p"/>
        </rule>
    </rulegroup>
    <rule name="produit vaisselle" id="PRODUIT_VAISSELLE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">produit</token>
            <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">vaisselle|déco|maquillage</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="réduction étudiant" id="REDUCTION_ETUDIANT">
        <pattern>
            <token postag="N f s" regexp="yes">réduction|remise|référence</token>
            <token postag="N m s" regexp="yes">étudiant|abonné</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="réduction étudiant" id="EDITION_ABONNE">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">étudiant|édition|réduction|remise|référence</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">étudiant|abonné</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="communication client" id="COMMUNICATION_CLIENT">
        <pattern>
            <token postag="N f s">communication</token>
            <token postag="N m s">client</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="points retrait" id="POINTS_RETRAIT">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes">point</token>
            <token postag="N m s">retrait</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="RESPONSABLE" name="responsable (noun)">
        <pattern>
            <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">responsable|directeur</token>
            <token postag="N.*" postag_regexp="yes">
                <exception postag="V ind pres 3 s"/>
            </token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!-- END: appositions -->
    <!-- CATEGORY: prepositions -->
    <rule id="AU_COURS_DE" name="au cours de">
        <!-- Does it need exceptions? -->
        <pattern>
            <marker>
                <token>au</token>
                <token>cours</token>
            </marker>
            <token regexp="yes">de|d'|des|du</token>
        </pattern>
        <disambig action="replace">
            <wd lemma="au cours" pos="P"/>
            <wd lemma="au cours" pos="P"/>
        </disambig>
    </rule>
    <rulegroup id="Y_COMPRIS" name="y compris">
        <rule>
            <pattern>
                <marker>
                    <token>y</token>
                    <token>compris</token>
                </marker>
                <token postag="[DPZ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace">
                <wd lemma="y compris" pos="P"/>
                <wd lemma="y compris" pos="P"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[,‘’–)\[—."\/;\]\|:(\…'«»“”-]+</token>
                <marker>
                    <token>y</token>
                    <token>compris</token>
                </marker>
            </pattern>
            <disambig action="replace">
                <wd lemma="y compris" pos="P"/>
                <wd lemma="y compris" pos="P"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="DE_P_D" name="de (prep / det )">
        <!--<rule>
            <pattern>
                <token postag="P">d'</token>
                <token postag="D.*" postag_regexp="yes" regexp="yes">un|une</token>
            </pattern>
            <disambig action="filterall"></disambig>
        </rule>-->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">aucun|certain|plusieurs</token>
                <marker>
                    <token postag="P.*" postag_regexp="yes" regexp="yes">de|du|d'|des</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="P.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes">
                    <exception inflected="yes" regexp="yes">diverger|venir|remplir|couvrir|entourer|mourir|trembler|manquer|dépendre|douter|servir|moquer|rêver|méfier</exception>
                    <exception postag="N.*" postag_regexp="yes"/></token>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <marker>
                        <token postag="D.*" postag_regexp="yes" regexp="yes">de|du|d'|des</token>
                    </marker>
                    <token postag="J.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes">
                        <exception regexp="yes">dans|envers|mais|plus|non|contre</exception>
                        <exception inflected="yes" regexp="yes">avoir|être</exception></token>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre.*" postag_regexp="yes"/>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <marker>
                        <token postag="D.*" postag_regexp="yes" regexp="yes">de|du|d'|des</token>
                    </marker>
                    <token postag="J.*" postag_regexp="yes">
                        <exception inflected="yes">aucun</exception></token>
                    <token postag="N.*" postag_regexp="yes">
                        <exception regexp="yes">dans|envers|mais|plus|non|contre</exception>
                        <exception inflected="yes" regexp="yes">avoir|être</exception></token>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <antipattern>
                <token>toute</token>
                <token>la</token>
                <token>journée</token>
            </antipattern>
            <pattern>
                <token postag="[NZJ].*|V ppa.*" postag_regexp="yes">
                    <exception postag="[NZJ].*|V ppa.*" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="P.*" postag_regexp="yes" regexp="yes">de|du|d'|des</token>
                </marker>
                <token postag="[NZJ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="P.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P">d'</token>
                <token postag="N m s">accord</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="CONTRE" name="contre">
        <antipattern>
            <token regexp="yes">j'|il|elle</token>
            <token>entre</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="P" regexp="yes">contre|entre|vers|envers</token>
            </marker>
            <token postag="[DR].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rulegroup id="DANS" name="dans, sous">
        <rule>
            <antipattern>
                <token postag="V imp.*" postag_regexp="yes"/>
                <token>les</token>
            </antipattern>
            <pattern>
                <token regexp="yes">[ld]es</token>
                <marker>
                    <token postag="N m p" regexp="yes">dans|sous</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m p"/>
        </rule>
        <rule>
            <antipattern>
                <token>sous</token>
                <token postag="M.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="P" regexp="yes">dans|sous</token>
            </pattern>
            <disambig action="filter" postag="P"/>
        </rule>
    </rulegroup>
    <rulegroup id="SAUF" name="sauf">
        <rule>
            <pattern>
                <token inflected="yes">tout</token>
                <marker>
                    <token postag="P">sauf</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="P"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="P">sauf</token>
                </marker>
                <token postag="[DNJ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="P"/>
        </rule>
    </rulegroup>
    <rule id="VIS_A_VIS" name="vis-à-vis de">
        <pattern>
            <marker>
                <token postag="P">vis-à-vis</token>
            </marker>
            <token regexp="yes">de|du|des|d'</token>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rule id="SUITE_A" name="suite à">
        <pattern>
            <marker>
                <token>suite
                    <exception scope="previous" inflected="yes">faire</exception>
                    <exception scope="previous" postag="D.*" postag_regexp="yes"/></token>
            </marker>
            <token regexp="yes">à|au|aux</token>
        </pattern>
        <disambig action="replace" postag="P"/>
    </rule>
    <rule id="EN" name="en (preposition/pronoun)">
        <!-- gérondif -->
        <pattern>
            <token postag="P">en</token>
            <token postag="V.* ppr" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="V_PPR" name="prep + v_ppr">
        <!-- gérondif -->
        <rule>
            <antipattern>
                <token>mal</token>
                <token>venant</token>
            </antipattern>
            <pattern>
                <marker>
                    <token postag="V ppr">venant</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppr"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes"/>
                <token postag="A" min="0" max="1"/>
                <marker>
                    <token postag="V ppr|J.*" postag_regexp="yes"/>
                </marker>
                <token regexp="yes">de|à</token>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ppr"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P.*" postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="[NJ].*" postag_regexp="yes"/>
                        <token postag="V ppr"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppr"/>
        </rule>
        <rule>
            <pattern>
                <token postag="R.*" postag_regexp="yes" regexp="yes">[mts]e</token>
                <token postag="V.* ppr" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <!-- END: prepositions -->
    <!-- CATEGORY: proper nouns -->
    <rule id="CHER_Z" name="Cher">
        <antipattern>
            <token regexp="yes">\p{L}+</token>
            <token case_sensitive="yes">Cher</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="J m s">Cher</token>
            </marker>
            <token postag="[NJZ].*|V ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="J m s"/>
        <example type="untouched">du Cher</example>
        <example type="untouched">le Cher</example>
    </rule>
    <rule id="VIE" name="VIE">
        <pattern>
            <token>
                <exception postag="D f s"/></token>
            <marker>
                <token postag="N f s" regexp="yes">(?-i)VIE</token>
            </marker>
        </pattern>
        <disambig action="add">
            <wd pos="Z m sp"/>
        </disambig>
    </rule>
    <rule id="WINDOWS" name="windows">
        <pattern>
            <token>Windows</token>
            <token regexp="yes">\d+</token>
        </pattern>
        <disambig action="replace">
            <wd pos="Z m sp"/>
            <wd pos="Z m sp"/>
        </disambig>
    </rule>
    <rulegroup id="VAN_GOGH" name="van Gogh">
        <rule>
            <pattern>
                <marker>
                    <token>van</token>
                    <token regexp="yes">(?-i)Aartsen|Agt|Allen|Asperen|Baaren|Basten|Beethoven|Beinum|Belin|Bommel|Bree|Buren|Campen|Dam|Delden|der|Dijk|Dine|Dong|Dyck|Egmond|Eyck|Gaal|Goethem|Gogh|Halen|Hauwe|Hemel|Immersel|Kempen|Lier|Maldere|Marwijk|Mill|Morrison|Nieuwkerk|Nistelrooy|Otterloo|Persie|Petegem|Ragin|Rensburg|Rompuy|Schalkwyk|Someren|Vaart|Val|Valen|Van|Vliet|Vlijmen|Wassenaer</token>
                </marker>
            </pattern>
            <disambig action="replace">
                <wd pos="Z e sp"/>
                <wd pos="Z e sp"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">\p{Lu}.+</token>
                <marker>
                    <token>van</token>
                </marker>
                <token regexp="yes">\p{Lu}.+</token>
            </pattern>
            <disambig action="replace">
                <wd pos="Z e sp"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">\p{Lu}.+</token>
                <marker>
                    <token>van</token>
                </marker>
                <token regexp="yes">den|der</token>
                <token regexp="yes">\p{Lu}.+</token>
            </pattern>
            <disambig action="replace">
                <wd pos="Z e sp"/>
            </disambig>
        </rule>
    </rulegroup>
    <rule id="DA_VINCI" name="da Vinci">
        <pattern>
            <marker>
                <token>da</token>
                <token regexp="yes">(?-i)Messina|Cividale|Morte|Costa|Lingua|Língua|Gagliano|Palestrina|Perugia|Silva|Cunha|Gama|Viadana|Vinci|Ponte</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="Z e sp"/>
            <wd pos="Z e sp"/>
        </disambig>
    </rule>
    <rule id="Paris" name="paris">
        <!-- TODO: more general for all proper nouns -->
        <pattern>
            <marker>
                <token regexp="yes">(?-i)Paris</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="Z.*"/>
    </rule>
    <rule id="PROPER_NOUNS" name="proper nouns">
        <antipattern>
            <token postag="SENT_START"/>
            <token postag="Z.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token postag="K|Y|D.*" postag_regexp="yes"/>
            <token>ans</token>
        </antipattern>
        <antipattern>
            <token postag="D f s"/>
            <token>Pierre</token>
        </antipattern>
        <antipattern><!-- Le Suisse David Dupont. -->
            <token postag="D.*" postag_regexp="yes"/>
            <token regexp="yes">&gentiles;</token>
            <token regexp="yes">(?-i)[A-Z].*</token>
        </antipattern>
        <pattern>
            <token postag="Z.*" postag_regexp="yes">
                <exception>Ctrl</exception></token>
        </pattern>
        <disambig action="filter" postag="Z.*"/>
    </rule>
    <rule id="LE_PETIT_NOM" name="le petit Chose">
        <pattern>
            <token>le</token>
            <token>petit</token>
            <marker>
                <token regexp="yes">(?-i)[A-Z].*</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="Z m sp"/>
        </disambig>
    </rule>
    <rule id="LA_PETITE_NOM" name="la petite Chose">
        <pattern>
            <token>la</token>
            <token>petite</token>
            <marker>
                <token regexp="yes">(?-i)[A-Z].*</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="Z f sp"/>
        </disambig>
    </rule>
    <rule id="MARIE" name="Marie">
        <antipattern>
            <token>Marie</token>
            <token>moi</token>
        </antipattern>
        <pattern>
            <token postag="Z.*" postag_regexp="yes">Marie</token>
        </pattern>
        <disambig action="filter" postag="Z.*"/>
    </rule>
    <!-- END: proper nouns -->
    <!-- CATEGORY: nouns, nominal groups (particular cases) -->
    <rule id="NOM_SENT_START" name="nom sent start">
        <pattern>
            <marker>
                <token case_sensitive="yes" regexp="yes">Abonnée?s?|Corrigé|Droit|Défilé|Adaptateurs?|Faits|Junior|Logistique|Objectifs?|Wifi|Gestionnaires?|Adhérente?s?|Adultes?|Amante?s?|Amateurs?|Amatrices?|Animateurs?|Animatrices?|Amie?s?|Animaux|Animal|Apéritifs?|Arrivée|Baie?s?|Bambins?|Blondes?|Brunettes?|Caractéristiques?|Chérie?s?|Cité|Collétif|Collégiales?|Cornées?|Cuvée|Détecteurs?|Enceintes?|Garanties?|Handicapée?s?|Immobilier|Maréchal|Meubles?|Moteurs?|Perspectives?|Plastiques?|Plongée|Points?|Prématurée?s?|Spécialistes?|Techniciens?|Techniques?|Terminale|Thématiques?|Tissu|Vidéos|Parti|Métro</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="NOM_SENT_END" name="nom sent end">
        <pattern>
            <marker>
                <token regexp="yes">bataille|peluche|vache|demeure|triomphe|source|google|gendarme
                    <exception scope="previous" inflected="yes">ne</exception>
                <exception scope="previous" postag="[NJRZ].*" postag_regexp="yes"/></token>
            </marker>
            <token postag="SENT_END"/>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="ADJ_SENT_END" name="ADJ sent end">
        <pattern>
            <marker>
                <token regexp="yes">valide|sombre
                    <exception scope="previous" inflected="yes">ne</exception>
                    <exception scope="previous" postag="[NJRZ].*" postag_regexp="yes"/></token>
            </marker>
            <token postag="SENT_END"/>
        </pattern>
        <disambig action="filter" postag="J e s"/>
    </rule>
    
    <rule id="COMME_NOM" name="comme nom">
        <pattern>
            <token postag="[NJ].*" postag_regexp="yes"/>
            <token>comme</token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="MILLE_MARIN" name="mille marin">
        <pattern>
            <marker>
                <token>mille</token>
            </marker>
            <token regexp="yes">marin|nautique</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="PLATS_AUTHENTIQUE" name="plats authentiques">
        <pattern>
            <token postag="N.* p" postag_regexp="yes"/>
            <marker>
                <and>
                <token postag="N m p"/>
                <token postag="V ind pres 2 s" postag_regexp="yes" regexp="yes">.*s$</token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="SANS_CESSE" name="sans cesse">
        <pattern>
            <marker>
                <token postag="A">sans</token>
                <token postag="A">cesse</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="CALME" name="calme">
        <pattern>
                <token postag="N.*|M nonfin|C coor" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">complexe|calme|étanche|culasse|hybride|légitime|jalouse|fausse</token>
            </marker>
            <token><exception postag="D.*|A|R pers obj.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="J e s"/>
    </rule>
    <rulegroup id="PLAINE" name="plaine">
        <rule>
        <pattern>
            <token postag="N.*|M nonfin|C.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">plaine|pisteroute|télévision</token>
            </marker>
            <token><exception postag="D.*|A" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*|M nonfin|C.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">parent|rebelle|rose</token>
                </marker>
                <token><exception postag="D.*|A" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="N e s"/>
        </rule>
    </rulegroup>
    <rule id="DANSE" name="danse">
        <pattern>
            <token postag="M nonfin|C coor" postag_regexp="yes"/>
            <marker>
                <token>danse</token>
            </marker>
            <token><exception postag="P.*|A" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="CONFIANCE" name="confiance">
        <pattern>
            <token postag="V.*" postag_regexp="yes"/>
            <token postag="A" min="0" max="1"/>
            <marker>
                <token>confiance</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J e s"/>
    </rule>
    <rule id="CHINOISE" name="chinoise">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>chinoise</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f s"/>
    </rule>
    <rulegroup id="RENDRE_AVEUGLE" name="rendre aveugle">
        <rule>
        <pattern>
            <token inflected="yes">rendre</token>
            <token postag="A" min="0" max="3"/>
            <marker>
                <and>
                    <token postag="J e s"/>
                    <token postag="V ind pres 3 s" postag_regexp="yes" regexp="yes">.*s$</token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="J e s"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">rendre</token>
                <token postag="A" min="0" max="3"/>
                <marker>
                    <and>
                        <token postag="J m s"/>
                        <token postag="V ind pres 3 s" postag_regexp="yes" regexp="yes">.*s$</token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="J m s"/>
        </rule>
    </rulegroup>
    <rule id="PLATS_AUTHENTIQUE1" name="plats authentiques">
        <pattern>
            <token postag="N.* p" postag_regexp="yes"/>
            <marker>
                <and>
                    <token postag="N e p"/>
                    <token postag="V ind pres 2 s" postag_regexp="yes" regexp="yes">.*s$</token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N e s"/>
    </rule>
    <rule id="COMPTE_REALISER" name="compte réaliser">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>compte</token>
            </marker>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="ESTIME_REALISER" name="estime réaliser">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>estime</token>
            </marker>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="FAIRE_MONTRE" name="faire montre">
        <pattern>
            <token inflected="yes" regexp="yes">(re)?faire</token>
            <token postag="A" min="0" max="3"/>
            <marker>
                <token>montre</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="UNE_TOUCHE" name="une touche">
        <!-- Ils donnent une chouette touche à la mélodie.-->
        <pattern>
            <token postag="V.*" postag_regexp="yes"/>
            <token postag="A" min="0" max="3"/>
            <token postag="D f s"/>
            <and>
                <token postag="J [ef] s" postag_regexp="yes"/>
                <token postag="N [ef] s" postag_regexp="yes"/>
            </and>
            <marker>
                <token>touche</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="ATTENTAT_SUCIDE" name="attentat">
        <pattern>
            <token>attentat</token>
            <marker>
                <token>suicide</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rulegroup id="MAITRISE" name="maîtrise">
        <rule>
        <pattern>
            <token postag="J f s"/>
            <marker>
                <token>maîtrise</token>
            </marker>
            <token regexp="yes">des?|du</token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D f s"/>
                <token postag="J [ef] s" postag_regexp="yes"/>
                <marker>
                    <token>maîtrise</token>
                </marker>
                <token regexp="yes">des?|du</token>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="J f p"/>
                <marker>
                    <token>maîtrises</token>
                </marker>
                <token regexp="yes">des?|du</token>
            </pattern>
            <disambig action="filter" postag="N f p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D . p" postag_regexp="yes"/>
                <token postag="J [ef] p" postag_regexp="yes"/>
                <marker>
                    <token>maîtrises</token>
                </marker>
                <token regexp="yes">des?|du</token>
            </pattern>
            <disambig action="filter" postag="N f p"/>
        </rule>
    </rulegroup>
    <rule id="RENCONTRE_DEBAT" name="rencontre débat">
        <pattern>
            <token regexp="yes">rencontres?</token>
            <marker>
                <token>débat</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="UN_ACTION" name="Un action">
        <pattern>
            <marker>
                <token>UN</token>
            </marker>
            <token regexp="yes">actions?|news?|engagement|bénévolat|traité|délégations?|combat|solidarité</token>
        </pattern>
        <disambig action="filter" postag="S"/>
    </rule>
    <rule id="EXTRAIT" name="extrait">
        <pattern>
            <marker>
                <token>extrait</token>
            </marker>
            <token>vidéo</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="TIQUE" name="tique">
        <pattern>
            <marker>
                <token>tique</token>
            </marker>
            <token>de</token>
            <token>lumen</token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="TIQUES" name="tiques">
        <pattern>
            <marker>
                <token>tiques</token>
            </marker>
            <token>de</token>
            <token>lumen</token>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule id="COMM" name="comm">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <token>comm</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="CARTE_GRISE" name="carte grise">
        <pattern>
            <token>carte</token>
            <marker>
                <token>grise</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f s"/>
    </rule>
    <rule id="POELE_A" name="poêle à">
        <pattern>
            <token>poêle</token>
            <marker>
                <token>à</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="ESTIME" name="estime">
        <pattern>
            <token regexp="yes">hautes?|grandes?|faibles?|infimes?|petites?|basses?</token>
            <marker>
                <token>estime</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="GRECQUE" name="grecque">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>grecque</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f s"/>
    </rule>
    <rule id="MOYENNE" name="moyenne">
        <pattern>
            <token postag="N f s"/>
            <marker>
                <token>moyenne</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f s"/>
    </rule>
    <rule id="DATAS" name="datas">
        <pattern>
            <token postag="[DP] .* p" postag_regexp="yes"/>
            <marker>
                <token>datas</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule id="EXCELLENT1" name="excellent">
        <pattern>
            <marker>
                <token>excellent</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="J m s"/>
    </rule>
    <rulegroup id="AGENCE" name="agence">
        <rule>
            <pattern>
                <marker>
                    <token>agence</token>
                </marker>
                <token regexp="yes">d'|de</token>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>agences</token>
                </marker>
                <token regexp="yes">d'|de</token>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N f p"/>
        </rule>
    </rulegroup>
    <rulegroup id="SOMMES" name="sommes">
        <rule>
        <pattern>
            <token postag="[DP].* p|[YK]" postag_regexp="yes"/>
            <marker>
                <token>sommes</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>somme</token>
                </marker>
                <token>d'</token>
                <token>argent</token>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>sommes</token>
                </marker>
                <token>d'</token>
                <token>argent</token>
            </pattern>
            <disambig action="filter" postag="N f p"/>
        </rule>
    </rulegroup>
    <rule id="FORMATION_CONTINUE" name="formation continue">
        <pattern>
            <token>formation</token>
            <marker>
                <token regexp="yes">coordinateur|continue</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f s"/>
    </rule>
    <rule id="EXERCICES_TYPES" name="exercices types">
        <pattern>
            <token postag="N . p" postag_regexp="yes"/>
            <marker>
                <token>types</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J e p"/>
    </rule>
    <rulegroup id="CHEMINS_POLITIQUES" name="chemins politiques">
        <rule>
            <pattern>
                <token postag="N . p" postag_regexp="yes"/>
                <marker>
                    <token>politiques</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J e p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N . s" postag_regexp="yes"/>
                <marker>
                    <token>politique</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J e s"/>
        </rule>
    </rulegroup>
    <rulegroup id="PRISE" name="prise">
        <rule>
            <pattern>
                <token>adaptateur</token>
                <marker>
                    <token>prise</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>prise</token>
                </marker>
                <token postag="J.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[mtsl]a|[nv]otre|leur</token>
                <marker>
                    <token>prise</token>
                </marker>
                <token>en</token>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
    </rulegroup>
    <rulegroup id="ENRGIE_POSITIVE" name="énergie positive">
        <rule>
            <pattern>
                <token regexp="yes">onde|énergie|vibration</token>
                <marker>
                    <token>positive</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">ondes|énergies|vibrations</token>
                <marker>
                    <token>positives</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f p"/>
        </rule>
    </rulegroup>
    <rule id="PAYS_EMERGENT" name="pays émergent">
        <pattern>
            <token>pays</token>
            <marker>
                <token regexp="yes">émergents?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rulegroup id="VINAIGRE" name="vinaigre">
        <rule>
            <pattern>
                <marker>
                    <token>vinaigre</token>
                </marker>
                <token regexp="yes">du|de|des?|d'</token>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>vinaigre</token>
                </marker>
                <token postag="J.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>vinaigres</token>
                </marker>
                <token regexp="yes">du|de|des?|d'</token>
            </pattern>
            <disambig action="filter" postag="N m p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>vinaigres</token>
                </marker>
                <token postag="J.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N m p"/>
        </rule>
    </rulegroup>
    <rulegroup id="INTERNE" name="interne">
        <rule>
            <pattern>
                <token regexp="yes">communication|gestion|cohérence|source</token>
                <marker>
                    <token regexp="yes">interne|externe</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J e s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">communications?|gestions?|cohérences?|sources?</token>
                <marker>
                    <token regexp="yes">internes|externes</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J e p"/>
        </rule>
    </rulegroup>
    <rule id="ESTIMES" name="estimes">
        <pattern>
            <token regexp="yes">hautes?|grandes?|faibles?|infimes?|petites?|basses?</token>
            <marker>
                <token>estimes</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f p"/>
    </rule>
    <rule id="POELES_A" name="poêles à">
        <pattern>
            <token>poêles</token>
            <marker>
                <token>à</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m p"/>
    </rule>
    <rule id="CARTES_GRISES" name="cartes grises">
        <pattern>
            <token>cartes</token>
            <marker>
                <token>grises</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J f p"/>
    </rule>
    <rule id="MARINE" name="marine">
        <pattern>
            <token postag="J [em] s" postag_regexp="yes"/>
            <marker>
                <token case_sensitive="yes">Marine</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="Z m s"/>
    </rule>
    <rule id="POINT" name="point">
        <pattern>
            <marker>
                <token>point</token>
            </marker>
            <token>final</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rulegroup id="BIENVENUE" name="bienvenue">
        <rule>
            <pattern>
                <marker>
                    <token>bienvenue</token>
                </marker>
                <token regexp="yes">(?-i)[A-Z].*</token>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token>bienvenue</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
    </rulegroup>
    <rule id="ORANGE" name="orange">
        <!-- It could be useful for other color names? -->
        <pattern>
            <token regexp="yes" inflected="yes">un|ce|le</token>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">orange|rose</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="HAUSSE" name="hausse">
        <pattern>
            <marker>
                <token>hausse</token>
            </marker>
            <token>
                <exception regexp="yes">les?</exception></token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="CELEBRE" name="célèbre">
        <pattern>
            <token>
                <exception>ne</exception>
                <exception postag="[NRJ].*" postag_regexp="yes"/></token>
            <marker>
                <token>célèbre</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="J e s"/>
    </rule>
    <rule id="MUSIQUE" name="musique">
        <pattern>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token>musique</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rulegroup id="PLAN" name="plan">
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">plan</token>
                </marker>
                <token regexp="yes">cul?|sexe|rapproché</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token>gros</token>
                <marker>
                    <token inflected="yes">plan</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">plan</token>
                </marker>
                <token>de</token>
                <token>travail</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
    </rulegroup>
    <rule id="CES" name="ces">
        <pattern>
            <token postag="D m s"/>
            <marker>
                <token case_sensitive="yes">CES</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m sp"/>
    </rule>
    <rule id="BROSSE" name="brosse">
        <!-- with agreement error -->
        <pattern>
            <marker>
                <token>brosse</token>
            </marker>
            <token postag="P"/>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="A_D_N" name="brosse">
        <!-- with agreement error -->
        <pattern>
            <marker>
                <token>à</token>
            </marker>
            <token postag="D.*" postag_regexp="yes"/>
            <and>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="remove" postag="V ppa.*"/>
    </rule>
    <rule id="PARTIE_PRENANTE" name="partie prenante">
        <!-- with agreement error -->
        <pattern>
            <marker>
                <token>partie</token>
            </marker>
            <token>prenante</token>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="GENS" name="gens">
        <pattern>
            <marker>
                <token>gens
                    <exception scope="previous" postag="D [ef] s" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="TIROIRS" name="tiroirs">
        <!-- with agreement error -->
        <pattern>
            <token regexp="yes">tiroirs?</token>
            <marker>
                <token regexp="yes">couverts?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="CUITE" name="cuite">
        <!-- with agreement error -->
        <pattern>
            <token>
                <exception postag="R pers obj.*" postag_regexp="yes"/></token>
            <marker>
                <token>cuite</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="TOUCHE_BAS" name="touche bas">
        <!-- with agreement error -->
        <pattern>
            <token regexp="yes">touche|direction|flèche|en</token>
            <marker>
                <token>bas</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="SOUVENIR_D_ETE" name="souvenirs d'été">
        <!-- with agreement error -->
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <token>d'</token>
            <marker>
                <token>été</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="UN_AVOIR" name="un avoir">
        <!-- with agreement error -->
        <pattern>
            <token postag="D m s">
                <exception>l'</exception></token>
            <marker>
                <token>avoir</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="DES_ETRES" name="des êtres">
        <!-- with agreement error -->
        <pattern>
            <token postag="D.*" postag_regexp="yes">
                <exception regexp="yes">tous|toute?s?|d'</exception></token>
            <marker>
                <token>être</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="BENIN" name="bénin">
        <!-- with agreement error -->
        <pattern>
            <token postag="(P\+)?D m s" postag_regexp="yes"/>
            <marker>
                <token case_sensitive="yes">Bénin</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="Z e sp"/>
    </rule>
    <rule id="AVENIR" name="l'avenir">
        <!-- with agreement error -->
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <token>avenir</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="ENTREPRISE" name="entreprise">
        <pattern>
            <token postag="D [ef] s" postag_regexp="yes"/>
            <marker>
                <token>entreprise</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ppa f s"/>
    </rule>
    <rule id="SORTIE" name="sortie">
        <pattern>
            <token postag="D [ef] s" postag_regexp="yes"/>
            <marker>
                <token>sortie</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ppa f s"/>
    </rule>
    <rule id="L_ETRE_HUMAIN" name="l'être humain">
        <!-- with agreement error -->
        <pattern>
            <token postag="D e s">l'</token>
            <token postag="N m s">être</token>
            <token postag="J m s">humain</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="UNE_AURA" name="une aura">
        <!-- with agreement error -->
        <pattern>
            <token postag="D . s" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token>aura</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.* 3 s" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="V avoir ind futu 3 s"/>
    </rule>
    <rule id="COULEURS_VIVES" name="couleurs vives">
        <!-- with agreement error -->
        <pattern>
            <token postag="N . p" postag_regexp="yes"/>
            <marker>
                <token>vives</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V sub pres 2 s"/>
    </rule>
    <rule id="DROIT" name="droit des femmes">
        <!-- with agreement error -->
        <pattern>
            <token postag="N m s">droit</token>
            <token>des</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">femmes|hommes|enfants|familles</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="MOBILIER_ET_ACCESSOIRES" name="mobilier et accessoires">
        <!-- with agreement error -->
        <pattern>
            <token postag="N m s">mobilier</token>
            <token postag="C coor">et</token>
            <token postag="N m p">accessoires</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="NOM_INCLUSIF" name="participant.e.s (noun)">
        <pattern>
            <token postag="[DP].*" postag_regexp="yes"/>
            <marker>
                <token postag="N m s"/>
            </marker>
            <token>.</token>
            <token>e</token>
            <token>.</token>
            <token>s</token>
        </pattern>
        <disambig action="remove" postag="V ppr"/>
    </rule>
    <rule id="DEVOIR" name="devoir (noun)">
        <pattern>
            <token regexp="yes">le|de</token>
            <marker>
                <token postag="N m s">devoir</token>
            </marker>
            <token>
                <exception postag="V.* inf" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="SAVOIR" name="savoir (noun)">
        <pattern>
            <marker>
                <token postag="N m s">savoir</token>
            </marker>
            <!-- TODO: make it more general -->
            <token regexp="yes">spécialisé|inutile|utile|social|scientifique</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="VINS" name="vins (noun)">
        <antipattern>
            <token>tu</token>
            <token>ne</token>
            <token postag="R pers obj.*" postag_regexp="yes" min="0" max="3"/>
            <token postag="N m p" regexp="yes">vins|comptes</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="N m p" regexp="yes">vins|comptes</token>
            </marker>
            <token postag="J [me] s?p|V.* ppa [me] s?p" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N m p"/>
    </rule>
    <rule id="COMPTE" name="compte (noun)">
        <pattern>
            <marker>
                <token postag="N m s">compte
                    <exception scope="previous" regexp="yes">je|il|elle|ne|la|les</exception>
                    <exception scope="previous" postag="[JN].*" postag_regexp="yes"/></token>
            </marker>
            <token postag="J [me] sp?|V.* ppa [me] sp?" postag_regexp="yes">
                <exception regexp="yes">tu|sur</exception></token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="STARTSENT_NOUN" name="sentence start + noun">
        <pattern>
            <token postag="SENT_START"/>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.* [123] ." postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="V.* 3 s" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="V.* [123] ."/>
    </rule>
    <rulegroup id="TIENS" name="tiens">
        <rule>
            <pattern>
                <token>
                    <exception postag="[DP].*" postag_regexp="yes"/></token>
                <marker>
                    <token>tiens</token>
                </marker>
                <token postag="SENT_END"/>
            </pattern>
            <disambig action="remove" postag="[NJ] m p"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">je</token>
                <token postag="R pers obj.*|A" postag_regexp="yes" min="0" max="4"/>
                <marker>
                    <token>tiens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 1 s"/>
        </rule>
        <rule>
            <pattern>
                <token>tu</token>
                <token postag="R pers obj.*|A" postag_regexp="yes" min="0" max="4"/>
                <marker>
                    <token>tiens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 2 s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>tiens</token>
                </marker>
                <token regexp="yes">[mt]oi|les|leur|[nv]ous|la</token>
            </pattern>
            <disambig action="filter" postag="V imp pres 2 s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">ah|ben|bun</token>
                </marker>
                <token>tiens</token>
                <token postag="SENT_END"/>
            </pattern>
            <disambig action="remove" postag="[NJ].*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token>tiens</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="[NJ] m p"/>
        </rule>
    </rulegroup>
    <rule id="LES_QUELQUES" name="les quelques">
        <pattern>
            <token postag="(P.)?D e p" postag_regexp="yes"/>
            <marker>
                <token>quelques</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="replace">
            <wd pos="J e p"/>
        </disambig>
    </rule>
    <rule id="CONDUITE" name="conduite (nom)">
        <pattern>
            <token>
                <exception inflected="yes">avoir</exception></token>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">conduite</token>
            </marker>
            <token postag="V ppa.*|J.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="PERMIS" name="permis (nom)">
        <pattern>
            <token postag="(P.)?D.*" postag_regexp="yes"/>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes">permis|vidéo</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="D_AUCUNS" name="d'aucuns">
        <pattern>
            <marker>
                <token>d'</token>
                <token>aucuns</token>
            </marker>
            <token>
                <exception postag="[NJ].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="replace">
            <wd pos="R m p" lemma="d'aucuns"/>
            <wd pos="R m p" lemma="d'aucuns"/>
        </disambig>
    </rule>
    <rule id="CEST_LE" name="c'est le/la terre">
        <!-- with agreement error -->
        <pattern>
            <token>c'</token>
            <token inflected="yes">être</token>
            <marker>
                <token postag="D.*" postag_regexp="yes" inflected="yes">le</token>
                <token postag="[NJ].*|V ppa.*" postag_regexp="yes">
                    <exception postag="V.* inf" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="ENSEMBLE_N" name="ensemble (n)">
        <pattern>
            <token postag="SENT_START"/>
            <marker>
                <token postag="N m s">ensemble</token>
            </marker>
            <token regexp="yes">de|du|des|d'</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="CERVICALES" name="cervicales">
        <pattern>
            <token>spécial</token>
            <marker>
                <token postag="J f.*" postag_regexp="yes" inflected="yes">cervical</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="J e sp"/>
        </disambig>
    </rule>
    <rule id="CARRE" name="carré">
        <pattern>
            <marker>
                <token postag="N m s">carré</token>
            </marker>
            <token>de</token>
            <token>sable</token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="LA_PLUS" name="la plus">
        <pattern>
            <token postag="D.*" postag_regexp="yes" regexp="yes">la|le|les</token>
            <token postag="A" regexp="yes">plus|mois</token>
            <token postag="J.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="RENTREE" name="rentrée">
        <pattern>
            <marker>
                <token postag="N f s">rentrée</token>
            </marker>
            <token regexp="yes">&mois_annee;</token>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="LES_PLUS" name="les plus">
        <pattern>
            <marker>
                <token postag="D e p">les</token>
            </marker>
            <token regexp="yes">plus|mois</token>
        </pattern>
        <disambig action="filter" postag="D e p"/>
    </rule>
    <rule id="VUE" name="vue (noun)">
        <pattern>
            <!--<token inflected="yes" regexp="yes">point|prise</token>-->
            <token>de</token>
            <marker>
                <token postag="N f s">vue</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f s"/>
    </rule>
    <rule id="VOITURE203" name="la 203">
        <pattern>
            <token postag="D f s"/>
            <marker>
                <token>203</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="D f s"/>
    </rule>
    <rule id="BISES" name="bises">
        <pattern>
            <token postag="N f p">bises</token>
        </pattern>
        <disambig action="remove" postag="J f p"/>
    </rule>
    <rule id="N_SUIVI_NP" name="N + NP">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">allée|produit|avenue|cathédrale|commun|directeur|lauréat|maître|musée|traité|entreprise|sortie|responsable</token>
            </marker>
            <token regexp="yes">\p{Lu}.*</token>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="LA_SOUL" name="la soul (musical genere)">
        <pattern>
            <token regexp="yes">la|divas?|chanteurs?|chanteuses?</token>
            <token min="0">de</token>
            <marker>
                <token>soul</token>
            </marker>
        </pattern>
        <disambig action="replace" postag="N f s"/>
    </rule>
    <rule name="page blanche" id="PAGE_BLANCHE">
        <pattern>
            <token postag="N e s">page</token>
            <token postag="J f s">blanche</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="CAHIER_SPIRALE" name="cahier spirale">
        <pattern>
            <token regexp="yes">cahiers?</token>
            <token min="0" max="1">à</token>
            <marker>
                <token regexp="yes">spirales?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N f.*"/>
    </rule>
    <rule id="FEUILLE" name="feuille">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">feuille</token>
            </marker>
            <token regexp="yes">de|du|des|d'</token>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="MUSEE" name="musée">
        <pattern>
            <token postag="D e p|D m s" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes">musées?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="METRES_FEMININ" name="100 mètres féminin">
        <pattern>
            <token postag="Y|UNKNOWN" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes">mètres</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">féminin|masculin</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="UNE_SEULE_MORT" name="une seule mort">
        <pattern>
            <token postag="D f s">une</token>
            <token postag="J f s">seule</token>
            <token postag="N f s">mort</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="BON_ADJ" name="bon (adj)">
        <antipattern>
            <token regexp="yes">ne|n'</token>
            <token min="0" postag="R.*" postag_regexp="yes"/>
            <token postag="V.*" postag_regexp="yes"/>
            <token>pas</token>
        </antipattern>
        <antipattern>
            <token inflected="yes">avoir</token>
            <token>beau</token>
            <token postag="V.* inf" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token inflected="yes">ce</token>
            <token inflected="yes">dernier</token>
            <token postag="V.*3.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token>chaque</token>
            <token>seconde</token>
        </antipattern>
        <antipattern>
            <token postag="Y|K" postag_regexp="yes"/>
            <token>secondes</token>
        </antipattern>
        <rule>
            <pattern>
                <!-- <unify>
                    <feature id="number"/>
                    <feature id="gender"/>-->
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token postag="J.*" postag_regexp="yes" inflected="yes" regexp="yes">propre|sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau|premier|second|.+ème|dernier</token>
                </marker>
                <token postag="N.*" postag_regexp="yes">
                    <exception inflected="yes" regexp="yes">vrai|gagne|gouverne|donne</exception></token>
                <!--</unify>-->
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <marker>
                        <token postag="J.*" postag_regexp="yes" inflected="yes" regexp="yes">propre|sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau|superbe</token>
                        <token postag="N.*" postag_regexp="yes">
                            <exception inflected="yes" regexp="yes">propre|sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau|superbe</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <marker>
                        <token postag="J.*" postag_regexp="yes" inflected="yes" regexp="yes">sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau</token>
                        <token postag="J.*" postag_regexp="yes" inflected="yes" regexp="yes">sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau</token>
                        <token postag="N.*" postag_regexp="yes">
                            <exception inflected="yes" regexp="yes">sale|vrai|petit|bon|meilleur|mauvais|nouveau|grand|vieux|long|ancien|haut|seul|beau</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule name="site de rencontres" id="SITES_DE_RENCONTRES">
        <pattern>
            <token postag="N m s" inflected="yes">site</token>
            <token postag="P">de</token>
            <token postag="N f p">rencontres</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="droits et obligations" id="DROITS_ET_OBLIGATIONS">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes">droits</token>
            </marker>
            <token>et</token>
            <token>obligations</token>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule name="partie de saison" id="PARTIE_DE_SAISON">
        <pattern>
            <token postag="N f s">partie</token>
            <token postag="P">de</token>
            <token postag="N f s">saison</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="SAINT-Z" name="saint-z">
        <pattern>
            <token regexp="yes">(?-i)Saint</token>
            <token>-</token>
            <token postag="Z m sp"/>
        </pattern>
        <disambig action="replace">
            <wd pos="Z m sp"/>
            <wd pos="Z m sp"/>
            <wd pos="Z m sp"/>
        </disambig>
    </rule>
    <rule id="SAINTE-Z" name="sainte-z">
        <pattern>
            <token regexp="yes">(?-i)Sainte</token>
            <token>-</token>
            <token postag="Z f sp"/>
        </pattern>
        <disambig action="replace">
            <wd pos="Z f sp"/>
            <wd pos="Z f sp"/>
            <wd pos="Z f sp"/>
        </disambig>
    </rule>
    <rule id="GRAND_FEMININE" name="grand faim">
        <pattern>
            <marker>
                <token>grand</token>
            </marker>
            <token regexp="yes">faim|soif</token>
        </pattern>
        <disambig action="replace" postag="J e s"/>
    </rule>
    <rule name="fréquence" id="FREQUENCE">
        <pattern>
            <token postag="J f s" inflected="yes" regexp="yes">basse|haute</token>
            <token postag="N f s">fréquence</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="prise de tête" id="PRISE_DE_TETE">
        <pattern>
            <token postag="N f s" inflected="yes">prise</token>
            <token postag="P">de</token>
            <token postag="N f s">tête</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!-- END: nouns, nominal groups -->
    <!-- CATEGORY: adverbs -->
    <rule id="JUSTE" name="juste">
        <pattern>
            <marker>
                <token>juste</token>
            </marker>
            <token regexp="yes">derrière|devant|ici|là|là-bas|après|ci-desso?us</token>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="BOUT_A_BOUT" name="bout à bout">
        <pattern>
            <marker>
                <token>bout</token>
                <token>à</token>
                <token>bout</token>
            </marker>
        </pattern>
        <disambig action="add">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule name="au fait" id="AU_FAIT">
        <pattern>
            <token postag="SENT_START"/>
            <token>au</token>
            <token>fait</token>
            <token>,</token>
        </pattern>
        <disambig action="add">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule name="sans aucun doute" id="SANS_AUCUN_DOUTE">
        <pattern>
            <token>sans</token>
            <token>auncun</token>
            <token>doute</token>
        </pattern>
        <disambig action="add">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule name="bon" id="BON">
        <pattern>
            <marker>
                <token>bon</token>
            </marker>
            <token postag="Z.*|I" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule name="bon" id="BON1">
        <pattern>
            <marker>
                <token>bon</token>
            </marker>
            <token regexp="yes">ba|ns|vs</token>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule name="vieilles" id="VIEILLES">
        <pattern>
            <marker>
                <token regexp="yes">vieilles?|belles?</token>
            </marker>
            <token regexp="yes">sexe|sperme</token>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="DE_MANIERE_ADJ" name="de manière + adj">
        <pattern>
            <token postag="P">de</token>
            <token postag="N f s" regexp="yes">manière|forme</token>
            <token postag="J [fe] sp?|V ppa [fe] sp?" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="TOUT_ADV" name="tout (adv">
        <rule>
            <pattern>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <unify-ignore>
                        <marker>
                            <token postag="A">tout</token>
                        </marker>
                    </unify-ignore>
                    <token postag="J.*|V ppa.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token postag="A">tout</token>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <token postag="J.*|V ppa.*" postag_regexp="yes"/>
                    <unify-ignore>
                        <marker>
                            <token postag="A">tout</token>
                        </marker>
                    </unify-ignore>
                    <token postag="J.*|V ppa.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="number"/>
                    <feature id="gender"/>
                    <token postag="(p.)?D.*" postag_regexp="yes"/>
                    <unify-ignore>
                        <marker>
                            <token postag="A">tout</token>
                        </marker>
                    </unify-ignore>
                    <token postag="J.*|V ppa.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <rule id="EN_OUTRE" name="en outre">
        <pattern>
            <marker>
                <token>en</token>
                <token>outre</token>
            </marker>
            <token>
                <exception regexp="yes">de|d'|du</exception></token>
        </pattern>
        <disambig action="add">
            <wd lemma="en outre" pos="A"/>
            <wd lemma="en outre" pos="A"/>
        </disambig>
    </rule>
    <rule id="SUR_LE_COUP" name="sur le coup">
        <antipattern>
            <token>coup</token>
            <token postag="J [me] sp?" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <marker>
                <token>sur</token>
                <token>le</token>
                <token>coup</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd lemma="sur le coup" pos="A"/>
            <wd lemma="sur le coup" pos="A"/>
            <wd lemma="sur le coup" pos="A"/>
        </disambig>
    </rule>
    <rule id="HELAS" name="hélas">
        <antipattern>
            <token skip="-1">tu</token>
            <token>hélas</token>
        </antipattern>
        <pattern>
            <marker>
                <token>hélas</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A"/>
    </rule>
    <rule id="DE_PLUS" name="de plus">
        <pattern>
            <marker>
                <token>de</token>
                <token>plus</token>
            </marker>
            <token>,</token>
        </pattern>
        <disambig action="add">
            <wd lemma="de plus" pos="A"/>
            <wd lemma="de plus" pos="A"/>
        </disambig>
    </rule>
    <rule id="PAREIL" name="pareil (not adverb)">
        <!-- TODO: exceptions -->
        <pattern>
            <token postag="[DN].*" postag_regexp="yes">pareil</token>
        </pattern>
        <disambig action="remove" postag="A"/>
    </rule>
    <rule id="ADV_EXCEPTIONS" name="adverbs (exceptions)">
        <pattern>
            <token postag="(P.)?D m s" postag_regexp="yes"/>
            <marker>
                <token postag="N m s" regexp="yes">bien|mal</token>
            </marker>
            <token>
                <exception postag="J.*|V.* ppa.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="N m s"/>
    </rule>
    <rule id="DE_CE_FAIT" name="de ce fait">
        <pattern>
            <token postag="SENT_START"/>
            <marker>
                <token>de</token>
                <token>ce</token>
                <token>fait</token>
            </marker>
            <token>,</token>
        </pattern>
        <disambig action="replace">
            <wd lemma="de ce fait" pos="A"/>
            <wd lemma="de ce fait" pos="A"/>
            <wd lemma="de ce fait" pos="A"/>
        </disambig>
    </rule>
    <rule id="A_MES_YEUX" name="à mes yeux">
        <pattern>
            <token postag="V etre.*" postag_regexp="yes"/>
            <marker>
                <token>à</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token>yeux</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rulegroup name="complément circonstanciel" id="COMPLEMENT_CIRCONSTANTIEL">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">début|milieu|fin|courant</token>
                    <token postag="Y"/>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="_CC"/>
                <wd pos="_CC"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="HAUT_ADVERBE" name="haut adverbe">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <token postag="A"/>
                <marker>
                    <token regexp="yes">haut|bas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="10">placer|tomber|descendre|trouver|parler|chanter</token>
                <token postag="A"/>
                <marker>
                    <token regexp="yes">haut|bas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="10">placer|tomber|descendre|trouver|parler|chanter</token>
                <token postag="A"/>
                <token postag="A"/>
                <marker>
                    <token regexp="yes">haut|bas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <rule id="AU_MOINS" name="au moins">
        <antipattern>
            <token regexp="yes">du|au</token>
            <token regexp="yes" skip="-1">moins|plus</token>
            <token regexp="yes">du|au</token>
            <token regexp="yes">moins|plus</token>
        </antipattern>
        <antipattern>
            <token regexp="yes">du|au</token>
            <token regexp="yes" skip="1">moins|plus</token>
            <token>des</token>
        </antipattern>
        <antipattern>
            <token regexp="yes">du|au</token>
            <token regexp="yes">moins|plus</token>
            <token postag="J .*" postag_regexp="yes"/>
            <token postag="N .*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <marker>
                <token regexp="yes">du|au</token>
                <token regexp="yes">moins|plus</token>
            </marker>
            <token>
                <exception postag="J [me] (s|sp)" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
        <example type="untouched">la sœur du plus puissant des dieux</example>
    </rule>
    <rule id="A_L_ORIGINE" name="à l'origine">
        <pattern>
            <marker>
                <token>à</token>
                <token>l'</token>
                <token>origine</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="EN_THEORIE" name="en théorie">
        <pattern>
            <marker>
                <token>en</token>
                <token>théorie</token>
            </marker>
            <token>
                <exception postag="J [fe] (s|sp)|V ppa f s" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="EN_REALITE" name="en réalité">
        <antipattern>
            <token>réalité</token>
            <token regexp="yes">augmentée|virtuelle</token>
        </antipattern>
        <pattern>
            <marker>
                <token>en</token>
                <token>réalité</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="EN_GENERAL" name="en général">
        <pattern>
            <token>en</token>
            <token regexp="yes">apparence|conséquence|définitive|effet|général|gros|particulier|partie|principe|revanche</token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="PETIT_A_PETIT" name="petit à petit">
        <pattern>
            <token>petit</token>
            <token>à</token>
            <token>petit</token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="TOUT_A_FAIT" name="tout à fait">
        <pattern>
            <token>tout</token>
            <token>à</token>
            <token>fait</token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="DU_TOUT" name="du tout">
        <pattern>
            <token>du</token>
            <token>tout</token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="AVANT_TOUT" name="du tout">
        <pattern>
            <marker>
                <token>avant</token>
                <token>tout</token>
            </marker>
            <token>
                <exception postag="[NJ] [me] (s|sp)" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rulegroup id="PREFIXES" name="prefixes">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">&prefixes;</token>
                </marker>
                <token spacebefore="no">-</token>
                <token spacebefore="no"/>
            </pattern>
            <disambig action="replace">
                <wd pos="A"/>
            </disambig>
        </rule>
        <rule>
            <antipattern>
                <token postag="(P\+)?D [me] (s|sp)" postag_regexp="yes"/>
                <token postag="[NJ] [me] (s|sp)" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token postag="(P\+)?D [fe] (s|sp)" postag_regexp="yes"/>
                <token postag="[NJ] [fe] (s|sp)" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <unify>
                    <feature id="gender"/>
                    <feature id="number"/>
                    <token postag="(P\+)?D.*" postag_regexp="yes"/>
                    <unify-ignore>
                        <marker>
                            <token regexp="yes">&prefixes;
                                <exception postag="J.*" postag_regexp="yes"/></token>
                        </marker>
                    </unify-ignore>
                    <token postag="[NJ].*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="replace" postag="A"/>
        </rule>
    </rulegroup>
    <rule id="FAIT_EFFET" name="fait effet">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s" skip="5">fait</token>
            </marker>
            <token>effet</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="FAIT_GRISE_MINE" name="fait grise mine">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">fait</token>
            </marker>
            <token postag="J f s">grise</token>
            <token postag="N f s">mine</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rulegroup id="AVANT" name="avant (adv)">
        <!-- TODO: it is adverb in more cases -->
        <rule>
            <pattern>
                <token>
                    <exception postag="D [em] s" postag_regexp="yes"/></token>
                <marker>
                    <token>avant</token>
                </marker>
                <token>dans</token>
            </pattern>
            <disambig action="replace" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="D [em] s" postag_regexp="yes"/></token>
                <marker>
                    <token postag="P">avant</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="P"/>
        </rule>
    </rulegroup>
    <!-- END: adverbs -->
    <!-- CATEGORY: preposition + noun -->
    <rulegroup name="la (déterminant/pronom)" id="LA_DET_PRON">
        <rule>
            <pattern>
                <marker>
                    <token postag="R pers obj 3 f s">la</token>
                </marker>
                <token postag="V .*inf" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers obj 3 f s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="R pers suj.*" postag_regexp="yes"/>
                <token min="0">ne</token>
                <marker>
                    <token postag="R pers obj 3 f s">la</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers obj 3 f s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D f s">la</token>
                </marker>
                <token>
                    <exception postag="V .*inf|V .*ind .*|V ppr" postag_regexp="yes"/></token>
            </pattern>
            <disambig postag="D f s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D f s">la</token>
                </marker>
                <token postag="A"/>
                <token postag="J.*|V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="D f s"/>
        </rule>
    </rulegroup>
    <rulegroup id="EXCEPTIONS_PREP_NOM" name="exceptions to prep + nom">
        <rule>
            <pattern>
                <marker>
                    <token postag="R pers obj">en</token>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">tombe|fut</token>
                </marker>
                <token min="0" max="3" postag="A" postag_regexp="yes"/>
                <token postag="J.*|V ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="R pers obj">en</token>
                    <token postag="V.*" postag_regexp="yes">reste</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="R dem m s">c'</token>
                    <token postag="R pers obj">en</token>
                    <token postag="V etre.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="PREP_NOM" name="prep + noun (not verb)">
        <rule>
            <pattern>
                <token postag="P.*" postag_regexp="yes">
                    <exception postag="P\+R rel.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (ind|sub|imp).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P.*" postag_regexp="yes">
                    <exception postag="P\+R rel.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes">
                        <exception postag="R pers suj.*" postag_regexp="yes"/>
                        <exception inflected="yes">autre</exception></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="R.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P"/>
                <token postag="D.*" postag_regexp="yes">
                    <exception inflected="yes">lequel</exception></token>
                <marker>
                    <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (ind|sub|imp).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P"/>
                <marker>
                    <token postag="D.*" postag_regexp="yes">des</token>
                </marker>
                <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="P.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="P"/>
                <token postag="D.*" postag_regexp="yes">des</token>
                <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes"/>
                <token postag="C coor"/>
                <marker>
                    <token postag="D.*" postag_regexp="yes">des</token>
                </marker>
                <token postag="[NJ].*|V.* ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="P.*"/>
        </rule>
    </rulegroup>
    <!-- CATEGORY: verbs (particular cases) -->
    <!-- TODO: move down -->
    <rule id="HAUSSE1" name="hausse1">
        <pattern>
            <marker>
                <token>hausse</token>
            </marker>
            <token>le</token>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="DIS_JE" name="dis-je">
        <pattern>
            <marker>
                <and>
                    <token postag="V ind pres 1 s"/>
                    <token postag="V imp pres 2 s"/>
                </and>
            </marker>
            <token>-je</token>
        </pattern>
        <disambig action="remove" postag="V imp pres 2 s"/>
    </rule>
    <rule id="PEUX" name="peux">
        <pattern>
            <token>je</token>
            <token inflected="yes" min="0" max="1">ne</token>
            <marker>
                <token>peux</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ind pres 2 s"/>
    </rule>
    <rulegroup id="FAITES1" name="FAITES">
        <rule>
            <pattern>
                <token>vous
                    <exception scope="previous">ne</exception></token>
                <token min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token>faites</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <token>ne</token>
                <token>vous</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token>faites</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V imp pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>faites</token>
                </marker>
                <token postag="R pers obj.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V imp pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>faites</token>
                </marker>
                <token regexp="yes">vos|votre</token>
            </pattern>
            <disambig action="filter" postag="V imp pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <token>vous</token>
                <token>en</token>
                <marker>
                    <token>faites</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <token skip="-1">vous</token>
                <token>et</token>
                <marker>
                    <token>faites</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 2 p"/>
        </rule>
    </rulegroup>
    <rulegroup id="FAIS_ATTENTION" name="fais attention">
        <rule>
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">faisons|fais|faites</token>
                </marker>
                <token>attention</token>
            </pattern>
            <disambig action="remove" postag="V ind pres.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[ZT].*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">faisons|fais|faites</token>
                </marker>
                <token skip="-1">attention</token>
                <token>!</token>
            </pattern>
            <disambig action="remove" postag="V ind pres.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="SEMBLE_T_IL" name="semble-t-il">
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s"/>
                </marker>
                <token regexp="yes">-t-il|-t-elle|-t-on</token>
            </pattern>
            <disambig action="remove" postag="V ind pres 1 s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s"/>
                </marker>
                <token regexp="yes">-t-il|-t-elle|-t-on</token>
            </pattern>
            <disambig action="remove" postag="V imp pres 2 s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s"/>
                </marker>
                <token regexp="yes">-t-il|-t-elle|-t-on</token>
            </pattern>
            <disambig action="remove" postag="V sub pres 1 s"/>
        </rule>
    </rulegroup>
    <rule id="COUPONS_NET" name="coupons net">
        <pattern>
            <token postag="R pers obj 3 e p">les</token>
            <token postag="V ind pres 1 p">coupons</token>
            <token postag="A">net</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="EGALE" name="égale">
        <pattern>
            <token postag="Y"/>
            <marker>
                <token>égale</token>
            </marker>
            <token postag="Y"/>
        </pattern>
        <disambig action="remove" postag="J f s"/>
    </rule>
    <rule id="LEQUEL_VERBE" name="pour lequel + verbe">
        <pattern>
            <token postag="P"/>
            <token regexp="yes">lequel|laquelle|lesquelles|lesquels</token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"/>
                    <token postag="J.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="FAIT_ENVIE" name="fait envie">
        <pattern>
            <token regexp="yes">cela|ça</token>
            <marker>
                <token postag="V.* 3 s" postag_regexp="yes"/>
            </marker>
            <token>envie</token>
        </pattern>
        <disambig action="remove" postag="V ppa m s"/>
    </rule>
    <rule id="PRECISE_VERBE" name="précise + verbe">
        <pattern>
            <marker>
                <token>précise</token>
            </marker>
            <token regexp="yes">être|avoir</token>
            <token postag="V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="J.*"/>
    </rule>
    <rule id="QUI_PLUS_EST" name="qui plus est">
        <pattern>
            <token postag="V.* (ind|sub|con).*" postag_regexp="yes"/>
            <marker>
                <token>qui</token>
                <token>plus</token>
                <token>est</token>
            </marker>
            <token postag="V.* inf" postag_regexp="yes"/>
        </pattern>
        <disambig action="add">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule id="ON_LEUR_DONNE" name="on leur donne">
        <pattern>
            <token regexp="yes">je|il|elle|on</token>
            <token>leur</token>
            <marker>
                <token postag="N . s" postag_regexp="yes">
                    <exception regexp="yes">façon|profil</exception></token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N . s"/>
    </rule>
    <rule id="QUI_VERBE" name="qui verbe (not imperative)">
        <pattern>
            <token>qui</token>
            <marker>
                <and>
                    <token postag="V imp pres 2 s"/>
                    <token postag="V imp pres 2 s" negate_pos="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V imp pres 2 s"/>
    </rule>
    <rule id="APPROCHE" name="approche (3 s)">
        <pattern>
            <token postag="N.*" postag_regexp="yes">
                <exception postag="D.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">approche|passe</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rulegroup id="FAIT" name="fait (v ind)">
        <rule id="FAIRE_JEUNE_POUR_SON_AGE" name="faire jeune pour son âge">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="J e s">jeune</token>
                <token postag="P" skip="1">pour</token>
                <token postag="N m s">âge</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_GRAND_BRUIT" name="faire grand bruit">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="N m s">grand</token>
                <token postag="N m s">bruit</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_CORPS_AVEC" name="faire corps avec">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="N m sp">corps</token>
                <token postag="P">avec</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_DU_TORT" name="faire du tort">
            <!-- TODO: more general -->
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="P.*" postag_regexp="yes">du</token>
                <token postag="N m s" regexp="yes">tort|bien|jogging|bruit</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_FROID_DANS_LE_DOS" name="faire froid dans le dos">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="N m s">froid</token>
                <token postag="P">dans</token>
                <token postag="D m s">le</token>
                <token postag="N m s">dos</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_NOM_DE" name="faire nom de">
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token regexp="yes">semblant|usage|allusion|face|référence|place|preuve</token>
                <token regexp="yes">de?|à</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAIRE_IMPRESSION" name="faire impression">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="A" min="0" max="3"/>
                <token>impression</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAIRE_RAGE" name="faire rage">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="N f s">rage</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_SURFACE" name="faire surface">
            <pattern>
                <token postag="V ind pres 3 s">fait</token>
                <token postag="N f s">surface</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAIRE_DE" name="faire de">
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token postag="P" min="0" max="1"/>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAIRE_DE_MEME" name="faire de même">
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token>de</token>
                <token>même</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAIRE_DES_DEGATS" name="faire des dégâts">
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token postag="A" min="0" max="3"/>
                <token postag="P"/>
                <token regexp="yes">bruit|dégâts</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAIRE_L_OBJET_DE" name="faire l'objet de">
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token postag="A" min="0" max="2"/>
                <token>l'</token>
                <token>objet</token>
                <token>de</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule id="FAITES_ATTENTION" name="faire attention">
            <!-- TODO: more general! -->
            <pattern>
                <marker>
                    <token postag="V (ind|imp) pres 2 p" postag_regexp="yes" regexp="yes">(re)?faites</token>
                </marker>
                <token min="0" max="2" regexp="yes">de|la</token>
                <token regexp="yes">&noms_apres_faire;</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="FAITES" name="faites + infinitif">
            <pattern>
                <marker>
                    <token postag="V imp pres 2 p">faites</token>
                </marker>
                <token postag="V inf"/>
            </pattern>
            <disambig action="filter" postag="V imp pres 2 p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token regexp="yes">[«“'"]|bizarre|beau|grand|petit|classe|moche|laid</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJZ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token postag="[YKA]|Z.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="[NJZ].*" postag_regexp="yes" min="1" max="3"/>
                <token>aussi</token>
                <marker>
                    <token postag="V ind pres 3 s">fait</token>
                </marker>
                <token postag="D.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.* (ind|con|sub).*" postag_regexp="yes"/>
                <marker>
                    <token>fait
                        <exception scope="next" regexp="yes">-il|-elle|-on|il|elle|on</exception></token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="V ppa m s"/>
            </disambig>
        </rule>
    </rulegroup>
    <rule id="DECRIT" name="décrit">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">décrit</token>
            </marker>
            <token postag="A inte"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="PRESENTE" name="présente">
        <antipattern>
            <token inflected="yes">être</token>
            <token>présente</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="V (ind|sub|imp).*" postag_regexp="yes" regexp="yes">présente|(re)?joint|pointe|séduit|prédit</token>
            </marker>
            <token min="0" postag="A"/>
            <token postag="[ZD].*|R dem .*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule id="PREDIT" name="prédit">
        <pattern>
            <marker>
                <token postag="V (ind|sub|imp).*" postag_regexp="yes">prédit</token>
            </marker>
            <token inflected="yes">que</token>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule id="LAISSE" name="laisse">
        <pattern>
            <token postag="R dem.*|[NZJ].*" postag_regexp="yes"/>
            <marker>
                <token postag="V (ind|sub) pres 3 s" postag_regexp="yes">laisse</token>
            </marker>
            <token min="0" postag="A"/>
            <token postag="J .*|V ppa .*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V (ind|sub) pres 3 s"/>
    </rule>
    <rule id="PATIENTE" name="patiente">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token postag="V ind pres 3 s" regexp="yes">patiente|dépense|pointe</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="FAIT_JEUNE" name="fait jeune">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">fait</token>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token regexp="yes" inflected="yes">jeune|vieux</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="ECRIT_QUE" name="écrit que">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">écrit</token>
            </marker>
            <token>que</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="AURA" name="aura (verbe)">
        <antipattern>
            <token postag="D [fe] s" postag_regexp="yes"/>
            <token postag="J [fe] (s|sp)" postag_regexp="yes" min="0"/>
            <token>aura</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">aura</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
        <example type="untouched">Mon petit conseil pour une belle aura...</example>
    </rule>
    <rule id="DIVERGENT" name="divergent">
        <!-- <antipattern>
            <token>divergent</token>
            <token postag="P"/>
            <token postag="[DNA].*" postag_regexp="yes" skip="-1"/>
            <token postag="V.*" postag_regexp="yes"/>
        </antipattern>-->
        <pattern>
            <token>
                <exception postag="D . s|A" postag_regexp="yes"/></token>
            <marker>
                <token postag="V ind pres 3 p" regexp="yes">divergent|équivalent|influent|prévalent|somnolent|émergent</token>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token postag="P"/>
            <token postag="[DNAP].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 p"/>
    </rule>
    <rulegroup id="CONDUIT" name="conduit">
        <rule>
            <pattern>
                <token regexp="yes">dont|que</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="C coor" min="0" max="1"/>
                <token postag="D.*" postag_regexp="yes" min="0" max="1"/>
                <token postag="N.*" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token postag="V ind pres 3 s" regexp="yes">conduit|survive|séduit|fait|laisse</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">dont|que</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="C coor" min="0" max="1"/>
                <token postag="D.*" postag_regexp="yes" min="0" max="1"/>
                <token postag="N.*" postag_regexp="yes" min="0" max="1"/>
                <marker>
                    <token postag="V ind pres 3 s">laisse</token>
                </marker>
            </pattern>
            <disambig action="add" postag="V sub pres 3 s"/>
        </rule>
    </rulegroup>
    <rule id="TIEN" name="tien">
        <pattern>
            <marker>
                <token postag="V sub pres [13] s" postag_regexp="yes">tienne</token>
            </marker>
            <token postag="P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V sub pres [13] s"/>
    </rule>
    <rule id="CONDUIT_BIEN" name="conduit bien">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">conduit</token>
            </marker>
            <token regexp="yes">bien|mal</token>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="CONDUIT_P" name="conduit + préposition">
        <antipattern>
            <token skip="-1">conduit</token>
            <token postag="P"/>
            <token postag="V.*" postag_regexp="yes">
                <exception postag="V inf"/></token>
        </antipattern>
        <pattern>
            <token>
                <exception regexp="yes">[cmts]es|[mt]on|[mts]a|[nv]otre|[nv]os|leurs|cette|celles?|quelque|une?</exception></token>
            <marker>
                <token skip="-1" postag="V ind pres 3 s">conduit</token>
            </marker>
            <token postag="P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rulegroup name="produit" id="PRODUIT">
        <rule>
            <pattern>
                <token>que</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>produit</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token>sous</token>
                <marker>
                    <token>produit</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>de</token>
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token>produit</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>de</token>
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token>produits</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N m p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>produit</token>
                </marker>
                <token>,</token>
                <token postag="V ind pres 3 s"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <antipattern>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <token>produit</token>
                <token postag="Y" skip="-1"/>
                <token postag="V.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>produit</token>
                </marker>
                <token postag="Y"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NZJ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="V ind pres 3 s" regexp="yes">produit|réduit</token>
                </marker>
                <token postag="A|D.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
    </rulegroup>
    <rule name="inclus" id="INCLUS">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">inclus|inclut|induit</token>
            </marker>
            <token inflected="yes">que</token>
        </pattern>
        <disambig action="filter" postag="V ind.*"/>
    </rule>
    <rulegroup name="continue" id="CONTINUE">
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">continue</token>
                </marker>
                <token postag="P.*" postag_regexp="yes"/>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">continue</token>
                </marker>
                <token postag="P.*" postag_regexp="yes" regexp="yes">en|avec</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D.* s" postag_regexp="yes"/>
                <token postag="N.* s" postag_regexp="yes"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">continue</token>
                </marker>
                <token postag="M fin"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
    </rulegroup>
    <rulegroup name="DURE" id="DURE">
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">&expressions_temps;|&unites_temps;</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dure</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dure</token>
                </marker>
                <token regexp="yes">jusque|jusqu'</token>
                <token regexp="yes">aux?|à</token>
                <token regexp="yes" inflected="yes">&expressions_temps;|&unites_temps;</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dure</token>
                </marker>
                <token>pendant</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes"/>
                <token regexp="yes" inflected="yes">&expressions_temps;|&unites_temps;</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">dure</token>
                </marker>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V (ind|sub|imp).*" postag_regexp="yes">dure</token>
                </marker>
                <token>en</token>
                <token>moyenne</token>
            </pattern>
            <disambig action="filter" postag="V (ind|sub|imp).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJR].*" postag_regexp="yes"/>
                <marker>
                    <token postag="V (ind|sub|imp).*" postag_regexp="yes">dure</token>
                </marker>
                <token postag="A"/>
            </pattern>
            <disambig action="filter" postag="V (ind|sub|imp).*"/>
        </rule>
    </rulegroup>
    <rule name="DURE1" id="DURE1">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">dure</token>
            </marker>
            <token postag="[AYKJ]|D.*" postag_regexp="yes" min="0" max="4">
                <exception>longtemps</exception></token>
            <token regexp="yes" inflected="yes">&expressions_temps;|&unites_temps;|longtemps</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="DURE2" name="dure (verbe)">
        <pattern>
            <marker>
                <token regexp="yes">dure|creuse</token>
            </marker>
            <token postag="D.*" postag_regexp="yes">
                <exception postag="P|P\+.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule name="cuit" id="CUIT">
        <antipattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <token>cuit</token>
            <token postag="A" min="0" max="1"/>
            <token postag="V.*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>cuit</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule name="résident" id="RESIDENT">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>résident</token>
            </marker>
            <token postag="P"/>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule name="plus longtemps" id="PLUS_LONGTEMPS">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token>vive</token>
            </marker>
            <token>plus</token>
            <token>longtemps</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="SAUVE" name="sauve">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*" postag_regexp="yes">sauve</token>
            </marker>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="VIOLENT" name="violent (3 p)">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes" min="0" max="1"/>
            <marker>
                <token postag="V ind pres 3 p">violent</token>
            </marker>
            <token postag="[DJNZ].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 p"/>
    </rule>
    <rule id="DIVISE" name="divise">
        <pattern>
            <token postag="D.*" postag_regexp="yes" min="0" max="1"/>
            <token postag="[ZN].*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">divise|braque</token>
            </marker>
            <token postag="D.*" postag_regexp="yes" min="0" max="1"/>
            <token postag="[NZ].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="RESTE" name="reste">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">reste
                    <exception scope="previous" postag="D.*|P.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule name="plaisanter de" id="PLAISANTER_DE">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">plaisanter</token>
            </marker>
            <token postag="P" regexp="yes">de|d'|des|du</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule name="précise" id="PRECISE">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token regexp="yes">[A-Z].*</token>
            <marker>
                <token postag="V.*" postag_regexp="yes">précise</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rulegroup id="COURT" name="court">
        <!-- TODO: more rules -->
        <rule>
            <pattern>
                <token postag="[NJ].*" postag_regexp="yes"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
                <token postag="A"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">bruit|chien|cheval|délai</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
                <token postag="A" min="0" max="1"/>
                <token>vite</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">me|te|lui|nous|vous</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">route|rue|rumeur</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
                <token regexp="yes">vers|autour</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token>qui</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">court</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes">courir</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes">risque</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" inflected="yes">courir</token>
                </marker>
                <token min="0" max="3" regexp="yes">plus|mois|le|la|les</token>
                <token>vite</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" inflected="yes" skip="1">courir</token>
                </marker>
                <token>long</token>
                <token regexp="yes">de|des|d'|du</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" inflected="yes">courir</token>
                </marker>
                <token skip="1">à</token>
                <token>perte</token>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">couper</token>
                <token>les</token>
                <token>cheveux</token>
                <marker>
                    <token regexp="yes">court|long</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <!-- END: verbs -->
    <rule name="nom" id="NOM">
        <antipattern>
            <token regexp="yes">Les?|La</token>
            <token postag="V.* [123].*" postag_regexp="yes"/>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="[NJ].*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <token postag="SENT_START"/>
            <token regexp="yes">Les?|La</token>
            <marker>
                <token postag="[NJZK].*" postag_regexp="yes">
                    <exception postag="V ppr"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[NJZKD].*"/>
    </rule>
    <!-- Words not tagged in dicollecte -->
    <rule name="adverbes" id="ADVERBES">
        <pattern>
            <marker>
                <token regexp="yes">trop|peu|beaucoup|assez|peut-être</token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rulegroup name="fort" id="FORT">
        <rule>
        <pattern>
            <marker>
                <token>fort</token>
            </marker>
            <token postag="A" min="0" max="3"/>
            <token postag="J.*|V.* ppa.*" postag_regexp="yes"/>
        </pattern>
        <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>fort</token>
                </marker>
                <token postag="A"/>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes">
                    <exception regexp="yes" inflected="yes">être|sembler|para[iî]tre|devenir|sentir</exception>
                </token>
                <token postag="A" min="0" max="3"/>
                <marker>
                    <token>fort</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rulegroup id="LE_LA_PR_OBJ" name="le/la pronom objet">
        <rule>
            <pattern>
                <token regexp="yes">je|tu|ils?|ne</token>
                <marker>
                    <token regexp="yes">l[ae]?|les</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers.*"/>
        </rule>
        <!-- <rule>
            <pattern>
                <token regexp="yes">à|de</token>
                <marker>
                    <token regexp="yes">les?</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>-->
    </rulegroup>
    <rule id="L_UN" name="l'un (pronom)">
        <pattern>
            <token postag="D e s">l'</token>
            <token postag="R . s" postag_regexp="yes" regexp="yes">un|une</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!--  <rule name="UN" id="un">
    <pattern><token postag="D m s">un</token></pattern>
    <disambig postag="D m s"/>
  </rule>-->
    <rule name="mi" id="MI">
        <pattern>
            <marker>
                <token>mi</token>
            </marker>
            <token spacebefore="no">-</token>
            <token postag="[NJY].*" postag_regexp="yes" spacebefore="no">
                <exception regexp="yes">\d</exception></token>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rulegroup id="NEUF" name="neuf">
        <rule>
            <pattern>
                <token postag="D [mfe] (p|sp)" postag_regexp="yes">
                    <exception>de</exception></token>
                <marker>
                    <token regexp="yes">neuf|mille</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="K"/>
        </rule>
        <rule>
            <pattern>
                <token>quoi</token>
                <token>de</token>
                <marker>
                    <token>neuf</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J m s"/>
        </rule>
    </rulegroup>
    <rule name="la (nom)" id="LA_N">
        <pattern>
            <token regexp="yes">un|les?|ce|du|des</token>
            <marker>
                <token>la</token>
            </marker>
        </pattern>
        <disambig postag="N m sp"/>
    </rule>
    <rule id="A_PRIORI" name="a priori (noun/loc adverbial)">
        <pattern>
            <token regexp="yes">ce|cet|un|le</token>
            <marker>
                <token>a</token>
                <token>priori</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd lemma="a priori" pos="N m s"/>
            <wd lemma="a priori" pos="J m s"/>
        </disambig>
    </rule>
    <!-- So that word "faute" (etc) as in "des faute", "une fautes" is marked as
 a noun and not a verb, otherwise we don't find the incorrect
 accord in number -->
    <rulegroup name="nom" id="N">
        <rule>
            <pattern>
                <token regexp="yes">une|quelques|plusieurs</token>
                <marker>
                    <token regexp="yes">étranges?|larges?|drôles?|doubles?|infimes?|triples?|quadruples?|sales?|solides?</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="J [ef] .*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">unes?|quelques|plusieurs</token>
                <marker>
                    <token regexp="yes">étranges?|larges?|drôles?|doubles?|infimes?|triples?|quadruples?|sales?|solides?</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="J [ef] .*"/>
        </rule>
        <rule>
            <!-- TODO: too greedy -->
            <pattern>
                <token regexp="yes">aucunes?|certaines?|différentes?|diverses?|nombreuses|nulle|telles?|une
                    <exception scope="previous" regexp="yes">&apostrophe;</exception></token>
                <marker>
                    <token postag="N [fe] .*" postag_regexp="yes">
                        <exception regexp="yes">est|multiples|si|fine|superbe</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N [fe].*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">aucuns?|certains?|différents?|divers|nombreux|touts|un
                    <exception scope="previous" regexp="yes">&apostrophe;</exception></token>
                <marker>
                    <token postag="N [me] .*" postag_regexp="yes">
                        <exception regexp="yes">est|multiples|si|ayant|nouveau|doux|beau</exception>
                        <exception case_sensitive="yes">Paris</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N [me].*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">chaque|sans|des?|maint|mêmes|moult|nul|plusieurs|quelques
                    <exception scope="previous" regexp="yes">&apostrophe;</exception></token>
                <marker>
                    <token postag="N.*" postag_regexp="yes">
                        <exception regexp="yes">est|multiples|si|petite?s?|mauvais|pires?</exception>
                        <exception inflected="yes">bon</exception>
                        <exception postag="K"/></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (imp|sub|ind) .*"/>
        </rule>
        <rule>
            <!-- "du monde", but du/dû lire-->
            <pattern>
                <token regexp="yes">du|de|d'</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes">
                        <exception regexp="yes">est|multiples|si|petite?s?|mauvais|pires?</exception>
                        <exception inflected="yes">bon</exception>
                        <exception postag="K|V.* inf" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* (imp|sub|ind) .*"/>
        </rule>
    </rulegroup>
    <rule id="DIVERS_J" name="divers (adj, not det)">
        <pattern>
            <unify>
                <feature id="number"/>
                <feature id="gender"/>
                <token postag="N.*" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes" inflected="yes">divers</token>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="DEVINS" name="devins (verbe)">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">devins</token>
            </marker>
            <token postag="[JND].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rule id="AFFINE" name="affine (verbe)">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">affine</token>
            </marker>
            <token min="0" postag="A"/>
            <token postag="[JNDC].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="[NJ].*"/>
    </rule>
    <rule id="DIPOSE" name="dispose (not adjective)">
        <antipattern>
            <token>fraîche</token>
            <token>et</token>
            <token>dispose</token>
        </antipattern>
        <antipattern>
            <token postag="D [fe] s" postag_regexp="yes"/>
            <token>demeure</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">dispose|demeure</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="[JN] .*"/>
    </rule>
    <rulegroup name="été (nom)" id="ETE">
        <rule>
            <pattern>
                <token regexp="yes">cet|en|un|[tsm]on|[nv]otre</token>
                <marker>
                    <token>été</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>l'</token>
                <marker>
                    <token>été</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
    </rulegroup>
    <rule id="MARRE" name="marre">
        <pattern>
            <token regexp="yes">[mst]e</token>
            <marker>
                <token>marre</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule name="quelque chose" id="QUELQUE_CHOSE">
        <pattern>
            <token>quelque</token>
            <marker>
                <token>chose</token>
            </marker>
        </pattern>
        <disambig postag="N m s"/>
    </rule>
    <rule name="quelque peu" id="QUELQUE_PEU">
        <pattern>
            <marker>
                <token>quelque</token>
            </marker>
            <token>peu</token>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rulegroup name="bien entendu" id="BIEN_ENTENDU">
        <rule>
            <pattern>
                <token>bien</token>
                <marker>
                    <token>entendu</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>bien</token>
                </marker>
                <token>entendu</token>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rulegroup name="RP : Pronoms personnels objets" id="RP-PRO_PERS_OBJ">
        <rule name="nous">
            <pattern>
                <token postag="R pers .*" postag_regexp="yes"/>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="le bus nous">
            <pattern>
                <token postag="SENT_START|M fin .*" postag_regexp="yes" skip="1"/>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>nous</token>
                </marker>
                <token>
                    <exception postag="V .+ .+ 1 p" postag_regexp="yes"/></token>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="qui nous">
            <pattern>
                <token regexp="yes">à|de|ne|chez|sur|sans|entre|parmi|tout|pour</token>
                <!--qui|-->
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="Robert nous">
            <pattern>
                <token postag="SENT_START" skip="1"/>
                <token postag="Z.*" postag_regexp="yes"/>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="quelqu'un nous">
            <pattern>
                <token>quelqu</token>
                <token regexp="yes">&apostrophe;</token>
                <token regexp="yes">une?s?</token>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="ça nous">
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes" skip="1"/>
                <token regexp="yes">ça|cela|ceci|ceux-ci|celles?-ci
                    <exception scope="previous" postag="P"/></token>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="que ça nous">
            <pattern>
                <token regexp="yes">quand|que|si|lorsque|où</token>
                <token regexp="yes">ça|cela|ceci|ceux-ci|celles?-ci</token>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="sans_même nous">
            <pattern>
                <token>sans</token>
                <token>même</token>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="L'homme nous parle">
            <pattern>
                <token postag="N . s" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">vous|nous</token>
                </marker>
                <token postag="V .* 3 s" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj .*"/>
            <example type="ambiguous" inputform="nous[nous/R pers obj 1 p,nous/R pers suj 1 p]" outputform="nous[nous/R pers obj 1 p]">L'homme <marker>nous</marker> parle de sa vie.</example>
            <example type="untouched">La plupart du temps nous sommes dans le développement d'une expertise...</example>
        </rule>
        <rule name="Les études nous ont...">
            <pattern>
                <token postag="N . p" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">vous|nous</token>
                </marker>
                <token postag="V .* 3 p" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj .*"/>
            <example type="ambiguous" inputform="nous[nous/R pers obj 1 p,nous/R pers suj 1 p]" outputform="nous[nous/R pers obj 1 p]">Les études <marker>nous</marker> ont révélé...</example>
            <example type="untouched">La plupart du temps nous sommes dans le développement d'une expertise...</example>
        </rule>
        <rule name="puis-je vous">
            <pattern>
                <token regexp="yes">.*-(je|tu|ils?|elles?|on|vous|nous)</token>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="puis-je nous">
            <pattern>
                <token regexp="yes">.*-(je|tu|ils?|elles?|on|vous|nous)</token>
                <marker>
                    <token>nous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 1 p"/>
        </rule>
        <rule name="vous">
            <pattern>
                <token postag="R pers .*" postag_regexp="yes"/>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="le bus vous">
            <pattern>
                <token postag="SENT_START|M fin .*" postag_regexp="yes" skip="1"/>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="qui vous">
            <pattern>
                <token regexp="yes">à|de|ne|chez|sur|sans|entre|parmi|tout|pour</token>
                <!--qui|-->
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="qui vous">
            <pattern>
                <token>qui</token>
                <marker>
                    <token>vous</token>
                </marker>
                <token postag="V .* 2 p" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers suj 2 p"/>
        </rule>
        <rule name="Robert vous">
            <pattern>
                <token postag="SENT_START" skip="1"/>
                <token postag="Z.*" postag_regexp="yes"/>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="quelqu'un vous">
            <pattern>
                <token regexp="yes">quelqu'une?s?</token>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="vous devez le demander">
            <pattern>
                <marker>
                    <token>vous</token>
                </marker>
                <token postag="V.* 2 p" postag_regexp="yes" skip="1"/>
                <token postag="V inf"/>
            </pattern>
            <disambig action="filter" postag="R pers suj 2 p"/>
        </rule>
        <rule name="ça vous">
            <pattern>
                <token postag="SENT_START|M nonfin" postag_regexp="yes" skip="1"/>
                <token regexp="yes">ça|cela|ceci|ceux-ci|celles?-ci
                    <exception scope="previous" postag="P"/></token>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R pers obj 2 p"/>
        </rule>
        <rule name="ce que vous v 3 p">
            <pattern>
                <token>ce</token>
                <token>que</token>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token postag="V.* 3 p" postag_regexp="yes"/>
                <token postag="D . p" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj [12] p"/>
        </rule>
        <rule name="ce que vous V 3 s">
            <pattern>
                <token>ce</token>
                <token>que</token>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token postag="V.* 3 s" postag_regexp="yes"/>
                <token postag="D . s|Z .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj [12] p"/>
        </rule>
        <rule name="ce que ne vous V 3 p">
            <pattern>
                <token>ce</token>
                <token>que</token>
                <token>ne</token>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token postag="V.* 3 p" postag_regexp="yes"/>
                <token regexp="yes">pas|plus</token>
                <token postag="D . p" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj [12] p"/>
        </rule>
        <rule name="ce que vous V 3 s">
            <pattern>
                <token>ce</token>
                <token>que</token>
                <token>ne</token>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token postag="V.* 3 s" postag_regexp="yes"/>
                <token regexp="yes">pas|plus</token>
                <token postag="D . s|Z .*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj [12] p"/>
        </rule>
        <rule name="que ça vous">
            <pattern>
                <token regexp="yes">quand|que|si|lorsque|où</token>
                <token regexp="yes">ça|cela|ceci|ceux-ci|celles?-ci</token>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="sans_même vous">
            <pattern>
                <token>sans</token>
                <token>même</token>
                <marker>
                    <token>vous</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 2 p"/>
        </rule>
        <rule name="se">
            <pattern>
                <marker>
                    <token>s'</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers obj 3 sp"/>
        </rule>
        <rule name="te">
            <pattern>
                <marker>
                    <token>t'</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers obj 2 s"/>
        </rule>
        <rule name="m'">
            <pattern>
                <marker>
                    <token>m'</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers obj 1 s"/>
        </rule>
        <!--<rule name="lui">
            <pattern>
                <marker>
                    <token>lui</token>
                </marker>
            </pattern>
            <disambig postag="R 3 s"/>
        </rule>-->
        <rule>
            <pattern>
                <token postag="P"/>
                <marker>
                    <token>lui</token>
                </marker>
            </pattern>
            <disambig postag="R pers subj 3 m s"/>
            <!-- subj ??? -->
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="R pers obj 3 e s">lui</token>
                </marker>
                <!-- <token min="0">en</token>
                <token postag="V.*" postag_regexp="yes"/>-->
            </pattern>
            <disambig postag="R pers obj 3 e s"/>
        </rule>
        <rule name="lui (R pers)">
            <pattern>
                <token regexp="yes">[lnj]e|tu|ils?|elles?|on|[nv]ous|la</token>
                <marker>
                    <token>lui</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 3 m s"/>
        </rule>
        <rule id="LUI" name="lui (no V ppa)">
            <pattern>
                <token postag="R.*" postag_regexp="yes">lui</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <!-- <rule>
            <pattern>
                <token postag="[NZR].*" postag_regexp="yes"/>
                <marker>
                    <token postag="R pers obj 3 p">leur</token>
                </marker>
            </pattern>
            <disambig postag="R pers obj 3 p"/>
        </rule>-->
        <rule>
            <pattern>
                <token regexp="yes">je|tu|il|elle|nous|vous|ils|elles</token>
                <marker>
                    <token postag="R pers obj 3 e p">leur</token>
                </marker>
                <token postag="V.*[123].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers obj 3 e p"/>
        </rule>
        <rule>
            <pattern>
                <token>ne</token>
                <marker>
                    <token postag="R pers obj 3 e p">leur</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R pers obj 3 e p"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D e s">leur</token>
                </marker>
                <token postag="[NJ].*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="D e s"/>
        </rule>
        <rule name="le/la/les/l'">
            <antipattern>
                <token regexp="yes">elle|elles|nous|vous|.*-même</token>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="[NJ].*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <!-- There is a repetition error -->
                <token inflected="yes">le</token>
                <token inflected="yes">le</token>
            </antipattern>
            <pattern>
                <token postag="R pers suj .*" postag_regexp="yes">
                    <exception regexp="yes">-.*</exception></token>
                <marker>
                    <token postag="R pers obj .*" postag_regexp="yes" regexp="yes">l'|la|le|les</token>
                </marker>
            </pattern>
            <disambig>
                <match no="2" postag_regexp="yes" postag="R pers obj .*"/>
            </disambig>
        </rule>
        <rule name="le/la/les/l'">
            <pattern>
                <token postag="R pers suj .*" postag_regexp="yes" regexp="yes">-.*</token>
                <marker>
                    <token postag="R pers obj .*" postag_regexp="yes" regexp="yes">l'|la|le|les</token>
                </marker>
                <token postag="V.* inf" postag_regexp="yes"/>
            </pattern>
            <disambig>
                <match no="2" postag_regexp="yes" postag="R pers obj .*"/>
            </disambig>
        </rule>
        <rule name="ne + le/la/les/l'">
            <pattern>
                <token postag="R pers suj .*" postag_regexp="yes"/>
                <token>ne</token>
                <marker>
                    <token postag="R pers obj .*" postag_regexp="yes" regexp="yes">l|la|le|les</token>
                </marker>
            </pattern>
            <disambig>
                <match no="3" postag_regexp="yes" postag="R pers obj .*"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup name="RP : Pronoms personnels sujets" id="RP-PRO_PERS_SUJ">
        <!--<rule name="j'">
      <pattern>
        <marker>
          <token>j</token>
        </marker>
      </pattern>
      <disambig postag="R pers suj 1 s"/>
    </rule>-->
        <rule name="tu">
            <pattern>
                <marker>
                    <token>tu</token>
                </marker>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="R pers suj 2 s"/>
        </rule>
        <rule name="si tu">
            <pattern>
                <token>si</token>
                <marker>
                    <token>tu</token>
                </marker>
            </pattern>
            <disambig postag="R pers suj 2 s"/>
        </rule>
        <rule name="si tu">
            <pattern>
                <token postag="R rel.*" postag_regexp="yes"/>
                <marker>
                    <token>tu</token>
                </marker>
            </pattern>
            <disambig postag="R pers suj 2 s"/>
        </rule>
        <rule name="tu te/ne">
            <pattern>
                <marker>
                    <token>tu</token>
                </marker>
                <token regexp="yes">[mntl][e']|la|lui|leur|[nv]ous</token>
            </pattern>
            <disambig postag="R pers suj 2 s"/>
        </rule>
        <rule name="nous a-t-elle">
            <pattern>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token regexp="yes" min="0">le|l'|la|les</token>
                <token postag="V.*" postag_regexp="yes"/>
                <token postag="R pers suj.*" postag_regexp="yes" spacebefore="no"/>
            </pattern>
            <disambig action="filter" postag="R pers obj.*"/>
        </rule>
        <rule name="si nous">
            <antipattern>
                <token postag="V.* 2 p" postag_regexp="yes"/>
                <token>vous</token>
            </antipattern>
            <antipattern>
                <token postag="V.* 1 p" postag_regexp="yes"/>
                <token>nous</token>
            </antipattern>
            <antipattern>
                <token postag="V.* 3 [sp]" postag_regexp="yes"/>
                <token min="0" postag="V ppa.*" postag_regexp="yes"/>
                <token postag="[DZ].*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token regexp="yes">si|quand|pourquoi|comment|où</token>
                <marker>
                    <token regexp="yes">[nv]ous</token>
                </marker>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="0" max="2"/>
                <token postag="V.*" postag_regexp="yes">
                    <exception scope="next" regexp="yes">(-t)?-elles?|-je|-tu|(-t)?-ils?|(-t)?-on|-[vn]ous</exception></token>
            </pattern>
            <disambig action="remove" postag="R pers obj.*"/>
        </rule>
        <rule name="Nous">
            <antipattern>
                <!-- It is "obj" -->
                <token regexp="yes" skip="1">nous|vous</token>
                <token postag="V.* 3 s" postag_regexp="yes"/>
                <token regexp="yes">-t-il|-t-elle|-t-on</token>
            </antipattern>
            <antipattern>
                <token regexp="yes" skip="1">nous|vous</token>
                <token postag="V.* 3 s" postag_regexp="yes"/>
                <token regexp="yes">il|elle</token>
            </antipattern>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token regexp="yes">nous|vous</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R pers suj [12] p"/>
        </rule>
        <rule name="que nous offre la nature">
            <pattern>
                <token>que</token>
                <marker>
                    <token postag="R pers obj [21] p" postag_regexp="yes" regexp="yes">nous|vous</token>
                </marker>
                <token min="0">en</token>
                <token postag="V.* 3 s" postag_regexp="yes" skip="-1"/>
                <!--<token>?</token>-->
            </pattern>
            <disambig action="filter" postag="R pers obj [12] p"/>
        </rule>
        <rule name="que nous">
            <pattern>
                <token>que</token>
                <marker>
                    <token postag="R pers suj [21] p" postag_regexp="yes" regexp="yes">nous|vous</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R pers suj [12] p"/>
        </rule>
        <rule name="nous croyons">
            <pattern>
                <marker>
                    <token>nous</token>
                </marker>
                <token postag="V .* 1 p" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R pers suj 1 p"/>
        </rule>
    </rulegroup>
    <rulegroup name="RP : étais" id="RP-ETAIS">
        <rule name="qui étais">
            <pattern>
                <token>qui</token>
                <marker>
                    <token>étais</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
        <rule name="j'étais">
            <pattern>
                <token postag="R pers suj 1 s" skip="1"/>
                <marker>
                    <token>étais</token>
                </marker>
            </pattern>
            <disambig postag="V etre ind impa 1 s"/>
        </rule>
        <rule name="tu étais">
            <pattern>
                <token skip="1">tu</token>
                <marker>
                    <token>étais</token>
                </marker>
            </pattern>
            <disambig postag="V etre ind impa 2 s"/>
        </rule>
    </rulegroup>
    <rulegroup name="ne + verbe" id="NE_V">
        <rule>
            <pattern>
                <token regexp="yes">ne|je|tu|ils?|on|y|cela|ceci</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig>
                <match no="1" postag_regexp="yes" postag="V.*"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token>n'</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="SON" name="son (nom)">
        <rule>
            <pattern>
                <token regexp="yes">le|un|au|du|[mts]on</token>
                <marker>
                    <token>son</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>son</token>
                </marker>
                <token>de</token>
                <token regexp="yes">cloches?</token>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>son</token>
                </marker>
                <token>d'</token>
                <token regexp="yes">instruments?</token>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
    </rulegroup>
    <rulegroup id="TON_NOM" name="ton (nom)">
        <rule>
            <pattern>
                <unify>
                    <feature id="gender"/>
                    <feature id="number"/>
                    <token regexp="yes" inflected="yes">suggestion|contour|liberté|hauteur|variation|changement|tiers|quart|production|différence|absence|marque|modificatif</token>
                    <unify-ignore>
                        <token>de</token>
                        <marker>
                            <token postag="N m s">ton</token>
                        </marker>    
                    </unify-ignore>
                    <token postag="J.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">suggestion|contour|liberté|hauteur|variation|changement|tiers|quart|production|différence|absence|marque|modificatif</token>
                <token>de</token>
                <marker>
                    <token postag="N m s">ton</token>
                </marker>
                <token postag="V.*[123].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N m s"/>
        </rule>
    </rulegroup>
    <rulegroup name="RP : mon/ton/son" id="RP-MON_TON_SON">
        <rule>
            <pattern>
                <token regexp="yes">le|un|au|du|[mts]on|quel|ce</token>
                <marker>
                    <token regexp="yes">ton|son</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule name="mon">
            <pattern>
                <marker>
                    <token regexp="yes" postag="D e.*" postag_regexp="yes">[mts]on</token>
                </marker>
                <token min="0" postag="A"/>
                <token postag="[NJ].*|V ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="D e.*"/>
        </rule>
    </rulegroup>
    <rule id="AVEC_N" name="avec + verb/nom">
        <pattern>
            <token>avec</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rulegroup name="RP : Négation" id="RP-NEGATION">
        <rule name="pas">
            <pattern>
                <token regexp="yes" skip="3">ne|n'</token>
                <marker>
                    <token regexp="yes">pas|point|plus|jamais</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule name="ne">
            <pattern>
                <marker>
                    <token regexp="yes" skip="3">ne|n'</token>
                </marker>
                <token regexp="yes">pas|point|plus|jamais</token>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rule name="en pensant" id="EN_PENSANT">
        <pattern>
            <marker>
                <token>en</token>
            </marker>
            <token postag="V ppr"/>
        </pattern>
        <disambig action="filter" postag="P"/>
    </rule>
    <rulegroup id="PERSONNE" name="personne">
        <rule>
            <pattern>
                <token postag="P|D f s" postag_regexp="yes"/>
                <marker>
                    <token postag="N f s">personne</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token>ne</token>
                <token min="0" postag="R.*" postag_regexp="yes"/>
                <token postag="V.*[123].*" postag_regexp="yes"/>
                <marker>
                    <token postag="R m s">personne</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R m s"/>
        </rule>
    </rulegroup>
    <rule id="DE_LA_VIE" name="de la vie (adv)">
        <pattern>
            <token>ne</token>
            <token min="0" postag="R.*" postag_regexp="yes"/>
            <token postag="V.*[123].*" postag_regexp="yes"/>
            <marker>
                <token>de</token>
                <token regexp="yes">ma|sa|la|ta</token>
                <token>vie</token>
            </marker>
        </pattern>
        <disambig action="replace">
            <wd pos="A"/>
            <wd pos="A"/>
            <wd pos="A"/>
        </disambig>
    </rule>
    <rule name="Pronoun + verb" id="PRON_VERB">
        <!-- FIXME: this is not precise eg:celui qui l'appui -->
        <pattern>
            <token postag="R .*" postag_regexp="yes"/>
            <token postag="V .*" postag_regexp="yes">
                <exception postag="V .*" postag_regexp="yes" negate_pos="yes"/></token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup name="Pronoun + Pronoun + verb" id="PRON_PRON_VERB">
        <antipattern>
            <token inflected="yes">avoir</token>
            <token postag="V ppa.*" postag_regexp="yes"/>
            <token regexp="yes">.*-même</token>
        </antipattern>
        <rule>
            <antipattern>
                <token>en</token>
                <token regexp="yes">[nv]ous|elles?|lui|eux|[mt]oi</token>
                <token postag="V .*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="R .*" postag_regexp="yes"/>
                <token postag="R .*" postag_regexp="yes"/>
                <token postag="V .*" postag_regexp="yes">
                    <exception postag="V .*" postag_regexp="yes" negate_pos="yes"/></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <antipattern>
                <token postag="R pers .*" postag_regexp="yes" regexp="yes">.*-mêmes?</token>
                <token>les</token>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token postag="P"/>
                <token postag="R pers .*" postag_regexp="yes" regexp="yes">[mt]oi|eux|[nv]ous</token>
                <token postag="R pers .*" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <!--Nous les postes qu'on propose. -->
                <token postag="SENT_START|M nonfin" postag_regexp="yes"/>
                <token postag="R pers .*" postag_regexp="yes" regexp="yes">eux|elles?|[vn]ous</token>
                <token regexp="yes">la|les?|l'|en</token>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="R pers .*" postag_regexp="yes">
                    <exception regexp="yes">y|-.*</exception></token>
                <token postag="R pers .*" postag_regexp="yes"/>
                <token postag="V.* [123].*" postag_regexp="yes">
                    <exception regexp="yes">listes?|machines?|disciplines?|agences?|centres?|types?|massages?|rencontres?|avaries?|élastiques?|ouvrages?|recherches?|places?|choses?|signes?|pilotes?|usines?|extraits?</exception>
                </token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="R.*" postag_regexp="yes">y</token>
                <token postag="R.*" postag_regexp="yes">en</token>
                <token postag="V.*" postag_regexp="yes" inflected="yes">avoir</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="CRAINT" name="craint">
        <pattern>
            <marker>
                <token postag="V ind pres 3 s">craint</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V ind pres 3 s"/>
    </rule>
    <rule id="FAIT_NO_IND" name="fait (not verbe ind)">
        <pattern>
            <token inflected="yes" regexp="yes">être|avoir</token>
            <token min="0" max="4" postag="R.*|A" postag_regexp="yes">
                <exception regexp="yes">que|qu'</exception></token>
            <marker>
                <token regexp="yes">fait|mis
                    <exception scope="previous" postag="R.*" postag_regexp="yes" regexp="yes">[^\-].*</exception></token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ind.*"/>
    </rule>
    <rule id="DIT_NO_IND" name="dit (not verbe ind)">
        <pattern>
            <token inflected="yes" regexp="yes">être|avoir</token>
            <token min="0" max="4" postag="R.*|A" postag_regexp="yes"/>
            <marker>
                <token>dit
                    <exception scope="previous" regexp="yes">il|elle|on</exception></token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V ind.*"/>
    </rule>
    <rulegroup id="DIT" name="dit (verbe)">
        <antipattern>
            <token regexp="yes">plus|mois</token>
            <token>précise</token>
        </antipattern>
        <rule>
            <pattern>
                <marker>
                    <token postag="V (ind|sub).*" postag_regexp="yes" regexp="yes">dit|fait|estime|précise
                        <exception scope="previous" inflected="yes">avoir</exception>
                        <exception scope="previous" regexp="yes">tas|ma|[mts]on|leur</exception>
                        <exception scope="previous" postag="P.*" postag_regexp="yes"/></token>
                </marker>
                <token min="0" max="4" postag="A"/>
                <token regexp="yes">que|qu'|:|tout|à|aux</token>
            </pattern>
            <disambig action="filter" postag="V (ind|sub).*"/>
        </rule>
    </rulegroup>
    <rule id="RIEN" name="rien">
        <antipattern>
            <token regexp="yes">un|le</token>
            <token>rien</token>
        </antipattern>
        <pattern>
            <token>rien</token>
        </pattern>
        <disambig action="filter" postag="R m s"/>
    </rule>
    <rule id="FUT" name="fut">
        <antipattern>
            <token regexp="yes">un|le|au|du</token>
            <token regexp="yes">fut|fût</token>
        </antipattern>
        <pattern>
            <token regexp="yes" postag="V etre sub impa 3 s|V etre ind psim 3 s" postag_regexp="yes">fut|fût</token>
        </pattern>
        <disambig action="filter" postag="V etre sub impa 3 s|V etre ind psim 3 s"/>
    </rule>
    <rule id="DEVENIR" name="devenir">
        <antipattern>
            <token postag="(P\+)?D m s" postag_regexp="yes"/>
            <token>devenir</token>
        </antipattern>
        <pattern>
            <token>devenir</token>
        </pattern>
        <disambig action="filter" postag="V inf"/>
    </rule>
    <rule id="V_IND_PPA" name="ne résout pas">
        <pattern>
            <token>ne</token>
            <marker>
                <and>
                    <token postag="V ind .*" postag_regexp="yes"/>
                    <token postag="V ppa .*" postag_regexp="yes"/>
                </and>
            </marker>
            <token regexp="yes">pas|point|jamais</token>
        </pattern>
        <disambig action="remove" postag="V ppa .*"/>
    </rule>
    <rule id="TRAITER_DE" name="traiter de">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes"/>
            <marker>
                <token postag="V (ind|sub|imp).*" postag_regexp="yes" inflected="yes">traiter</token>
            </marker>
            <token regexp="yes">de|du|des|d'</token>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule id="CONDUIRE_A" name="conduire à">
        <pattern>
            <token postag="[NJZ].*" postag_regexp="yes"/>
            <marker>
                <token postag="V (ind|sub|imp).*" postag_regexp="yes" inflected="yes">conduire</token>
            </marker>
            <token regexp="yes">à|aux</token>
        </pattern>
        <disambig action="filter" postag="V (ind|sub|imp).*"/>
    </rule>
    <rule name="RP : Un + tel + Adj + Nom" id="RP-D_J_AMBIG_N0">
        <antipattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <unify>
                <feature id="number"/>
                <feature id="gender"/>
                <token postag="D.*" postag_regexp="yes" inflected="yes">un</token>
                <token postag="D.*" postag_regexp="yes" inflected="yes">tel</token>
                <token postag="J.*" postag_regexp="yes">
                    <exception regexp="yes">produits?|pie</exception></token>
                <token postag="N.*" postag_regexp="yes">
                    <exception regexp="yes">dans|envers|mais|plus|non|contre|arrières?</exception>
                    <exception inflected="yes" regexp="yes">avoir|être</exception></token>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule name="RP : Det + Adj + Nom" id="RP-D_J_AMBIG_N">
        <antipattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <token postag="J.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token inflected="yes">un</token>
            <token inflected="yes">tel</token>
        </antipattern>
        <pattern>
            <unify>
                <feature id="number"/>
                <feature id="gender"/>
                <token postag="D.*|K.*" postag_regexp="yes">
                    <exception regexp="yes">de|du|d'|des</exception></token>
                <token postag="J.*" postag_regexp="yes">
                    <exception regexp="yes">produits?|pie</exception></token>
                <token postag="N.*" postag_regexp="yes">
                    <exception regexp="yes">dans|envers|mais|plus|non|contre|arrières?</exception>
                    <exception inflected="yes" regexp="yes">avoir|être</exception></token>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="LEUR" name="leur (unusually noun)">
        <pattern>
            <marker>
                <token inflected="yes">leur</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rulegroup id="PRONOM_SUJET_VERB" name="pronom sujet + verb">
        <rule>
            <pattern>
                <token regexp="yes">je|tu|ils?|on</token>
                <token inflected="yes" min="0">ne</token>
                <marker>
                    <token postag="V.* (ind|sub|con).*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* (ind|sub|con).*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">je|tu|ils?|on</token>
                <token inflected="yes" min="0">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" regexp="yes">[lmst][e']|lui|leur|[nv]ous|la|le|les</token>
                <marker>
                    <token postag="V.* (ind|sub|con).*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* (ind|sub|con).*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">je|tu|ils?|on</token>
                <token inflected="yes" min="0">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" regexp="yes">[lmst]'|lui|leur|[nv]ous|la|le|les</token>
                <token postag="R pers obj.*" postag_regexp="yes" regexp="yes">y|en</token>
                <marker>
                    <token postag="V.* (ind|sub|con).*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* (ind|sub|con).*"/>
        </rule>
    </rulegroup>
    <rule name="RP : Det + Nom ambigu" id="RP-D_N_AMBIG">
        <antipattern>
            <token postag="R pers .*" postag_regexp="yes"/>
            <token postag="V .*inf" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token regexp="yes">il|elle|on</token>
            <token min="0">ne</token>
            <token postag="R.*" postag_regexp="yes"/>
            <token postag="V.* 3 s" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token regexp="yes">il|elle|on</token>
            <token>ne</token>
            <token postag="R.*" postag_regexp="yes"/>
            <token postag="V.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token regexp="yes">il|elle|on</token>
            <token min="0">ne</token>
            <token regexp="yes">les?|l'|la</token>
            <token postag="V.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token regexp="yes">il|elle|on</token>
            <token min="0">ne</token>
            <token>leur</token>
            <token postag="V.* 3 s" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token>l'</token>
            <token postag="V.* 3 s" postag_regexp="yes"/>
            <token postag="C coor"/>
            <token>l'</token>
            <token postag="V.* 3 s" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token>qui</token>
            <token>l'</token>
            <token postag="N" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token>tout</token>
            <token postag="V.* 3 s" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <unify>
                <feature id="number"/>
                <feature id="gender"/>
                <token postag="(P\+)?D.*|K" postag_regexp="yes">
                    <exception>même</exception>
                    <exception postag="P"/></token>
                <token postag="N.*|J.*|V ppa.*" postag_regexp="yes">
                    <exception regexp="yes">a|dans|envers|si|cours|fut|plus|avoir|fait|autres?|mais</exception>
                    <exception postag="K"/>
                    <exception postag="J e sp"/></token>
            </unify>
        </pattern>
        <disambig action="filterall"/>
        <example type="untouched">Ils sont parti.</example>
        <example type="untouched">Ça le fait.</example>
        <example type="ambiguous" inputform="livre[livre/N e s,livrer/V imp pres 2 s,livrer/V ind pres 1 s,livrer/V ind pres 3 s,livrer/V sub pres 1 s,livrer/V sub pres 3 s]" outputform="livre[livre/N e s]">Il a enfin publié son <marker>livre</marker>.</example>
    </rule>
    <rulegroup name="RP : Que" id="RP-QUE">
        <rule name="que relatif">
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">que|qu'</token>
                </marker>
            </pattern>
            <disambig postag="R rel e sp"/>
        </rule>
        <rule name="que conjonction sub">
            <pattern>
                <token postag="V.*|A" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">que|qu'</token>
                </marker>
            </pattern>
            <disambig postag="C sub"/>
        </rule>
    </rulegroup>
    <rule name="RP : Indicatif être (suis est sommes)" id="RP-SUIS_EST_SOMMES">
        <pattern>
            <token postag="R pers suj .*|J.*|N.*|A" postag_regexp="yes"/>
            <marker>
                <token postag="V etre ind pres .*" postag_regexp="yes"/>
            </marker>
        </pattern>
        <disambig>
            <match no="2" postag_regexp="yes" postag="V etre ind pres .*"/>
        </disambig>
    </rule>
    <rule id="SOMMER_ETRE" name="sommer être">
        <pattern>
            <marker>
                <token>sommes</token>
            </marker>
            <token spacebefore="no">-nous</token>
        </pattern>
        <disambig action="filter" postag=".* 1 p"/>
    </rule>
    <rule name="RP : Indicatif avoir (as a ont)" id="RP-AS_A_ONT">
        <pattern>
            <token postag="R pers suj .*|J.*|N.*|A" postag_regexp="yes"/>
            <marker>
                <token postag="V avoir ind pres .*" postag_regexp="yes"/>
            </marker>
        </pattern>
        <disambig>
            <match no="2" postag_regexp="yes" postag="V avoir ind pres .*"/>
        </disambig>
    </rule>
    <rule name="assez bien + adj" id="ASSEZ_BIEN_ADJ">
        <pattern>
            <marker>
                <token postag="A" regexp="yes">assez|encore</token>
                <token postag="A">bien</token>
            </marker>
            <token postag="J .*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup name="RP : Être + adj ambigu" id="RP-ETRE_ADJ_AMBIG">
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <marker>
                    <token postag="J.*" postag_regexp="yes">
                        <exception regexp="yes">torse|bien|juste|vite</exception></token>
                </marker>
            </pattern>
            <disambig>
                <match no="2" postag_regexp="yes" postag="J.*"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token postag="A"/>
                <marker>
                    <token postag="J.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig>
                <match no="3" postag_regexp="yes" postag="J.*"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V etre .*" postag_regexp="yes"/>
                <token postag="A"/>
                <token postag="A"/>
                <marker>
                    <token postag="J.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig>
                <match no="4" postag_regexp="yes" postag="J.*"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup name="RB : le la les" id="RB-LE_LA_LES">
        <!-- Even with agreement errors! -->
        <antipattern>
            <token postag="R pers .*" postag_regexp="yes"/>
            <token postag="V .*inf" postag_regexp="yes"/>
        </antipattern>
        <rule>
            <pattern>
                <token postag="V.*[123].*" postag_regexp="yes">
                    <exception postag="R.*|A" postag_regexp="yes"/></token>
                <token min="0" max="3" postag="A"/>
                <marker>
                    <token postag="D.*" postag_regexp="yes" regexp="yes">l'|la|le|les
                        <exception scope="previous" regexp="yes">puis|plus</exception></token>
                </marker>
                <token postag="[NJ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="D.*"/>
            <example type="untouched">Cela la dessert.</example>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*[123].*" postag_regexp="yes"/>
                <token postag="V.* ppa.*" postag_regexp="yes"/>
                <token min="0" max="3" postag="A"/>
                <marker>
                    <token postag="D.*" postag_regexp="yes" regexp="yes">l'|la|le|les
                        <exception scope="previous" regexp="yes">puis|plus</exception></token>
                </marker>
                <token postag="[NJ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="D.*"/>
        </rule>
    </rulegroup>
    <rule name="la_le_les_leur (déterminant)" id="LA_LE_LES_LEUR_D">
        <pattern>
            <token postag="P">
                <exception>comme</exception></token>
            <marker>
                <token regexp="yes">la|les?|leurs?</token>
            </marker>
            <token>
                <exception postag_regexp="yes" postag="V.* inf"/></token>
        </pattern>
        <disambig action="filter" postag="D.*"/>
    </rule>
    <rule id="SUIVANT" name="suivant (préposition)">
        <pattern>
            <marker>
                <token>suivant</token>
            </marker>
            <token postag="[DJ].*" postag_regexp="yes">
                <exception postag="P"/></token>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rulegroup name="RB : Infinitif" id="RB-INFINITIF">
        <!-- TODO: exceptions ?? -->
        <rule name="infinitif être">
            <pattern>
                <marker>
                    <token postag="V etre inf"/>
                </marker>
            </pattern>
            <disambig postag="V etre inf"/>
        </rule>
        <rule name="infinitif avoir">
            <pattern>
                <marker>
                    <token postag="V avoir inf"/>
                </marker>
            </pattern>
            <disambig postag="V avoir inf"/>
        </rule>
    </rulegroup>
    <rulegroup name="RB : Pro pers + V" id="RB-PRO_PERS_V">
        <rule name="je + verbe">
            <pattern>
                <token regexp="yes">je|j'</token>
                <marker>
                    <token postag="V.* 1 s" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* 1 s"/>
        </rule>
        <rule name="tu + verbe">
            <pattern>
                <token>tu</token>
                <marker>
                    <token postag="V.* 2 s" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* 2 s"/>
        </rule>
        <rule name="ne t' + verbe">
            <pattern>
                <token postag="SENT_START"/>
                <token>ne
                    <exception scope="previous" postag_regexp="yes" postag="R pers suj.*"/></token>
                <token>t'</token>
                <marker>
                    <token postag="V.* 2 s" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* 2 s"/>
        </rule>
        <rule name="il/elle/on + verbe ">
            <pattern>
                <token regexp="yes">il|elle|on</token>
                <marker>
                    <token postag="V.* 3 s" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* 3 s"/>
        </rule>
        <rule name="ils/elles + verbe ">
            <pattern>
                <token regexp="yes">ils|elles</token>
                <marker>
                    <token postag="V.* 3 p" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.* 3 p"/>
        </rule>
    </rulegroup>
    <rulegroup id="imperative" name="imperative">
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token inflected="yes">ne</token>
                <token min="0" max="1" regexp="yes">[lmt][e']|[nv]ous|les|la|leur|lui</token>
                <marker>
                    <token postag_regexp="yes" postag="V.* (imp|ppr).*"/>
                </marker>
                <token regexp="yes">pas|plus|jamais|rien</token>
            </pattern>
            <disambig action="filter" postag="V.* (imp|ppr).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token inflected="yes">ne</token>
                <!-- 2 token (not all combinations are possible) -->
                <token postag="R pers obj.*" postag_regexp="yes" min="1" max="2"/>
                <marker>
                    <token postag_regexp="yes" postag="V.* (imp|ppr).*"/>
                </marker>
                <token regexp="yes">pas|plus</token>
            </pattern>
            <disambig action="filter" postag="V.* (imp|ppr).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token>ne</token>
                <!-- 3 token -->
                <token regexp="yes">[mtl]'</token>
                <token regexp="yes">y|en</token>
                <marker>
                    <token postag_regexp="yes" postag="V.* (imp|ppr).*"/>
                </marker>
                <token regexp="yes">pas|plus</token>
            </pattern>
            <disambig action="filter" postag="V.* (imp|ppr).*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token inflected="yes">ne</token>
                <token postag_regexp="yes" postag="R pers obj.*" min="0" max="3"/>
                <marker>
                    <token postag_regexp="yes" postag="V.*"/>
                </marker>
                <token regexp="yes">pas|plus</token>
            </pattern>
            <disambig action="remove" postag="V.* ppa.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag_regexp="yes" postag="V.* [12] s"/>
                </marker>
                <token regexp="yes">-[mt]oi|-[nv]ous|-lui|-leur</token>
            </pattern>
            <disambig action="remove" postag="V.* ind.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token inflected="yes">ne</token>
                <token postag_regexp="yes" postag="R pers obj.*" min="0" max="3"/>
                <marker>
                    <token>dis</token>
                </marker>
                <token>
                    <exception regexp="yes">-je|-tu|-ils?|-elles?|-[nv]ous</exception></token>
            </pattern>
            <disambig action="remove" postag="V.* ind.* [12] s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>suis</token>
                </marker>
                <token regexp="yes">-[mt]oi|-[nv]ous|-lui|-leur</token>
            </pattern>
            <disambig action="add">
                <wd pos="V imp pres 2 s"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="not_imperative" name="not imperative">
        <rule>
            <antipattern>
                <token>
                    <exception postag="R pers suj.*" postag_regexp="yes"/></token>
                <token inflected="yes">ne</token>
                <token postag="R pers obj.*" postag_regexp="yes" min="1" max="3"/>
                <token postag="V .*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token postag="V (etre|avoir).*" postag_regexp="yes"/>
                <token postag="R pers suj.*" postag_regexp="yes"/>
                <token>en</token>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="R pers.*" postag_regexp="yes">
                    <exception regexp="yes">-.*</exception></token>
                <marker>
                    <token postag="V .*" postag_regexp="yes">
                        <exception regexp="yes">-.*|faites</exception></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.* imp .*"/>
        </rule>
    </rulegroup>
    <rule name="RD : ambig J/N" id="RD-ADJ_NOM">
        <antipattern><!--  ces deux personnes n'ont pas très bien gérées le budget -->
            <token inflected="yes">avoir</token>
            <token postag="A"/>
                <token postag="V.* ppa .*" postag_regexp="yes" regexp="yes">.*ée?s?$</token>
        </antipattern>
        <pattern>
            <token postag="A"/>
            <marker>
                <and>
                    <token postag="J.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes">
                        <exception inflected="yes" regexp="yes">point|fait|député|tiens|nuls?|nulles?</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rulegroup name="suivant" id="SUIVANT2"><!--le printemps tant attendu est arrivé -->
        <rule>
            <pattern>
                <token postag="A"/>
                <marker>
                    <and>
                        <token postag="J.*" postag_regexp="yes"/>
                        <token postag="V ppr" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="P"/>    
        </rule>
        <rule>
            <pattern>
                <token postag="A"/>
                <marker>
                    <and>
                        <token postag="J.*" postag_regexp="yes">suivant</token>
                        <token postag="V ppr" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ppr"/>
        </rule>
    </rulegroup>
    <rulegroup id="SI" name="si (noun, adverb, conjunction...)">
        <!-- TODO: needs to be improved -->
        <rule>
            <pattern>
                <marker>
                    <token postag="C sub">si</token>
                </marker>
                <token regexp="yes">possible|nécessaire|besoin</token>
                <token regexp="yes">[\.;,:!\?]</token>
            </pattern>
            <disambig action="filter" postag="C sub"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">je</token>
                <token inflected="yes" min="0" max="1">ne</token>
                <token postag_regexp="yes" postag="R pers obj.*" min="0" max="3"/>
                <marker>
                    <token postag_regexp="yes" postag="V ind.*" regexp="yes">.*is</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V ind.* 2 s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A">si</token>
                </marker>
                <token postag="J.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="C sub">si</token>
                </marker>
                <token postag="R.*" postag_regexp="yes" min="1" max="4"/>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="C sub"/>
        </rule>
        <!-- default: A (it seems the most usual) -->
        <rule>
            <pattern>
                <marker>
                    <token postag="A">si</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <rulegroup id="TOUTES_LES" name="toutes les">
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">tout</token>
                </marker>
                <token inflected="yes">le</token>
            </pattern>
            <disambig action="remove" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="gender"/>
                    <feature id="number"/>
                    <token postag="D.*" postag_regexp="yes" inflected="yes">tout</token>
                    <token postag="D.*" postag_regexp="yes" inflected="yes">le</token>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="TOUT-ADVERB" name="tout (adverb)">
        <rule>
            <pattern>
                <unify>
                    <feature id="gender"/>
                    <feature id="number"/>
                    <token postag="(P\+)?D.*" postag_regexp="yes"/>
                    <unify-ignore>
                        <marker>
                            <token postag="A" regexp="yes">tout|complètement</token>
                        </marker>
                    </unify-ignore>
                    <token postag="[NJ].*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <rulegroup id="ENSEMBLE_A" name="ensemble (adverb)">
        <rule>
            <pattern>
                <marker>
                    <token postag="N m s">ensemble</token>
                </marker>
                <token regexp="yes">de|d'|des</token>
                <token min="0" postag="J .* (p|sp)" postag_regexp="yes"/>
                <token postag="N .* (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">tous|toutes</token>
                <marker>
                    <token postag="A">ensemble</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
    </rulegroup>
    <rule id="PARMI" name="parmi (prep)">
        <!-- rare or old as adverb-->
        <pattern>
            <marker>
                <token regexp="yes">parmi|selon|hors</token>
            </marker>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rule id="DERRIERE" name="derrière (prep)">
        <pattern>
            <marker>
                <token>derrière</token>
            </marker>
            <token min="0">-</token>
            <token regexp="yes">-?(lui|eux|elle|elles|nous|vous|moi|toi|soi)</token>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rulegroup id="PENDANT" name="pendant (prep)">
        <rule>
        <pattern>
            <marker>
                <token>pendant</token>
            </marker>
            <token postag="D.*" postag_regexp="yes"/>
        </pattern>
        <disambig postag="P"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>pendant</token>
                </marker>
                <token regexp="yes">que|qu'</token>
            </pattern>
            <disambig postag="P"/>
        </rule>
        <rule>
            <pattern>
                <token>pendant</token>
                <token>longtemps</token>
            </pattern>
            <disambig postag="P"/>
        </rule>
        <rule>
            <pattern>
                <token>pendant</token>
                <token postag="[YK]|D.*" postag_regexp="yes"/>
                <token inflected="yes" regexp="yes">&unites_temps;</token>
            </pattern>
            <disambig postag="P"/>
        </rule>
    </rulegroup>
    <rule id="DEPUIS" name="depuis (prep)">
        <antipattern>
            <token>depuis</token>
            <token postag="M.*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <token>depuis
                <exception postag="SENT_END"/></token>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rule name="RB : adverbes" id="RB-ADVERBES">
        <!-- TODO: very poor rule -->
        <antipattern>
            <!-- important to recognize "tout" as a D for common agreement errors, as in "toute homme"-->
            <token inflected="yes">tout</token>
            <token postag="J.*" postag_regexp="yes" min="0"/>
            <token postag="N.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token postag="J.*|[YK]|P" postag_regexp="yes"/>
            <token>point</token>
        </antipattern>
        <antipattern>
            <token regexp="yes">tout|frais</token>
            <token regexp="yes">de|d'|des</token>
        </antipattern>
        <antipattern>
            <token regexp="yes">cette|cet</token>
            <token>ensemble</token>
        </antipattern>
        <antipattern>
            <token postag="D [em].*" postag_regexp="yes">
                <exception>de</exception></token>
            <token>bien</token>
        </antipattern>
        <pattern>
            <marker>
                <token postag="A">
                    <exception regexp="yes">causa|puis|soit|comme|fin|si|frais|bas|par-derrière|net|au|même|devant|derrière</exception>
                    <exception scope="previous">se</exception></token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rule name="RP : plus" id="RP-PLUS">
        <pattern>
            <marker>
                <token>plus</token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rule name="RP : moins" id="RP-MOINS">
        <pattern>
            <marker>
                <token>moins</token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rule name="RP : lettre" id="RP-LETTRE">
        <pattern>
            <marker>
                <token>Lettre</token>
            </marker>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rule name="RP : pour" id="RP-POUR">
        <pattern>
            <marker>
                <token>pour</token>
            </marker>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rule name="RP : sur" id="RP-SUR">
        <pattern>
            <marker>
                <token>sur</token>
            </marker>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rule name="Tout sauf" id="TOUT_SAUF">
        <pattern>
            <token>tout</token>
            <marker>
                <token>sauf</token>
            </marker>
        </pattern>
        <disambig postag="P"/>
    </rule>
    <rule name="au + N/V" id="AU_NV">
        <pattern>
            <token regexp="yes">aux?</token>
            <marker>
                <and>
                    <token postag_regexp="yes" postag="V.*"/>
                    <token postag_regexp="yes" postag="[ZNJ].*"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter">
            <match no="2" postag="[ZNJ].*" postag_regexp="yes"/>
        </disambig>
    </rule>
    <rulegroup id="UNUSUAL_ADJECTIVE" name="usually noun not adjective">
        <rule>
            <pattern>
                <token postag="(P.)?D .*" postag_regexp="yes"/>
                <marker>
                    <token postag="N .*" postag_regexp="yes" inflected="yes" regexp="yes">café|vache|top|extra</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="J.*"/>
        </rule>
    </rulegroup>
    <rule name="Cela" id="CELA">
        <pattern>
            <marker>
                <token>Cela
                    <exception scope="previous" regexp="yes">il|elle|on</exception></token>
            </marker>
        </pattern>
        <disambig postag="R dem m s"/>
    </rule>
    <rule name="Nombres + N" id="NOMBRE-N">
        <pattern>
            <token postag="Y"/>
            <marker>
                <and>
                    <token postag_regexp="yes" postag="V .* pres 2 s"/>
                    <token postag_regexp="yes" postag="N .* p"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter">
            <match no="2" postag="N .* p" postag_regexp="yes"/>
        </disambig>
        <example type="untouched">Tu minutes.</example>
        <example type="ambiguous" inputform="minutes[&lt;/S&gt;,minute/N f p,minuter/V ind pres 2 s,minuter/V sub pres 2 s]" outputform="minutes[&lt;/S&gt;,minute/N f p]">5 <marker>minutes</marker></example>
    </rule>
    <rule name="L'Écosse" id="ECOSSE">
        <pattern case_sensitive="yes">
            <token negate_pos="yes" postag="SENT_START"/>
            <marker>
                <token>Écosse</token>
            </marker>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rule name="Suède" id="SUEDE">
        <pattern case_sensitive="yes">
            <token negate_pos="yes" postag="SENT_START"/>
            <marker>
                <token>Suède</token>
            </marker>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rule id="MEME_ADV" name="même adverbe">
        <pattern>
            <token postag="SENT_START|C.*|M nonfin|V.*" postag_regexp="yes"/>
            <marker>
                <token>même</token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rulegroup id="LA_UNE" name="la une (des journaux)">
        <rule>
            <pattern>
                <token>la</token>
                <marker>
                    <token>une</token>
                </marker>
            </pattern>
            <disambig postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token>les</token>
                <marker>
                    <token>unes</token>
                </marker>
            </pattern>
            <disambig postag="N f p"/>
        </rule>
    </rulegroup>
    <!--  <rule id="UNE_DES" name="une des">
    <pattern>
      <token postag="D f s">une</token>
      <marker>
        <token>des</token>
      </marker>
    </pattern>
    <disambig postag="D f p"/>
  </rule>-->
    <rule id="TOMBE" name="tombe (verb)">
        <antipattern>
            <token postag="D f s"/>
            <token>tombe</token>
        </antipattern>
        <antipattern>
            <token>tombe</token>
            <token regexp="yes">de|d'|du</token>
        </antipattern>
        <pattern>
            <token postag="V.*" postag_regexp="yes">tombe</token>
        </pattern>
        <disambig action="remove" postag="N f s"/>
    </rule>
    <rule id="JUGE" name="juge (verb)">
        <antipattern>
            <token postag="D m s"/>
            <token>juge</token>
        </antipattern>
        <antipattern>
            <token>juge</token>
            <token regexp="yes">de|d'|du</token>
        </antipattern>
        <pattern>
            <token postag="V.*" postag_regexp="yes">juge</token>
        </pattern>
        <disambig action="remove" postag="N [em] s"/>
    </rule>
    <rule id="AMENE" name="amène">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">amène</token>
            </marker>
            <token min="0">à</token>
            <token postag="(P\+)*D.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="J e s"/>
    </rule>
    <rulegroup id="FAIT2" name="fait">
        <!-- TODO: "le fait" is ambiguous -->
        <rule>
            <pattern>
                <token regexp="yes">qui|il|elle|on|lui|[mtns]e</token>
                <token min="0" max="1" regexp="yes">les?|la|[mts]e|[nv]ous|leur</token>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">il|elle|on|qui|à</token>
                <token postag="A"/>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ppa m s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">il|elle|on|qui|à</token>
                <token postag="A"/>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <pattern>
                <token>ça</token>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <!-- TODO: generalize -->
            <pattern>
                <!--<token regexp="yes">une?</token>-->
                <marker>
                    <token postag="V ind pres 3 s" skip="3">fait</token>
                </marker>
                <token regexp="yes">(\d.*)?(m|cm|mm|diamètre|.*mètres?|haut|long|large)</token>
            </pattern>
            <disambig action="filter" postag="V ind pres 3 s"/>
        </rule>
        <rule>
            <!-- fait partie, fait peur -->
            <pattern>
                <marker>
                    <token postag="V ind.*" postag_regexp="yes">fait
                        <exception scope="previous" inflected="yes">avoir</exception>
                        <exception scope="previous" regexp="yes">tas|ma</exception>
                        <exception scope="previous" postag="P.*" postag_regexp="yes"/></token>
                </marker>
                <token min="0" max="4" postag="A|R.*" postag_regexp="yes"/>
                <token regexp="yes">partie|peur</token>
            </pattern>
            <disambig action="filter" postag="V ind.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind.*" postag_regexp="yes">fait
                        <exception scope="previous" inflected="yes">avoir</exception>
                        <exception scope="previous" regexp="yes">tas|ma</exception>
                        <exception scope="previous" postag="P.*" postag_regexp="yes"/></token>
                </marker>
                <token min="0" max="4" postag="A|R.*" postag_regexp="yes"/>
                <token postag="V.* inf.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V ind.*" postag_regexp="yes" regexp="yes">fait|mis
                        <exception scope="previous" inflected="yes">avoir</exception>
                        <exception scope="previous" regexp="yes">tas|ma</exception>
                        <exception scope="previous" postag="P.*" postag_regexp="yes"/></token>
                </marker>
                <token min="0" max="4" postag="A"/>
                <token postag="D.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V ind.*"/>
        </rule>
    </rulegroup>
    <!-- <rule id="FORTE" name="forte">
        <pattern>
            <marker>
                <token>forte</token>
            </marker>
        </pattern>
        <disambig postag="J f s"/>
    </rule>-->
    <rulegroup id="UN_DES" name="un des">
        <rule>
            <pattern>
                <token regexp="yes">une?|celui|celle|ceux|celles
                    <exception scope="previous">numéro</exception></token>
                <marker>
                    <token postag="P.D e p" postag_regexp="yes">des</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="P.D e p"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">être</token>
                <token min="0">pas</token>
                <marker>
                    <token postag="P.D e p" postag_regexp="yes">des</token>
                </marker>
                <token regexp="yes">plus|moins</token>
            </pattern>
            <disambig action="filter" postag="P.D e p"/>
        </rule>
    </rulegroup>
    <rulegroup name="en fait" id="EN_FAIT">
        <rule>
            <pattern>
                <token>
                    <exception postag="Z.*" postag_regexp="yes"/>
                    <exception regexp="yes">il|elle|n'</exception>
                    <exception postag="[NJR].*" postag_regexp="yes"/></token>
                <marker>
                    <token>en</token>
                </marker>
                <token>fait</token>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="Z.*" postag_regexp="yes"/>
                    <exception regexp="yes">il|elle|on|n'</exception>
                    <exception postag="R.*" postag_regexp="yes" regexp="yes">.*'</exception></token>
                <token>en</token>
                <marker>
                    <token>fait</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rule id="COUR" name="cour">
        <pattern>
            <marker>
                <token inflected="yes">cour</token>
            </marker>
            <token regexp="yes">de|d'</token>
            <token regexp="yes">cassation|justice|comptes|appel|droit|strasbourg</token>
        </pattern>
        <disambig action="filter" postag="N f.*"/>
    </rule>
    <rule id="COMPTE_TENU" name="compte tenu">
        <pattern>
            <marker>
                <token>compte</token>
            </marker>
            <token>tenu</token>
        </pattern>
        <disambig postag="N m s"/>
    </rule>
    <!--<rule id="JAVA" name="Java">
    <pattern case_sensitive="yes">
      <marker>
        <token>Java</token>
      </marker>
    </pattern>
    <disambig postag="Z m s"/>
  </rule>-->
    <rule id="MAIS" name="mais">
        <antipattern>
            <token postag="D (e|m) p" postag_regexp="yes"/>
            <token>mais</token>
        </antipattern>
        <pattern>
            <token>mais</token>
        </pattern>
        <disambig action="remove" postag="N m p"/>
    </rule>
    <rule id="VIRGINIE" name="Virginie">
        <pattern case_sensitive="yes">
            <marker>
                <token>Virginie</token>
            </marker>
        </pattern>
        <disambig postag="Z f s"/>
    </rule>
    <rulegroup id="RENE" name="René">
        <rule>
            <pattern case_sensitive="yes">
                <token>René</token>
            </pattern>
            <disambig postag="Z m s"/>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token>Renée</token>
            </pattern>
            <disambig postag="Z f s"/>
        </rule>
    </rulegroup>
    <rulegroup id="AUTOUR" name="Autour">
        <rule>
            <pattern>
                <token>un</token>
                <marker>
                    <token>autour</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>l'</token>
                <marker>
                    <token>autour</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception postag="D.*" postag_regexp="yes"/></token>
                <marker>
                    <token>autour</token>
                </marker>
                <token regexp="yes">de|d'|du|des</token>
            </pattern>
            <disambig action="replace" postag="P"/>
        </rule>
    </rulegroup>
    <rule id="JURA" name="Jura">
        <pattern>
            <token regexp="yes">le|du</token>
            <marker>
                <token regexp="yes">(?-i)Jura</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="Z.*"/>
    </rule>
    <rule id="DECL_SUR_HONNEUR" name="declaration sur l’honneur">
        <!-- TODO: move to multiwords -->
        <pattern>
            <token regexp="yes">attestation|déclaration</token>
            <token>sur</token>
            <token>l'</token>
            <marker>
                <token>honneur</token>
            </marker>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rulegroup id="BITE" name="bite">
        <rule>
            <pattern>
                <token regexp="yes">il|elle|on|ne</token>
                <marker>
                    <token>bite</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">tu|ne</token>
                <marker>
                    <token>bites</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[mlts]a|belle|leur|longue|notre|votre|grande|grosse|petite</token>
                <marker>
                    <token>bite</token>
                </marker>
            </pattern>
            <disambig postag="N f s"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">les|belles|leurs|longues|votres|nos|grosses|grandes|petites</token>
                <marker>
                    <token>bites</token>
                </marker>
            </pattern>
            <disambig postag="N f p"/>
        </rule>
    </rulegroup>
    <rule id="DON_JUAN" name="don Juan">
        <pattern>
            <token>don</token>
            <token>Juan</token>
        </pattern>
        <disambig action="replace">
            <wd pos="N m sp"/>
            <wd pos="N m sp"/>
        </disambig>
    </rule>
    <rulegroup id="PUIS" name="puis">
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token>Puis</token>
                </marker>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>,</token>
                <marker>
                    <token>puis</token>
                </marker>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">une?</token>
                <marker>
                    <token>puis</token>
                </marker>
                <token postag="D e p"/>
            </pattern>
            <disambig postag="C coor"/>
        </rule>
        <rule>
            <pattern>
                <token>
                    <exception>ne</exception>
                    <exception postag="R.*" postag_regexp="yes"/></token>
                <marker>
                    <token>puis</token>
                </marker>
                <token>
                    <exception postag="R.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="remove" postag="V ind pres 1 s"/>
        </rule>
    </rulegroup>
    <rulegroup id="METTEUR_EN_SCENE" name="metteur en scène">
        <rule>
            <pattern>
                <token>metteur</token>
                <token>en</token>
                <marker>
                    <token>scène</token>
                </marker>
            </pattern>
            <disambig postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token>metteurs</token>
                <token>en</token>
                <marker>
                    <token>scène</token>
                </marker>
            </pattern>
            <disambig postag="N m p"/>
        </rule>
    </rulegroup>
    <rule id="MUSTANG" name="Mustang, Jaquar">
        <!-- With an upppercase, it is the name of a car and not the animal. -->
        <pattern>
            <token>
                <exception postag="SENT_START"/></token>
            <token regexp="yes">(?-i)Mustang|Jaguar</token>
        </pattern>
        <disambig postag="N f s"/>
    </rule>
    <rulegroup id="A_PRESENT" name="à présent">
        <rule>
            <pattern>
                <marker>
                    <token>à</token>
                </marker>
                <token>présent</token>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>à</token>
                <marker>
                    <token>présent</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rulegroup id="PAR_CONSEQUENT" name="par conséquent">
        <rule>
            <pattern>
                <marker>
                    <token>par</token>
                </marker>
                <token>conséquent</token>
            </pattern>
            <disambig postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>par</token>
                <marker>
                    <token>conséquent</token>
                </marker>
            </pattern>
            <disambig postag="A"/>
        </rule>
    </rulegroup>
    <rule id="EN_PERMANENCE" name="en permanence">
        <pattern>
            <token>en</token>
            <marker>
                <token regexp="yes">permanence|rien</token>
            </marker>
        </pattern>
        <disambig postag="A"/>
    </rule>
    <rulegroup id="DERNIER_CRI" name="dernier cri">
        <rule>
            <!-- as invariant adjective-->
            <pattern>
                <token postag="[NJ].*|V etre.*" postag_regexp="yes"/>
                <marker>
                    <token>dernier</token>
                    <token>cri</token>
                </marker>
            </pattern>
            <disambig action="replace">
                <wd lemma="dernier crie" pos="J e sp"/>
                <wd lemma="dernier crie" pos="J e sp"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="(P\+)=D.*" postag_regexp="yes"/>
                <marker>
                    <token postag="J m s">dernier</token>
                    <token postag="N m s">cri</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="BON_MARCHE" name="bon marché">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">bon|meilleur</token>
                </marker>
                <token>marché</token>
            </pattern>
            <disambig postag="J e sp"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">bon|meilleur</token>
                <marker>
                    <token>marché</token>
                </marker>
            </pattern>
            <disambig postag="J e sp"/>
        </rule>
    </rulegroup>
    <rule id="TRIENT" name="Trient">
        <pattern>
            <token regexp="yes">d[eu]</token>
            <marker>
                <token case_sensitive="yes">Trient</token>
            </marker>
        </pattern>
        <disambig postag="N e sp"/>
    </rule>
    <rule id="BOSSONS" name="Bossons">
        <pattern>
            <token>des</token>
            <marker>
                <token case_sensitive="yes">Bossons</token>
            </marker>
        </pattern>
        <disambig postag="N e sp"/>
    </rule>
    <rule id="VIENNE" name="Vienne">
        <pattern>
            <token>à</token>
            <marker>
                <token case_sensitive="yes">Vienne</token>
            </marker>
        </pattern>
        <disambig postag="Z e sp"/>
    </rule>
    <rulegroup id="NOM_S_SP" name="nom s/sp">
        <rule>
            <pattern>
                <token postag="D m s"/>
                <marker>
                    <token postag="N m sp">prix</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="N m s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="D [me] p" postag_regexp="yes"/>
                <marker>
                    <token postag="N m sp">prix</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="N m p"/>
        </rule>
    </rulegroup>
    <rulegroup id="PROBABLE_NOUN" name="usually noun after determiner: faute, cours">
        <!-- even with agreement errors-->
        <rule>
            <pattern>
                <token postag="(P\+)?D.*|K" postag_regexp="yes"/>
                <token postag="N.*" postag_regexp="yes" regexp="yes">fautes?|cours|reste|véhicules?|politiques?|présidente?s?</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="(P\+)?D.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">fait|manque</token>
                </marker>
                <token regexp="yes">de|du|d'
                    <exception postag="A"/></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">routes?</token>
                </marker>
                <token regexp="yes">de|du|d'
                    <exception postag="A"/></token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
    </rulegroup>
    <rule id="PRONOM_VERB" name="se montre">
        <antipattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="[NJZ].*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token postag="R pers.*" postag_regexp="yes" regexp="yes">.*-mêmes?</token>
            <token>les</token>
        </antipattern>
        <antipattern>
            <token>le</token>
            <token>nombre</token>
        </antipattern>
        <antipattern>
            <!-- Les HP sont elles égales ? -->
            <token postag="V (avoir|etre).* 3 ." postag_regexp="yes"/>
            <token min="0" max="1">,</token>
            <token regexp="yes">elles</token>
            <token postag="V.* (ind|sub).*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <!-- Mangent-ils la pomme ? -->
            <token postag="V.* (ind|con|sub).*" postag_regexp="yes"/>
            <token min="0" max="1">,</token>
            <token postag="R pers suj.*" postag_regexp="yes"/>
            <token regexp="yes">la|les?|l'</token>
            <token postag="N.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token postag="P"/>
            <token regexp="yes">elles?|eux</token>
            <token>le</token>
            <token postag="V.* (ind|sub).*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token postag="SENT_START"/>
            <token regexp="yes" min="0" max="1">["«]</token>
            <token>se</token>
            <token postag="V.* (ind|sub).*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
        </antipattern>
        <pattern>
            <token postag="R pers.*" postag_regexp="yes">
                <exception regexp="yes">-.*|.*-.*</exception></token>
            <marker>
                <token postag="V.* (ind|sub).*" postag_regexp="yes"/>
            </marker>
        </pattern>
        <disambig action="remove" postag="[NJZ].*|V ppa.*"/>
    </rule>
    <rule id="GRAND_J" name="grand et adjectif">
        <pattern>
            <token postag="J m s">grand</token>
            <token postag="N m s" regexp="yes">max(imum)?</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="CHER" name="cher">
        <rule>
            <!--<antipattern>
                <token regexp="yes" inflected="yes" skip="-1">payer|coûter|valoir</token>
                <token postag="V.*" postag_regexp="yes" skip="-1"/>
                <token>cher</token>
            </antipattern>-->
            <pattern>
                <token regexp="yes" inflected="yes" skip="-1">payer|coûter|valoir</token>
                <marker>
                    <token>cher</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token>pour</token>
                <token postag="A" min="0" max="1"/>
                <token>pas</token>
                <token postag="A" min="0" max="1"/>
                <marker>
                    <token>cher</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V (ind|sub|con).*" postag_regexp="yes">
                    <exception postag="N.*" postag_regexp="yes"/></token>
                <token>pas</token>
                <marker>
                    <token>cher</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.* inf" postag_regexp="yes" skip="1">
                    <exception postag="N.*" postag_regexp="yes"/></token>
                <token>pas</token>
                <marker>
                    <token>cher</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="A"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">
                        <exception postag="V.*" postag_regexp="yes"/></token>
                    <token postag="A"/>
                    <token postag="J.*" postag_regexp="yes" regexp="yes">chers?|chères?</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[^a-z].*</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
                <token>pas</token>
                <token postag="J.*" postag_regexp="yes" regexp="yes">chers?|chères?</token>
            </pattern>
            <disambig action="remove" postag="V ind pres 2 s"/>
        </rule>
    </rulegroup>
    <rule id="FAIRE_CAMPAGNE" name="faire campagne">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">faire</token>
                <token postag="N f s" regexp="yes">connaissance|campagne</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="N_COMMUNISTE" name="nom et adjectif communiste">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">communistes?</token>
            </marker>
            <token>de</token>
        </pattern>
        <disambig action="filter" postag="J.*"/>
    </rule>
    <rulegroup id="CERTAINS" name="certains">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">certaine?s?
                        <exception scope="previous" postag="D.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="R pers obj.*" postag_regexp="yes"/>
                <token postag="V.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">certaine?s?</token>
                </marker>
                <token>parler</token>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="CITE" name="cité">
        <rule>
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">citée?s?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="J.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="J.*" postag_regexp="yes">
                    <exception postag="N.*" postag_regexp="yes"/>
                </token>
                <marker>
                    <token>cité</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N f s"/>
        </rule>
    </rulegroup>
    <rule id="CAR" name="car">
        <antipattern>
            <token postag="D m s|D e s" postag_regexp="yes"/>
            <token postag="[AJ].*" postag_regexp="yes"/>
            <token>car</token>
        </antipattern>
        <pattern>
            <marker>
                <token>car</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="C coor"/>
    </rule>
    <rule id="FACILITE" name="facilité">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="A" min="0" max="3"/>
            <marker>
                <token regexp="yes">facilités?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="SE_SAVOIR" name="se savoir">
        <pattern>
            <token>se</token>
            <marker>
                <token postag="V.*" postag_regexp="yes">savoir</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="METRES_COURSE" name="mètres dans une course">
        <pattern>
            <token postag="Y"/>
            <token postag="N m s">mètres</token>
            <token postag="J f s" regexp="yes">féminin|masculin</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="COTE_NOM" name="côté nom">
        <pattern>
            <token postag="[JD].*" postag_regexp="yes"/>
            <marker>
                <token regexp="yes">c[oô]t[ée]</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="GAGNE" name="gagne">
        <pattern>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*" postag_regexp="yes">gagne</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rulegroup id="NOMINAL_GROUPS" name="nonimal groups">
        <antipattern>
            <token inflected="yes">avoir</token>
            <token postag="V.* ppa.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token inflected="yes">avoir</token>
            <token>été</token>
            <token postag="V.* ppa.*" postag_regexp="yes"/>
        </antipattern>
        <antipattern>
            <token regexp="yes">ça|cela</token>
            <token>le</token>
            <token>fait</token>
        </antipattern>
        <!-- det + adj + noun -->
        <rule>
            <pattern>
                <token postag="D m s"/>
                <token postag="J [em] (s|sp)|V ppa m s" postag_regexp="yes"/>
                <token postag="N [em] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f s"/>
                <token postag="J [ef] (s|sp)|V ppa f s" postag_regexp="yes"/>
                <token postag="N [ef] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e s"/>
                <token postag="J [em] (s|sp)|V ppa m s" postag_regexp="yes"/>
                <token postag="N m (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e s"/>
                <token postag="J [ef] (s|sp)|V ppa f s" postag_regexp="yes"/>
                <token postag="N f (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D m p"/>
                <token postag="J [em] (p|sp)|V ppa m p" postag_regexp="yes"/>
                <token postag="N [em] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f p"/>
                <token postag="J [ef] (p|sp)|V ppa f p" postag_regexp="yes"/>
                <token postag="N [ef] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="J [em] (p|sp)|V ppa m p" postag_regexp="yes"/>
                <token postag="N m (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="J [ef] (p|sp)|V ppa f p" postag_regexp="yes"/>
                <token postag="N f (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <!-- det + noun + adj -->
        <rule>
            <pattern>
                <token postag="D m s"/>
                <token postag="N [em] (s|sp)" postag_regexp="yes"/>
                <token postag="J [em] (s|sp)|V ppa m s" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f s"/>
                <token postag="N [ef] (s|sp)" postag_regexp="yes"/>
                <token postag="J [ef] (s|sp)|V ppa f s" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e s"/>
                <token postag="N m (s|sp)" postag_regexp="yes"/>
                <token postag="J [em] (s|sp)|V ppa m s" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e s"/>
                <token postag="N f (s|sp)" postag_regexp="yes"/>
                <token postag="J [ef] (s|sp)|V ppa f s" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D m p"/>
                <token postag="N [em] (p|sp)" postag_regexp="yes"/>
                <token postag="J [em] (p|sp)|V ppa m p" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f p"/>
                <token postag="N [ef] (p|sp)" postag_regexp="yes"/>
                <token postag="J [ef] (p|sp)|V ppa f p" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="N [me] (p|sp)" postag_regexp="yes"/>
                <token postag="J [em] (p|sp)|V ppa m p" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="N [fe] (p|sp)" postag_regexp="yes"/>
                <token postag="J [ef] (p|sp)|V ppa f p" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <!-- det + noun -->
        <rule>
            <pattern>
                <token postag="D m s"/>
                <token postag="N [em] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f s"/>
                <token postag="N [ef] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e s"/>
                <token postag="N m (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <antipattern>
                <token>qui</token>
                <token>l'</token>
                <token postag="N f s"/>
            </antipattern>
            <pattern>
                <token postag="D e s">
                    <exception>mon</exception></token>
                <token postag="[ZN] f (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D m p"/>
                <token postag="N [em] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D f p"/>
                <token postag="N [ef] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="N m (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D e p"/>
                <token postag="N f (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <!-- adjective + noun -->
        <rule>
            <antipattern>
                <token inflected="yes">avoir</token>
                <token postag="V ppa [me] (s|sp)" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="(J|V ppa) [me] (s|sp)" postag_regexp="yes"/>
                <token postag="N [em] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MS"/>
                <wd pos="_GN_MS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="(J|V ppa) [fe] (s|sp)" postag_regexp="yes"/>
                <token postag="N [ef] (s|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FS"/>
                <wd pos="_GN_FS"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="(J|V ppa) [me] (p|sp)" postag_regexp="yes"/>
                <token postag="N [em] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="(J|V ppa) [fe] (p|sp)" postag_regexp="yes"/>
                <token postag="N [ef] (p|sp)" postag_regexp="yes"/>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_FP"/>
                <wd pos="_GN_FP"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N m p"/>
                <token>de</token>
                <token postag="N.*" postag_regexp="yes"/>
                <token>,</token>
            </pattern>
            <disambig action="add">
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
                <wd pos="_GN_MP"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup id="PROBABLE_VERBE" name="verb probable">
        <antipattern>
            <token regexp="yes">anagramme|arrière|plastiques?</token>
        </antipattern>
        <!-- Alert: it could be too greedy, move down -->
        <rule>
            <pattern>
                <token>j</token>
                <marker>
                    <token postag="V.*1 s" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*1 s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="[NJZ].*|V ppa.*" postag_regexp="yes">
                    <exception postag="[NJZ].*|V ppa.*|_GN_.*" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="V (ind|sub) pres 3 ." postag_regexp="yes">
                        <exception scope="previous" regexp="yes">&prefixes;</exception>
                        <exception>fait</exception>
                        <exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="A" min="0"/>
                <token postag="D.*" postag_regexp="yes">
                    <exception postag="P.*" postag_regexp="yes"/></token>
                <token postag="J.*|D.*" postag_regexp="yes" min="0" max="1"/>
                <token postag="[NZ].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V (ind|sub) pres 3 ."/>
            <example type="untouched">une nouvelle piste d'atterrissage spécialement aménagée</example>
        </rule>
        <rule>
            <antipattern>
                <token inflected="yes">être</token>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token>président</token>
                <token regexp="yes">aux?|des?|d'|du</token>
                <token postag="D.*" postag_regexp="yes" min="0" max="1"/>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token postag="N . s" postag_regexp="yes"/>
                <token postag="V .* 3 p" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token postag="D.*" postag_regexp="yes"/>
                <token postag="J.*" postag_regexp="yes">
                    <exception postag="N.*" postag_regexp="yes"/></token>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token inflected="yes" regexp="yes">avoir|faire</token>
                <token postag="A" min="0" max="3"/>
                <token postag="N.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="[NJZ].*|V ppa.*" postag_regexp="yes">
                    <exception postag="[NJZ].*|V ppa.*|_GN_.*" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="V (ind|sub) pres 3 ." postag_regexp="yes">
                        <exception scope="previous" regexp="yes">&prefixes;</exception>
                        <exception regexp="yes">politique|dure|adjoint|interdit|externe|fait|style|antique|casa|critique|orange|pratique|secrète|poche|cousine|référence|marchandise|dièse|lourde|positive|précise|maudit|inverse|absente|anglaise|audience|architecture|historia|parfait|vive|concrète</exception>
                        <exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="A" min="0"/>
                <token postag="M.*|P" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V (ind|sub) pres 3 ."/>
            <example type="untouched">Sa conclusion s'est avérée fausse.</example>
        </rule>
        <rule>
            <antipattern>
                <token inflected="yes">être</token>
                <token postag="V ppa.*" postag_regexp="yes"/>
            </antipattern>
            <pattern>
                <token postag="[NJZ].*|V ppa.*" postag_regexp="yes">
                    <exception postag="[NJZ].*|V ppa.*|_GN_.*" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="V (ind|sub) pres 3 s" postag_regexp="yes">
                        <exception scope="previous" regexp="yes">&prefixes;</exception>
                        <exception>fait</exception>
                        <exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="R pers suj 3 . s" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V (ind|sub) pres 3 s"/>
        </rule>
    </rulegroup>
    <rulegroup name="RB : Préposition" id="PREPOSITIONS">
        <rule>
            <pattern>
                <and>
                    <token postag="P">
                        <exception regexp="yes">de|d'|du|des</exception></token>
                    <token postag="_GN_.*" postag_regexp="yes"/>
                </and>
            </pattern>
            <disambig action="remove" postag="P"/>
        </rule>
        <rule>
            <!--TODO: too greedy, exceptions? plein? -->
            <antipattern>
                <token postag="N.*" postag_regexp="yes"/>
                <token>excepté</token>
            </antipattern>
            <antipattern>
                <token>en</token>
                <token>plein</token>
                <token postag="[ZJN].*" postag_regexp="yes"/>
            </antipattern>
            <antipattern>
                <token regexp="yes">toute?s?|tous</token>
                <token>plein</token>
            </antipattern>
            <pattern>
                <marker>
                    <token postag="P">
                        <exception regexp="yes">attendu|courant|passé|comme|suivant|plein</exception>
                        <exception scope="previous" regexp="yes">.*'</exception>
                        <exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig postag="P"/>
        </rule>
    </rulegroup>
    <rule name="que nom verbe" id="QUE_NOUN_VERB">
        <!-- FIXME: too general? -->
        <pattern>
            <token>que</token>
            <token postag="D.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*|J.*" postag_regexp="yes">
                    <exception>oranges</exception>
                    <exception postag="_GN_.*" postag_regexp="yes"/>
                    <exception scope="next" postag="V.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <!-- CATEGORY: complementary rules -->
    <rulegroup name="abréviation point" id="ABREVIATION_POINT">
        <rule>
            <pattern>
                <token regexp="yes">[a-z][a-z][a-z]?</token>
                <token spacebefore="no" regexp="yes">[\.\-]</token>
                <token regexp="yes">[a-z][a-z][a-z]?</token>
                <token spacebefore="no">.</token>
                <token regexp="yes" case_sensitive="yes">[a-z].*</token>
            </pattern>
            <disambig action="remove" postag="SENT_END"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" case_sensitive="yes">ambass|assoc|ch|pr|collab|commiss|cons|coord|dép|dir|gér|secour|sén|gén|abrév|ac|adj|adr|anon|app|append|av|auj|bibl|bibliogr|bdc|boul|bull|bur|cap|caar|cat|cell|chap|cir|comm?|compl|cf|corres|dest|dict|div|doc|dom|dr|édit|édif|éd|électr|élém|encycl|ex|fig|fl|hab|graph|hist|hyp|ill-imm-imp|impr|incl|inc|ind|in[gtvf]|jur|lat|litt|liq|loc|liv|livr|méd|mém|pl|réd|rel|sc|suiv|sup|suppl|trad|univ|mus|pharm|soc|pol|compt|urb|act|compos|confect|exp|réal|prov|introd|inv|tial|enr|ép|équiv|esp|étym|excl|exc|ap|arr|arch|art|ass|adv|al|anc|angl|ann|gest|gouv|min|prés|rect|représ|resp|scrut|vol|coll|réf|id|sqq?|janv|fév|avr|juill|sept|oct|nov|déc|admin</token>
                <token spacebefore="no">.</token>
            </pattern>
            <disambig action="remove" postag="SENT_END"/>
        </rule>
    </rulegroup>
    <rulegroup id="NOMS_EPICENES" name="noms épicènes">
        <antipattern>
            <token>(</token>
            <token>les</token>
        </antipattern>
        <rule>
            <pattern>
                <marker>
                    <token postag="N m s"/>
                </marker>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <token regexp="yes">es|e</token>
            </pattern>
            <disambig action="replace" postag="N e s"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N e s"/>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <marker>
                    <token postag="N e s" regexp="yes">es|e</token>
                </marker>
                <token regexp="yes">[\]\)\-\.\·]</token>
                <token postag="N e s" regexp="yes">s</token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N e s"/>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <marker>
                    <token regexp="yes">[a-z].*</token>
                </marker>
                <token regexp="yes">[\]\)\-\.\·]</token>
                <token>s</token>
            </pattern>
            <disambig action="replace" postag="N e s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N e s"/>
                </marker>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <token regexp="yes">[a-z].*</token>
                <token regexp="yes">[\]\)\-\.\·]</token>
                <token>s</token>
            </pattern>
            <disambig action="replace" postag="N e p"/>
        </rule>
        <rule>
            <pattern>
                <token postag="N e s"/>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <marker>
                    <token regexp="yes">[^àâaêèéeiîoôòóöŌuœä]?es</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="N e s"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N e s"/>
                </marker>
                <token regexp="yes">[\[\(\-\.\·]</token>
                <token regexp="yes">[^àâaêèéeiîoôòóöŌuœä]?es</token>
            </pattern>
            <disambig action="replace" postag="N e p"/>
        </rule>
    </rulegroup>
    <rulegroup id="SENT_START2" name="possible sentence start">
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes" min="0" max="3">[«"]|&quot;</token>
                <token postag="A" min="1" max="4"/>
                <marker>
                    <token>,</token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="SENT_START2"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes" min="0" max="3">[«"]|&quot;</token>
                <token postag="P.*" postag_regexp="yes">
                    <exception>des</exception></token>
                <token postag="[DAZNJPKY].*|V ppa.*" postag_regexp="yes" min="1" max="8"/>
                <marker>
                    <token>,</token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="SENT_START2"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes">[A-Z]</token>
                <token regexp="yes" min="0" max="1">[-:;\)\.]</token>
                <marker>
                    <token regexp="yes" case_sensitive="yes">[A-Z].*
                        <exception scope="next" regexp="yes" case_sensitive="yes">[A-Z].*</exception>
                        <exception postag="UNKNOWN|Z.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="SENT_START2"/>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes">ii?i?</token>
                <token regexp="yes" min="0" max="1">[-:;\)\.]</token>
                <marker>
                    <token regexp="yes" case_sensitive="yes">[A-Z].*
                        <exception scope="next" regexp="yes" case_sensitive="yes">[A-Z].*</exception>
                        <exception postag="UNKNOWN|Z.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd pos="SENT_START2"/>
            </disambig>
        </rule>
    </rulegroup>
    <rulegroup name="Ignore spelling of numbers" id="IGNORE_SPELLING_OF_NUMBERS">
        <!--
        In English, Spanish, German and many other languages, we simply allow numbers and letters next to each other
        In French almost any number + any letter is marked as spelling error. The following rules allow some specific cases

        TODO:
        * 10hrs
        * 90m3
        * 10m2
    -->
        <rule>
            <pattern>
                <token regexp="yes">([01]?\d|2[0-3])h[0-5]?\d(min|m)([0-5]?\ds)?</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[0-5]?\d(min|m)[0-5]?\ds</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <!-- inch 5'20 (Canadians colloquially use feet and inches, see https://www.tripadvisor.com/Travel-g153339-c15311/Canada:Metric.System.html) -->
                <token regexp="yes">\d+</token>
                <token spacebefore="no">'</token>
                <token regexp="yes">\d+</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- numbering in lists: 6a, 6b, ... -->
            <pattern>
                <token regexp="yes">\d+[A-Z]</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- A4, B4, A380, BMW M4, F12 ... -->
            <pattern>
                <token regexp="yes">[A-Z]\d+</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- list items, 1-, 2-, -->
            <pattern>
                <marker>
                    <token regexp="yes">\d{1,3}</token>
                    <token min="0">.</token>
                    <token spacebefore="no">-</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- list items, 1.1b, 2-, -->
            <pattern>
                <marker>
                    <token regexp="yes">\d{1,3}</token>
                    <token min="0">.</token>
                    <token spacebefore="no">-</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- list items, 1.1-, 2.1-, -->
            <pattern>
                <marker>
                    <token regexp="yes">\d{1,3}\.\d{1,3}[a-z]?</token>
                    <token spacebefore="no">-</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- list items, 1.1.a- -->
            <pattern>
                <marker>
                    <token regexp="yes">\d{1,3}\.\d{1,3}</token>
                    <token spacebefore="no">.</token>
                    <token spacebefore="no" regexp="yes">[a-z]</token>
                    <token spacebefore="no">-</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- 5e, 6e, ... -->
            <pattern>
                <marker>
                    <token regexp="yes">\d+[eᵉ]\-?</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- negative numbers: -1, -10, ... -->
            <pattern>
                <marker>
                    <token regexp="yes">\-\d+</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[\d+\.,]</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[\d\., ]+[%$€£º°]?</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[\d\., ]+⁄[\d\., ]+</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[12][0-9]([\.,][0-5][0-9])?(h|hr|hrs)?</token>
                    <!-- TODO: rules suggesting proper formatting -->
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[$€£][\d\., ]+</token>
                    <!-- TODO: create rule suggesting another format -->
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[\d\., ]+[º°][CF]</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- chapter-style numbering: -1-, -2-, ... -->
            <pattern>
                <marker>
                    <token regexp="yes">\-\d+\-</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- multiplication: 4x4  -->
            <pattern>
                <marker>
                    <token regexp="yes">\d+x\d+</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- License keys, model numbers ("Philips AEA2700"), biology terms ("CD4") ... -->
            <pattern>
                <marker>
                    <token regexp="yes" case_sensitive="yes">[A-Z]+\d+</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- Price approximations ("150€-250€") -->
            <pattern>
                <marker>
                    <token regexp="yes" case_sensitive="yes">[\d,.]+[€$£¥¤]-[\d,.]+[€$£¥¤]</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- Dollar price ("$1M") -->
            <pattern>
                <marker>
                    <token regexp="yes">[€$£¥¤]\d+[MK]</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
    </rulegroup>
    <rule name="Ignore spelling of l'ONU" id="IGNORE_SPELLING_OF_L_ONU">
        <!-- see https://github.com/languagetool-org/languagetool/issues/2665 -->
        <pattern>
            <token regexp="yes">[dl]'</token>
            <token spacebefore="no" case_sensitive="yes" regexp="yes">ONU|AGV|UNSC|Excel|OTAN|ADLC|OFSP|Instagram</token>
            <!-- not sure if this the best way to fix this -->
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of l'e-mail" id="IGNORE_SPELLING_OF_L_EMAIL">
        <!-- see https://github.com/languagetool-org/languagetool/issues/2665 -->
        <pattern>
            <token regexp="yes">[dl]'</token>
            <token spacebefore="no" case_sensitive="yes" regexp="yes">emails?</token>
            <!-- not sure if this the best way to fix this -->
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of '&amp; Co" id="IGNORE_SPELLING_OF_AND_CO">
        <!-- e.g. "Tiffany & Co." -->
        <pattern>
            <token>&amp;</token>
            <token>Co</token>
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rulegroup id="IMMUNIZE_ANGLICISMS" name="exceptions to anglicism rules">
        <rule>
            <pattern>
                <token regexp="yes">guitar|Charleston</token>
                <token regexp="yes">slides?</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern>
                <token>fake</token>
                <token>news</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
    </rulegroup>
    <rule name="Ignore spelling of d'1" id="IGNORE_SPELLING_OF_D_UN">
        <pattern>
            <token>d'</token>
            <token spacebefore="no">1</token>
            <!-- not sure if this the best way to fix this -->
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of xD" id="IGNORE_SPELLING_OF_XD">
        <pattern>
            <token>xD</token>
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of N°" id="IGNORE_SPELLING_OF_N">
        <pattern>
            <token regexp="yes">N°\d?</token>
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of punctuation characters" id="IGNORE_SPELLING_OF_PUNCTUATION">
        <pattern>
            <token regexp="yes">[_\^]+</token>
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rulegroup name="Ignore number strings" id="IGNORE_NUMBERS">
        <rule>
            <!-- minus sign -->
            <pattern>
                <token regexp="yes">−?[\d .,]+%?</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <!--<rule>
            <pattern>
                <token regexp="yes"> [\dA-z\.\,éèëöïîôêàùûçœæÂÊÎÔÛÄËÏÖÜÙÀÆÇÉÈŒ—–‒-⇐⇔βα→↓↑←]+°?\d[\dA-z\.\,éèëöïîôêàçœæùûÂÊÎÔÛÄËÏÖÜÙÀÆÇÉÈŒ–—‒-⇐⇔βα→↓↑←]+
                    <exception regexp="yes">[A-z\.\,éèëöïîôêàçœæùûÂÊÎÔÛÄËÏÖÜÙÀÆÇÉÈŒ]+\d[A-z\.\,éèëöïîôêàçœæùûÂÊÎÔÛÄËÏÖÜÀÙÆÇÉÈŒ]+</exception>
                    <exception regexp="yes">\d+</exception>
                    <exception regexp="yes" case_sensitive="yes">[A-Z\.\,ÂÊÎÔÛÄËÏÖÜÙÀÆÇÉÈŒ]+</exception></token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>-->
    </rulegroup>
    <rule id="THE" name="the">
        <pattern>
            <marker>
                <token regexp="yes">the|of|and|to|your?|by|one|end|park|world|time|with|bank|goodies
                    <exception scope="previous" postag="D.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="ignore_spelling"/>
    </rule>
    <rulegroup id="IGNORE_SPELLING_OF_ABBREVIATIONS" name="Ignore spelling of some uppercase abbreviations">
        <rule>
            <!-- lowercase word + abbreviation with no vowels -->
            <pattern case_sensitive="yes">
                <token regexp="yes">.*[a-záàâ].*</token>
                <token min="0">(</token>
                <marker>
                    <token regexp="yes">[BCDFGHJKLMNPQRSTVWXZ]{3,6}</token>
                </marker>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
        <rule>
            <!-- abbreviation with no vowels + lowercase word -->
            <pattern case_sensitive="yes">
                <marker>
                    <token regexp="yes">[BCDFGHJKLMNPQRSTVWXZ]{3,6}</token>
                </marker>
                <token min="0">)</token>
                <token regexp="yes">.*[a-záàâ].*</token>
            </pattern>
            <disambig action="ignore_spelling"/>
        </rule>
    </rulegroup>
</rules>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy