<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/print.xsl" title="Pretty print" ?>
<?xml-stylesheet type="text/css" href="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/rules/rules.css" title="Easy editing stylesheet" ?>
<!--
Catalan Disambiguation Rules for LanguageTool
Copyright (C) 2012 Jaume Ortolà i Font
-->
<!DOCTYPE rules [
    <!ENTITY exceptions_QUE_COMPARATIU "finalitat|pretensió|algun|objectiu|vocació|missió|sortida|eixida|alternativa|recurs|remei|solució|opció|camí">
    <!ENTITY exceptions_TE "aigua|arròs|cacau|cacauet|caf[èé]|cautxú|cervesa|cítric|coca-cola|cotó|espècies|farigola|fruita|infusió|llet|malta?|melmelada|mill|oli|ordi|pastes|pastís|pastisset|poliol|quina|raïm|sucre|tabac|torrada|xocolat[ae]">
    <!ENTITY femeni_inusual "amor|ardor|candor|clamor|color|dolor|error|estridor|estupor|fervor|fragor|fulgor|furor|honor|horror|humor|rigor|rubor|rumor|sabor|sopor|temor|terror|valor|vigor">
    <!ENTITY masculi_inusual "policia|justícia|part[123]">
    <!ENTITY nom_o_verb "mofa|força|crani|imperi|consum|forma|revenja|col·loqui|poeta|dejuni|escultura|escola|vaticini|queixa|tinta|plaga|cometa2|cursa|país|domini|equilibri|termini|cap|dosi|tema|barri|sonda|porta|resta|ment|capa|demanda|esperança|manca|marca|marxa|mida|mostra|obra|ou|orquestra|profeta|programa|terra|meta|veu|copa|extermini|dona|esquerra">
    <!ENTITY nom_seguitde_nompropi "copa|casa|abat|informe|senyor|estàndard|tipus|adreça|imperi|profeta|balneari|projecte|corrent|estany|cometa2|mont|pare|premi|cas|cursa|concurs|quadre|taula|novel·la|obra|riu|estil|programa|orquestra|escola|registre|finca|sonda|rosa|tema">
    <!ENTITY unitats_temps "molt|poc|temps|temporada|jornada|estona|mil·lisegon|segon|minut|hora|dia|jorn|setmana|mes|any|lustre|dècada|decenni|segle|mil·lenni">
    <!ENTITY verbs_TE_INFUSIO "produir|prendre|servir|preparar|voler|beure|consumir|importar|vendre|exportar|llançar">
    <!ENTITY pronom_feble "P0.{6}|PP3CN000|PP3NN000|PP3..A00|PP3CP000|PP3CSD00">
]>
<rules lang="ca" 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="nombre">
        <equivalence type="S">
            <token postag="(PX..|N.{2}|[ADP].{3}|V.{4})[SN0].*|RG.*|CC|_PUNCT_CONT" postag_regexp="yes"></token>
        </equivalence>
        <equivalence type="P">
            <token postag="(PX..|N.{2}|[ADP].{3}|V.{4})[PN0].*|RG.*|CC|_PUNCT_CONT" postag_regexp="yes"></token>
        </equivalence>
    </unification>
    <unification feature="genere">
        <equivalence type="M">
            <token postag="(PX.|N.|[ADP].{2}|V.{5})[MC].*|RG.*|CC|_PUNCT_CONT" postag_regexp="yes"></token>
        </equivalence>
        <equivalence type="F">
            <token postag="(PX.|N.|[ADP].{2}|V.{5})[FC].*|RG.*|CC|_PUNCT_CONT" postag_regexp="yes"></token>
        </equivalence>
    </unification>
    <unification feature="persona">
        <equivalence type="primera">
            <token postag="(P.|V.{3})[10].*" postag_regexp="yes"></token>
        </equivalence>
        <equivalence type="segona">
            <token postag="(P.|V.{3})[20].*" postag_regexp="yes"></token>
        </equivalence>
        <equivalence type="tercera">
            <token postag="(P.|V.{3})[30].*" postag_regexp="yes"></token>
        </equivalence>
    </unification>
    <rulegroup id="FIX_DICTIONARY" name="fix some problems in dictionaries">
        <!-- es pot eliminar quan s'arregle el diccionari -->
        <rule>
            <pattern>
                <token>imprimí</token>
            </pattern>
            <disambig action="remove"><wd lemma="imprimar"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">fluïdal</token>
            </pattern>
            <disambig action="remove"><wd lemma="fluïdal"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="FIX_SENTENCE_TOKENIZATION" name="fix problems with sentence tokenization">
        <rule>
            <pattern>
                <token case_sensitive="yes" regexp="yes">[A-Z]</token>
                <marker>
                    <token spacebefore="no">.</token>
                </marker>
                <token spacebefore="yes" postag="[VADSC].*" postag_regexp="yes" regexp="yes">\p{Lu}.*<exception postag="NP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="SENT_START"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token case_sensitive="yes"  regexp="yes">[A-Z]</token>
                <marker>
                    <token spacebefore="no">.</token>
                </marker>
                <token spacebefore="yes" postag="[VADSC].*" postag_regexp="yes" regexp="yes">\p{Lu}.*<exception postag="NP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="SENT_END"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="PUNTUACIO" name="signes de puntuació">
        <rule>
            <pattern>
                <token regexp="yes">[.;:!?…()\[\]&#8210;&#8211;&#8212;&#8213;•\-]</token>
            </pattern>
            <disambig action="add"><wd pos="_PUNCT"></wd></disambig>
        </rule>
        <rule id="PUNTUACIO2" name="signes de puntuació que no trenquen els sintagmes">
            <pattern>
                <token regexp="yes">[,'"‘’“”«»¡¿]</token>
            </pattern>
            <disambig action="add"><wd pos="_PUNCT_CONT"></wd></disambig>
        </rule>
        <rule id="PUNTUACIO_OBRE" name="signes d'obertura">
            <pattern>
                <marker>
                    <token regexp="yes" spacebefore="yes">['"]</token>
                </marker>
                <token spacebefore="no"><exception postag="_PUNCT.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_PUNCT_OBRE"></wd></disambig>
        </rule>
        <rule id="COMETES_OBERTURA1" name="signes d'obertura">
            <pattern>
                <marker>
                    <token regexp="yes" spacebefore="yes">[“‘«'"]</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_cometes_obertura"></wd></disambig>
        </rule>
        <rule id="COMETES_OBERTURA2" name="signes d'obertura">
            <pattern>
                <token regexp="yes">[mntsld]'</token>
                <marker>
                    <token regexp="yes">[“‘«'"]</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_cometes_obertura"></wd></disambig>
        </rule>
        <rule id="PUNTUACIO_TANCA" name="signes de tancament">
            <pattern>
                <marker>
                    <token regexp="yes" spacebefore="yes">['"]</token>
                </marker>
                <token spacebefore="no" postag="_PUNCT.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_PUNCT_TANCA"></wd></disambig>
        </rule>
        <rule id="tres_punts" name="punts suspensius">
            <pattern>
                <token>.</token>
                <token>.</token>
                <token>.</token>
            </pattern>
            <disambig action="add"><wd pos="_trespunts"/><wd pos="_trespunts"/><wd pos="_trespunts"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="ENUMERACIONS" name="enumeracions amb lletres: a)">
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token regexp="yes">[a-z]</token>
                </marker>
                <token spacebefore="no">)</token>
            </pattern>
            <disambig action="add"><wd pos="_enumeracio"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">,|;|i|o|ni</token>
                <marker>
                    <token regexp="yes">[a-z]</token>
                </marker>
                <token spacebefore="no">)</token>
            </pattern>
            <disambig action="add"><wd pos="_enumeracio"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="tokenization_error" name="tokenization problem: Castella-la Manxa, D'Hondt">
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.[MGN].*" postag_regexp="yes"/></token>
                <marker>
                    <token>-el</token>
                </marker>
                <token postag="N.[MC][SN].*" postag_regexp="yes"><exception postag="[CR].*|SP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.[MGN].*" postag_regexp="yes"/></token>
                <marker>
                    <token>-els</token>
                </marker>
                <token postag="N.[MC][PN].*" postag_regexp="yes"><exception postag="[CR].*|SP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0MP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.[MGN].*" postag_regexp="yes"/></token>
                <marker>
                    <token>-la</token>
                </marker>
                <token postag="N.[FC][SN].*" postag_regexp="yes"><exception postag="[CR].*|SP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0FS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.[MGN].*" postag_regexp="yes"/></token>
                <marker>
                    <token>-les</token>
                </marker>
                <token postag="N.[FC][PN].*" postag_regexp="yes"><exception postag="[CR].*|SP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0FP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>d'</token>
                <marker>
                    <token regexp="yes">Hond?t?</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_possible_nompropi"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="coma_decimal" name="coma decimal">
        <rule>
            <pattern>
                <token regexp="yes">\d+</token>
                <marker>
                    <token spacebefore="no">,</token>
                </marker>
                <token spacebefore="no" regexp="yes">\d+</token>
            </pattern>
            <disambig action="remove"><wd pos="_PUNCT_CONT"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">\d+</token>
                <marker>
                    <token spacebefore="no">.</token>
                </marker>
                <token spacebefore="no" regexp="yes">\d+</token>
            </pattern>
            <disambig action="remove"><wd pos="_PUNCT"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">\d+</token>
                <marker>
                    <token spacebefore="no" regexp="yes">[,.]</token>
                </marker>
                <token spacebefore="no" regexp="yes">\d+</token>
            </pattern>
            <disambig action="add"><wd pos="decimal_comma"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="NUMERALS" name="numerals i ordinals">
        <rule>
            <pattern>
                <marker>
                    <token>mil</token>
                    <token>i</token>
                    <token>un</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="DN0MP0"/><wd pos="DN0MP0"/><wd pos="DN0MP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>mil</token>
                    <token>i</token>
                    <token>una</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="DN0FP0"/><wd pos="DN0FP0"/><wd pos="DN0FP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890][1234567890., ]+[1234567890]</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="NCCN000"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890][1234567890., ]+[1234567890]</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="DN0CP0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]{1,2}</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="NCCN000"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]{1,2}</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="DN0CP0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token spacebefore="yes">1</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="DN0CS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token spacebefore="yes">1</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd lemma="numeral" pos="DN0CP0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[^.,]*</token>
                <marker>
                    <token spacebefore="no">1</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="numeral" pos="DN0CS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[^.,]*</token>
                <marker>
                    <token spacebefore="no">1</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd lemma="numeral" pos="DN0CP0"></wd></disambig>
        </rule>
        <!-- ordinals -->
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]+[èé]<exception postag="AO.*" postag_regexp="yes"/><exception regexp="yes">[01234][èé]</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>el</token>
                <marker>
                    <token regexp="yes">[1234567890]+</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]+a<exception postag="AO.*" postag_regexp="yes"/><exception>0a</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0FS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>la</token>
                <marker>
                    <token regexp="yes">[1234567890]+</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0FS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]+ns<exception postag="AO.*" postag_regexp="yes"/><exception regexp="yes">[01234]ns</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0MP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>els</token>
                <marker>
                    <token regexp="yes">[1234567890]+</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0MP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[1234567890]+es<exception postag="AO.*" postag_regexp="yes"/><exception>0es</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0FP0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>les</token>
                <marker>
                    <token regexp="yes">[1234567890]+</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0FP0"/></disambig>
        </rule>
        <!-- romans-->
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token regexp="yes">(?=.)M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0CN0"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token regexp="yes" spacebefore="yes">(?=.)m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0CN0"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token postag="SENT_START"/>
                <marker>
                    <token regexp="yes">(?=.)m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0CN0"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token>-</token>
                <marker>
                    <token regexp="yes">(?=.)m{0,4}(cm|cd|d?c{0,3})(xc|xl|l?x{0,3})(ix|iv|v?i{0,3})</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AO0CN0"/></disambig>
        </rule>
        <!-- excepcions als numerals romans -->
        <rule>
            <pattern case_sensitive="yes">
                <token postag="SENT_START"/>
                <token min="0" max="3" postag="_PUNCT.*" postag_regexp="yes"/>
                <marker>
                    <token>I</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="AO0CN0"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token regexp="yes">i|li|mi|vi|di</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="AO0CN0"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>VII</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[1234567890., ]+</token>
                <marker>
                    <token>m</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="NCMP000" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">1|/|per</token>
                <marker>
                    <token>m</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="NCMS000" />
        </rule>
        <rule id="la_numero_u" name="la número u">
            <pattern>
                <marker>
                    <token>la</token>
                    <token>número</token>
                    <token postag="AO0C[NS]0|DN0[^F]P0" postag_regexp="yes"><exception regexp="yes">.*un</exception></token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="DN.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes" case_sensitive="yes">aC|dC</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="RG"/></disambig>
        </rule>
        <rule id="en_base" name="en base + numeral">
            <pattern>
                <token regexp="yes">en|de</token>
                <token>base</token>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token postag="DD.FS.*" postag_regexp="yes" />
                <marker>
                    <token>deu</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCFS.*|VMI.*" />
        </rule>
        <!-- Percentatges -->
        <rule id="percentatges" name="percentatges">
            <pattern>
                <token regexp="yes">[\d,. ]+[&#37;&#8240;&#8241;]</token>
            </pattern>
            <disambig action="replace"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule id="numero_graus" name="graus">
            <pattern>
                <token regexp="yes">[\d,. ]+[°′″‴][CFKNSEW]?</token>
            </pattern>
            <disambig action="replace"><wd pos="NCMP000"/></disambig>
        </rule>
        <rule id="graus" name="graus">
            <pattern>
                <token regexp="yes">°[CFKNSEW]</token>
            </pattern>
            <disambig action="replace"><wd pos="NCMN000"/></disambig>
        </rule>
        <rule id="un_grau" name="1 grau">
            <pattern>
                <token regexp="yes">1°[CFNSEW]?</token>
            </pattern>
            <disambig action="replace"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule id="IX" name="IX, ordinal no verb">
            <pattern case_sensitive="yes">
                <token>IX</token>
            </pattern>
            <disambig action="filter" postag="A.*"/>
        </rule>
        <rule id="vint_aniversari" name="vint aniversari">
            <pattern>
                <marker>
                <and>
                    <token postag="NCCN000"/>
                    <token postag="DN0CP0"/>
                </and>
                </marker>
                <token>aniversari</token>
            </pattern>
            <disambig action="replace" postag="AO0MS0"/>
        </rule>

    </rulegroup>
    <rule id="des_de" name="des de/que">
        <pattern>
            <marker>
                <token>des</token>
            </marker>
            <token regexp="yes">d'|de|del|dels|que</token>
        </pattern>
        <disambig action="filter" postag="S.*"></disambig>
    </rule>
    <rule id="deu_i_ajuda" name="Déu i ajuda (nom)">
        <pattern>
            <token inflected="yes">costar</token>
            <token>Déu</token>
            <token>i</token>
            <marker>
                <token>ajuda</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rulegroup id="any_en_xifres" name="El + any (en xifres)">
        <rule>
            <pattern>
                <token regexp="yes">en|d?els?|anys?|dècada</token>
                <token regexp="yes">[12][0-9]{3}</token>
                <token>-</token>
                <marker>
                    <token regexp="yes">[0-9]{1,4}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>

        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token postag="_PUNCT.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">[12][0-9]{3}</token>
                </marker>
                <token><exception postag="NC.[PN].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">anys?|mitjan</token>
                <marker>
                    <token regexp="yes">[1-9][0-9]{0,3}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token regexp="yes">en|el</token>
                <marker>
                    <token regexp="yes">[1-2][0-9]{3}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">en|el|l</token>
                <marker>
                    <token regexp="yes">[1-2][0-9]{3}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">en|el|l|l'</token>
                <marker>
                    <token regexp="yes">[1-9][0-9]{0,3}</token>
                </marker>
                <token><exception postag="NC[MC]P.*|Y" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">llei|final|fi|principi|començament|inici|gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre</token>
                <token>de</token>
                <marker>
                    <token regexp="yes">[123456789][1234567890]{0,3}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">llei|final|fi|principi|començament|inici|gener|febrer|març|abril|maig|juny|juliol|agost|setembre|octubre|novembre|desembre</token>
                <token>de</token>
                <token spacebefore="no">l</token>
                <marker>
                    <token regexp="yes">[123456789][1234567890]{0,3}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="_C_TEMPS"/>
        </rule>
    </rulegroup>
    <rule id="ADVERBI_ANTEPOSAT" name="adverbi que es pot anteposar a adjectiu">
        <pattern>
            <token postag="RG" regexp="yes">mal|.+ment|molt|poc|moltíssim|poquíssim|tantíssim|tant|tan|aleshores|alhora|almanco|almenys|aviat|bastant|ben|encara|força|gaire|gairebé|gens|inclús|ja|llavors|mai|massa|menys|mig|millor|més|no|només|pas|pitjor|potser|prompte|prou|quasi|quelcom|sempre|sobretot|sols|suara|també|tampoc|tanmateix|tostemps|tot|tothora|àdhuc</token>
        </pattern>
        <disambig action="add"><wd pos="RG_anteposat"></wd></disambig>
    </rule>
    <rulegroup id="CONTRACCIONS" name="contraccions">
        <rule>
            <pattern>
                <marker>
                    <token>pe</token>
                </marker>
                <token regexp="yes">ls?</token>
            </pattern>
            <disambig action="add"><wd lemma="per" pos="SPS00"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>pe</token>
                </marker>
                <token regexp="yes">ls?</token>
            </pattern>
            <disambig action="remove" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">a|de|pe</token>
                <marker>
                    <token spacebefore="no">l</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0MS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">a|de|pe|ca</token>
                <marker>
                    <token spacebefore="no">ls</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0MP0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>l</token>
                </marker>
                <token spacebefore="no">'</token>
                <token spacebefore="no" regexp="yes">[1234567890]+</token>
            </pattern>
            <disambig action="replace"><wd lemma="el" pos="DA0CS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>ca</token>
                <marker>
                    <token spacebefore="no">n</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="can" pos="DA0CN0"></wd>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>ca</token>
                </marker>
                <token spacebefore="no">n</token>
            </pattern>
            <disambig action="filter" postag="NCFS.*"></disambig>
        </rule>
        <rule id="a_cal" name="a cal(s)">
            <pattern>
                <token regexp="yes">a|per|de</token>
                <marker>
                    <token regexp="yes">cals?</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="contraccio" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">a|per|de</token>
                <marker>
                    <token>cal</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="el" pos="DA0MS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <!-- <token regexp="yes">a|per|de</token> -->
                <marker>
                    <token>cals</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="el" pos="DA0MP0"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="secar" name="paraules coincidents amb el verb secar (només AVL)">
        <pattern>
            <marker>
                <and>
                    <token inflected="yes">secar</token>
                    <token negate="yes" inflected="yes">secar</token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove"><wd lemma="secar"/></disambig>
    </rule>
    <rule id="nAdj" name="no adjectiu">
        <!--  paraules comunes que no solen ser adjectiu gairebé mai -->
        <pattern>
            <marker>
                <token regexp="yes">lluny|les|música|músiques|refés|manera|maneres|minve|minva</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^A].*"/>
    </rule>
    <rule id="noNom2" name="FA LA no nom">
        <pattern>
            <token><exception postag="D[DAI]0MS0" postag_regexp="yes" regexp="yes">el|un|aquest|algun</exception></token>
            <marker>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">fa|la</token>
            </marker>
            <token><exception regexp="yes">menor|major|sostingut|bemoll|diesi|becaire</exception></token>
        </pattern>
        <disambig action="filter" postag="[^N].*"/>
    </rule>
    <rulegroup id="ESTAR_IMPERATIU" name="formes del verb estar en imperatiu">
        <rule>
            <pattern>
                <marker>
                    <token>està</token>
                </marker>
                <token spacebefore="no"><exception>-te</exception></token>
            </pattern>
            <disambig action="remove" postag="V.M.*"></disambig>
            <example type="untouched">Està-te quiet.</example>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">esteu|estau</token>
                </marker>
                <token><exception spacebefore="no">-vos</exception></token>
            </pattern>
            <disambig action="remove" postag="V.M.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>estem</token>
                </marker>
                <token><exception spacebefore="no">-nos</exception></token>
            </pattern>
            <disambig action="remove" postag="V.M.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="nom_vocals" name="el nom de les vocals">
        <rule>
            <pattern>
                <token>la</token>
                <marker>
                    <token regexp="yes">a|e|i|o|u</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token>l'</token>
                <token>una</token>
                <marker>
                    <token>a</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="SPS00" />
        </rule>
        <rule>
            <pattern>
                <token>una<exception postag=".*LOC.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="NC.*" postag_regexp="yes" regexp="yes">a|e|u</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
    </rulegroup>
    <rule id="noNom" name="no nom">
        <!--  paraules comunes que no solen ser noms gairebé mai (es,...) -->
        <pattern>
            <and>
                <token postag="N.*" postag_regexp="yes" regexp="yes">creix|ros|se|es|de|i|o|a|he|ha|hem|més|en|per|ni|no|menys|fas|com</token>
                <token postag="N.*" postag_regexp="yes" negate_pos="yes" />
            </and>
        </pattern>
        <disambig action="remove" postag="N.*"/>
    </rule>
    <rulegroup id="LOCUCIONS" name="locucions adverbials, preposicionals, conjuntives">
        <!-- locucions concretes-->
        <rule id="duna_banda" name="d'una banda (locució conj.)">
            <pattern>
                <token>,</token>
                <marker>
                    <token regexp="yes">d'|per</token>
                    <token regexp="yes">una|altra</token>
                    <token regexp="yes">banda|part</token>
                </marker>
                <token>,</token>
            </pattern>
            <disambig action="add"><wd lemma="daltra_banda" pos="&lt;LOC_CONJ&gt;"/><wd lemma="daltra_banda" pos="&lt;LOC_CONJ&gt;"/><wd lemma="daltra_banda" pos="&lt;/LOC_CONJ&gt;"/></disambig>
        </rule>
        <rule id="temps_ha" name="temps ha (locució adverbial)">
            <pattern>
                <marker>
                    <token regexp="yes">temps|anys</token>
                    <token>ha</token>
                </marker>
                <token><exception postag="V.P.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd lemma="temps ha" pos="&lt;LOC_ADV&gt;"/><wd lemma="temps ha" pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule id="en_va1" name="en va (locució adverbial)">
            <pattern>
                <token><exception regexp="yes">'ls|'ns|us</exception></token>
                <marker>
                    <token>en</token>
                    <token>va</token>
                </marker>
                <token><exception postag="V.[NG].*|A.*|V.P.*SM.?" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd lemma="en va" pos="&lt;LOC_ADV&gt;"/><wd lemma="en va" pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule id="llevat_de" name="llevat de (locució preposicional)">
            <pattern>
                <token><exception inflected="yes">haver</exception></token>
                <marker>
                    <token>llevat</token>
                    <token regexp="yes">de|d'</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="llevat de" pos="&lt;LOC_PREP&gt;"/><wd lemma="en va" pos="&lt;/LOC_PREP&gt;"/></disambig>
            <example type="untouched">Per fi, ens l'hem <marker>llevat de</marker> damunt.</example>
        </rule>
        <rule id="a_fi_de" name="a fi de (locució conjuntiva)">
            <pattern>
                <marker>
                    <token>a</token>
                    <token>fi</token>
                    <token regexp="yes">de|d'</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd lemma="a fi de" pos="&lt;LOC_CONJ&gt;"/><wd lemma="a fi de" pos="&lt;LOC_ADV&gt;"/><wd lemma="a fi de" pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule id="entorn_de" name="a entorn de (locució prepositiva)">
            <pattern>
                <token><exception postag="D..[MC]S." postag_regexp="yes"/></token>
                <marker>
                    <token>entorn</token>
                    <token regexp="yes">de|d'</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="entorn de" pos="&lt;LOC_PREP&gt;"/><wd lemma="entorn de" pos="&lt;/LOC_PREP&gt;"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception>el</exception></token>
                <marker>
                    <token>primer</token>
                    <token>de</token>
                    <token>tot</token>
                </marker>
            </pattern>
            <disambig action="add">
                <wd lemma="primer de tot" pos="&lt;LOC_ADV&gt;" />
                <wd lemma="primer de tot" pos="&lt;LOC_ADV&gt;" />
                <wd lemma="primer de tot" pos="&lt;/LOC_ADV&gt;" />
            </disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>a</token>
                    <token>la</token>
                    <token regexp="yes">lleugera|valenta|llarga|callada|boja|clara|curta|descoberta|descosida|desesperada|destapada|fresca|impensada|menuda|antiga|quieta|regalada|sorda</token>
                </marker>
                <token><exception postag="NC[FC][SN].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd lemma="a la lleugera" pos="&lt;LOC_ADV&gt;" />
                <wd lemma="a la lleugera" pos="&lt;LOC_ADV&gt;" />
                <wd lemma="a la lleugera" pos="&lt;/LOC_ADV&gt;" /></disambig>
            <example type="untouched">Es deu <marker>a la lleugera</marker> millora del mercat.</example>
        </rule>
        <rule>
            <pattern>
                <token>en</token>
                <token>contra</token>
                <token regexp="yes">[mts]e(u|ua|va)</token>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>cada</token>
                <token regexp="yes">una?</token>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="3" regexp="yes">girar|caure|tombar</token>
                <marker>
                    <token>d'</token>
                    <token>esquena</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="de_nou" name="de nou">
            <pattern>
                <marker>
                    <token>de</token>
                    <token>nou</token>
                </marker>
                <token><exception postag="NC[MC][SN].*|NC.[PN].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">Amb la proposta <marker>de nou</marker> servidor</example>
            <example type="untouched">Amb un termini d'execució <marker>de nou</marker> mesos.</example>
        </rule>
        <rule id="de_veritat" name="de veritat">
            <pattern>
                <marker>
                    <token>de</token>
                    <token>veritat</token>
                </marker>
                <token><exception postag="AQ.[FC][SN]." postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">Porcions <marker>de veritat</marker> absoluta.</example>
        </rule>
        <rule id="a_mes" name="a més">
            <pattern>
                <token><exception regexp="yes" inflected="yes">per|fins|arribar|correspondre</exception></token>
                <marker>
                    <token>a</token>
                    <token>més</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">Per <marker>a més</marker> d'un dia.</example>
        </rule>
        <rule id="en_canvi" name="en canvi">
            <pattern>
                <marker>
                    <token regexp="yes">en|a</token>
                    <token>canvi</token>
                </marker>
                <token><exception regexp="yes">de|d'</exception></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">Va dir que sí <marker>a canvi</marker> de diners.</example>
        </rule>
        <rule id="per_tant" name="per tant">
            <pattern>
                <marker>
                    <token>per</token>
                    <token>tant</token>
                </marker>
                <token><exception regexp="yes">de|d'</exception><exception postag="NC[MC][SN].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd lemma="per tant" pos="LOC_CONJ"/><wd lemma="per tant" pos="LOC_CONJ"/></disambig>
            <example type="untouched">I <marker>per tant</marker> honor.</example>
        </rule>
        <rule id="de_fiar" name="de fiar">
            <pattern>
                <token postag="NC.*|AQ.*" postag_regexp="yes"/>
                <marker>
                    <token>de</token>
                    <token>fiar</token>
                </marker>
                <token><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">-.*</exception></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/></disambig>
            <example type="untouched">No us heu <marker>de fiar</marker> de ningú.</example>
        </rule>
        <rule id="a_prop_de" name="a prop/sobre/damunt de">
            <pattern>
                <token><exception>la</exception></token>
                <marker>
                    <token>a</token>
                    <token regexp="yes">prop|sobre|sota|damunt|davall|començaments?|finals?|inicis?|principis?|tocar</token>
                    <token regexp="yes">de|d'</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_PREP"/><wd pos="LOC_PREP"/><wd pos="LOC_PREP"/></disambig>
        </rule>
        <rule id="per_sobre_de" name="per sobre de">
            <pattern>
                <marker>
                    <token>per</token>
                    <token regexp="yes">sobre|sota|damunt|davall</token>
                    <token regexp="yes">de|d'</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_PREP"/><wd pos="LOC_PREP"/><wd pos="LOC_PREP"/></disambig>
        </rule>
        <rule id="a_prop" name="a prop/sobre/damunt">
            <pattern>
                <token><exception>la</exception></token>
                <marker>
                    <token>a</token>
                    <token regexp="yes">prop|sobre|sota|damunt|davall|gust|pler|plaer</token>
                </marker>
                <token><exception regexp="yes">de|d'</exception><exception postag="PX.MS.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">És tan <marker>a prop</marker> meu.</example>
        </rule>
        <rule id="a_prop_seu" name="a prop/sobre/damunt... seu">
            <pattern>
                <token><exception>la</exception></token>
                <marker>
                    <token>a</token>
                    <token regexp="yes">prop|sobre|sota|damunt|davall|gust|pler|plaer</token>
                    <token postag="PX.MS.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="en_forma" name="en forma">
            <pattern>
                <marker>
                    <token>en</token>
                    <token regexp="yes">forma|perill</token>
                </marker>
                <token><exception regexp="yes">de|d'|part</exception><exception postag="AQ.[FC]S.*|VMP..SF." postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            <example type="untouched">És <marker>en forma</marker> hexagonal.</example>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>a</token>
                    <token>la</token>
                    <token>vora</token>
                </marker>
                <token><exception regexp="yes">de|d'|dreta|esquerra</exception></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>a</token>
                    <token>fons</token>
                </marker>
                <token><exception regexp="yes">perdut|públics</exception></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <!--  Locucions adverbials-->
        <rule id="loc_adv3paraules" name="locució adverbial 3 paraules">
            <pattern>
                <token postag="&lt;LOC_ADV&gt;"></token>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_ADV&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_adv" pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="loc_adv4paraules" name="locució adverbial 4 paraules">
            <pattern>
                <token postag="&lt;LOC_ADV&gt;"></token>
                <marker>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_ADV&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_adv" pos="LOC_ADV"/><wd lemma="loc_adv" pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="loc_adv5paraules" name="locució adverbial 5 paraules">
            <pattern>
                <token postag="&lt;LOC_ADV&gt;"></token>
                <marker>
                    <token/>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_ADV&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_adv" pos="LOC_ADV"/><wd lemma="loc_adv" pos="LOC_ADV"/><wd lemma="loc_adv" pos="LOC_ADV"/></disambig>
        </rule>

        <!--locucions adverbials de temps-->
        <rule id="de_dos_en_dos" name="de dos en dos">
            <pattern>
                <marker>
                    <token>de</token>
                    <token><exception regexp="yes">tant?|quant?</exception></token>
                    <token>en</token>
                    <token><match no="1"/></token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="any_a_any" name="any a any">
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes"><exception>de</exception></token>
                    <token regexp="yes">per|darrere|rere|a</token>
                    <token><match no="0"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule id="en_pocs_anys" name="en pocs anys/dies/hores/minuts...">
            <pattern>
                <marker>
                    <token>en</token>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token inflected="yes">poc</token>
                        <token postag="NC.P.*" postag_regexp="yes" inflected="yes" regexp="yes">&unitats_temps;</token>
                    </unify>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="havent_dinat" name="havent dinat">
            <pattern>
                <marker>
                    <token>havent</token>
                    <token postag="VMP00SM.?" postag_regexp="yes"/>
                </marker>
                <token><exception>que</exception></token>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="anys_i_anys" name="anys i anys">
            <pattern>
                <marker>
                    <token regexp="yes">hores|dies|setmanes|mesos|anys|dècades|segles</token>
                    <token>i</token>
                    <token><match no="0"/></token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="anys_i_anys2" name="anys i més anys">
            <pattern>
                <marker>
                    <token regexp="yes">hores|dies|setmanes|mesos|anys|dècades|segles</token>
                    <token>i</token>
                    <token>més</token>
                    <token><match no="0"/></token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="entre_classe_i_classe" name="entre classe i classe">
            <pattern>
                <marker>
                    <token>entre</token>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token>i</token>
                    <token><match no="1"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule id="esdiguicomesdigui" name="es digui com es digui">
            <pattern>
                <token postag="P[P0].*" postag_regexp="yes"/>
                <token postag="V.S.*" postag_regexp="yes"/>
                <token>com</token>
                <token><match no="0"/></token>
                <token><match no="1"/></token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <!-- Filtra Locucions adverbials-->
        <rule id="loc_adv_filtra" name="locució adverbial filtra">
            <pattern>
                <marker>
                    <token postag=".*LOC_ADV.*" postag_regexp="yes"><exception postag=".*LOC_PREP.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag=".*LOC_ADV.*"></disambig>
        </rule>
        <!-- locucions conjuntives-->
        <rule id="loc_conj3paraules" name="locució conjuntiva 3 paraules">
            <pattern>
                <token postag="&lt;LOC_CONJ&gt;"></token>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_CONJ&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_conj" pos="LOC_CONJ"/></disambig>
        </rule>
        <rule id="loc_conj4paraules" name="locució conjuntiva 4 paraules">
            <pattern>
                <token postag="&lt;LOC_CONJ&gt;"></token>
                <marker>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_CONJ&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_conj" pos="LOC_CONJ"/><wd lemma="loc_conj" pos="LOC_CONJ"/></disambig>
        </rule>
        <rule id="loc_conj_filtra" name="locució conjuntiva filtra">
            <pattern>
                <marker>
                    <token postag=".*LOC_CONJ.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag=".*LOC_CONJ.*"></disambig>
        </rule>
        <!--locucions preposicionals-->
        <rule id="loc_prep3paraules" name="locució preposicional 3 paraules">
            <pattern>
                <token postag="&lt;LOC_PREP&gt;"></token>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_PREP&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_prep" pos="LOC_PREP"/></disambig>
        </rule>
        <rule id="loc_prep4paraules" name="locució preposicional 4 paraules">
            <pattern>
                <token postag="&lt;LOC_PREP&gt;"></token>
                <marker>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_PREP&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_prep" pos="LOC_PREP"/><wd lemma="loc_prep" pos="LOC_PREP"/></disambig>
        </rule>
        <rule id="loc_prep_filtra" name="locució preposicional filtra">
            <pattern>
                <marker>
                    <token postag=".*LOC_PREP.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag=".*LOC_PREP.*"></disambig>
        </rule>
        <!--locucions adjectivals -->
        <rule id="loc_adj3paraules" name="locució adjectival 3 paraules">
            <pattern>
                <token postag="&lt;LOC_ADJ&gt;"></token>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_ADJ&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_adj" pos="LOC_ADJ"/></disambig>
        </rule>
        <rule id="loc_adj4paraules" name="locució adjectival 4 paraules">
            <pattern>
                <token postag="&lt;LOC_ADJ&gt;"></token>
                <marker>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/LOC_ADJ&gt;"></token>
            </pattern>
            <disambig action="add"><wd lemma="loc_prep" pos="LOC_ADJ"/><wd lemma="loc_prep" pos="LOC_ADJ"/></disambig>
        </rule>
        <rule id="loc_adj_filtra" name="locució adjectival filtra">
            <pattern>
                <marker>
                    <token postag=".*LOC_ADJ.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag=".*LOC_ADJ.*"></disambig>
        </rule>
        <rule id="cada_vegada" name="cada vegada">
            <pattern>
                <token>cada</token>
                <marker>
                    <token regexp="yes">hora|dia|mes|any|vegada|volta|cop|minut|segon|moment|setmana</token>
                </marker>
                <token regexp="yes">menors|majors</token>
            </pattern>
            <disambig action="filter" postag="[^N].*"></disambig>
        </rule>
        <rule id="per_ultima_vegada" name="per última vegada">
            <pattern>
                <marker>
                    <token>per</token>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token postag="AO.*" postag_regexp="yes"/>
                        <token regexp="yes">vegada|volta|co?lp</token>
                    </unify>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule id="mes_de_nou" name="més de nou (excepció)">
            <pattern>
                <token>més</token>
                <token>de</token>
                <marker>
                    <token>nou</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd lemma="de nou" pos="&lt;/LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule id="fruit_de" name="fruit de">
            <pattern>
                <token postag="N.*" postag_regexp="yes"></token>
                <marker>
                    <token>fruit</token>
                    <token regexp="yes">de|d'</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd lemma="fruit de" pos="LOC_PREP"/><wd lemma="fruit de" pos="LOC_PREP"/></disambig>
        </rule>
        <rule id="desquena" name="d'esquena">
            <pattern>
                <marker>
                    <token>d'</token>
                </marker>
                <token>esquena</token>
            </pattern>
            <disambig action="add"><wd lemma="d'esquena" pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule id="donat_que" name="donat que (loc conj)">
            <pattern>
                <token postag="SENT_START|_PUNCT.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">donat|atès|atés</token> <!--  vigilar accentuació -->
                    <token>que</token>
                </marker>
            </pattern>
            <disambig action="add"><wd lemma="donat que" pos="LOC_CONJ"/><wd lemma="donat que" pos="LOC_CONJ"/></disambig>
        </rule>
        <rule id="els_ets_i_els_uts" name="els ets i els uts">
            <pattern>
                <token>els</token>
                <marker>
                    <token>ets</token>
                </marker>
                <token>i</token>
                <token>els</token>
                <token>uts</token>
            </pattern>
            <disambig action="replace"><wd lemma="ets" pos="NCMP000"/></disambig>
        </rule>
        <rule id="ets_i_uts" name="ets i uts">
            <pattern>
                <marker>
                    <token>ets</token>
                </marker>
                <token>i</token>
                <token>uts</token>
            </pattern>
            <disambig action="replace"><wd lemma="ets" pos="NCMP000"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="abreviacions" name="abreviacions">
        <rule>
            <pattern>
                <token>p</token>
                <token spacebefore="no">.</token>
                <token spacebefore="yes" regexp="yes">[adeopbnmi]|abs|ex</token>
                <token spacebefore="no">.</token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>p</token>
                </marker>
                <token spacebefore="no">.</token>
                <token regexp="yes">\d+</token>
            </pattern>
            <disambig action="add"><wd pos="NCFS000" lemma="pàgina"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">\d+</token>
                <marker>
                    <token>p</token>
                </marker>
                <token spacebefore="no">.</token>
            </pattern>
            <disambig action="add"><wd pos="NCFN000" lemma="pàgina"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">n|min</token>
                </marker>
                <token spacebefore="no">.</token>
                <token regexp="yes">\d+</token>
            </pattern>
            <disambig action="add"><wd pos="NCCN000" /></disambig> <!-- nota o número -->
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="P.*" postag_regexp="yes">hi</token>
                    <token postag="V.*" postag_regexp="yes">ha</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="abreviacions_punt" name="abreviacions seguides de punt">
            <pattern>
                <marker>
                    <token postag="Y"/>
                </marker>
                <token spacebefore="no">.<exception postag="SENT_END"/></token>
            </pattern>
            <disambig action="filter" postag="Y"></disambig>
        </rule>
    </rulegroup>
    <rule id="prefixos_amb_guionet" name="prefixos amb guionet: micro-, mini-">
        <pattern>
            <marker>
                <token regexp="yes">mini|micro|semi|multi</token>
            </marker>
            <token spacebefore="no">-</token>
            <token postag="NC.*|AQ.*" postag_regexp="yes" spacebefore="no"/>
        </pattern>
        <disambig action="replace"><wd pos="AQ0CN0"/></disambig>
    </rule>
    <rulegroup id="sigui_qui_sigui" name="sigui qui sigui">
        <rule>
            <pattern>
                <token postag="VSS.*" postag_regexp="yes"/>
                <token regexp="yes">què|qui|quins|quina|quines</token>
                <token><match no="0"/></token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_CONJ&gt;"/><wd pos="&lt;LOC_CONJ&gt;"/><wd pos="&lt;/LOC_CONJ&gt;"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="VSS.*" postag_regexp="yes"/>
                <token regexp="yes">el|la|els|les</token>
                <token>que</token>
                <token><match no="0"/></token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_CONJ&gt;"/><wd pos="&lt;LOC_CONJ&gt;"/><wd pos="&lt;LOC_CONJ&gt;"/><wd pos="&lt;/LOC_CONJ&gt;"/></disambig>
        </rule>
    </rulegroup>
    <rule id="pujar_i_baixar" name="pujar i baixar (verbs)">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">pujar</token>
                <token postag="CC" regexp="yes">i|o|ni</token>
                <token postag="V.*" postag_regexp="yes" inflected="yes">baixar</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="nompropi_multiword" name="noms propis en multiwords">
        <rule id="nompropi2paraules_filtra" name="nom propi 3 paraules">
            <pattern>
                <token postag="&lt;NP.*&gt;" postag_regexp="yes"></token>
                <token postag="&lt;/NP.*&gt;" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="nompropi3paraules" name="nom propi 3 paraules">
            <pattern>
                <token postag="&lt;NP.*&gt;" postag_regexp="yes"></token>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/NP.*&gt;" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd lemma="NP" pos="NP00000"/></disambig>
        </rule>
        <rule id="nompropi4paraules" name="nom propi 4 paraules">
            <pattern>
                <token postag="&lt;NP.*&gt;" postag_regexp="yes"></token>
                <marker>
                    <token/>
                    <token/>
                </marker>
                <token postag="&lt;/NP.*&gt;" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd lemma="NP" pos="NP00000"/><wd lemma="NP" pos="NP00000"/></disambig>
        </rule>
        <rule id="nompropi3paraules_filtra" name="nom propi 3 paraules">
            <pattern>
                <token postag="&lt;NP.*&gt;" postag_regexp="yes"></token>
                <token postag="NP00000"/>
                <token postag="&lt;/NP.*&gt;" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="nompropi4paraules-filtra" name="nom propi 4 paraules">
            <pattern>
                <token postag="&lt;NP.*&gt;" postag_regexp="yes"></token>
                <token postag="NP00000"/>
                <token postag="NP00000"/>
                <token postag="&lt;/NP.*&gt;" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rulegroup id="nomcomu_multiword" name="noms comuns en multiwords">
        <rule id="nomcomu2paraules" name="nom comú 2 paraules">
            <pattern>
                <marker>
                    <token postag="&lt;NCFS000&gt;"/>
                    <token postag="&lt;/NCFS000&gt;"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCFS000"/><wd pos="AQ0FS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&lt;NCMS000&gt;"/>
                    <token postag="&lt;/NCMS000&gt;"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCMS000"/><wd pos="AQ0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&lt;NCMN000&gt;"/>
                    <token postag="&lt;/NCMN000&gt;"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCMN000"/><wd pos="AQ0MN0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&lt;NCMN000&gt;"/>
                    <token/>
                    <token postag="&lt;/NCMN000&gt;"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCMN000"/><wd pos="AQ0MN0"/><wd pos="AQ0MN0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&lt;_GN_.*" postag_regexp="yes"/>
                    <token postag="&lt;/_GN_.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filterall"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&lt;_GN_.*" postag_regexp="yes"/>
                    <token/>
                    <token postag="&lt;/_GN_.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filterall"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="&lt;_GN_.*" postag_regexp="yes"/>
                <marker>
                    <token/>
                </marker>
                <token postag="&lt;/_GN_.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="_GN_"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="VAN_GOGH" name="van Gogh">
        <rule>
            <pattern>
                <marker>
                    <token>van</token>
                </marker>
                <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>
            </pattern>
            <disambig action="replace"><wd pos="NPCNSP0"/></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="NPCNSP0"/></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="NPCNSP0"/></disambig>
        </rule>
    </rulegroup>
    <rule id="DA_VINCI" name="da Vinci">
        <pattern>
            <marker>
                <token>da</token>
            </marker>
            <token regexp="yes">(?-i)Cividale|Morte|Costa|Lingua|Língua|Gagliano|Palestrina|Perugia|Silva|Cunha|Gama|Viadana|Vinci</token>
        </pattern>
        <disambig action="replace"><wd pos="NPCNSP0"/></disambig>
    </rule>
    <rule id="RIU_AMUNT" name="riu amunt/avall">
        <pattern>
            <marker>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">riu|costa|baixada|escala|escales</token>
            </marker>
            <token regexp="yes">amunt|avall</token>
        </pattern>
        <disambig action="filter" postag="NC.*"/>
    </rule>
    <rule id="CURT" name="curt no adverbi">
        <pattern>
            <token><exception postag="V.[MSI].*|_GV_" postag_regexp="yes"/></token>
            <marker>
                <token>curt</token>
            </marker>
        </pattern>
        <disambig action="remove"><wd pos="RG"></wd></disambig>
    </rule>
    <rulegroup id="darrera" name="permet 'darrera' en alguns casos">
        <rule>
            <pattern>
                <token postag="AO.*" postag_regexp="yes"/>
                <token postag="CC"/>
                <marker>
                    <token>darrera</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_allow_darrera"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="AO.*" postag_regexp="yes"/>
                <token regexp="yes">[(,]</token>
                <token postag="CC"/>
                <marker>
                    <token>darrera</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_allow_darrera"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="1" regexp="yes">següent|.*ª</token>
                <token postag="CC"/>
                <marker>
                    <token>darrera</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_allow_darrera"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">,|i</token>
                <marker>
                    <token>darrera</token>
                </marker>
                <token regexp="yes">abans|després|que</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_darrera"/></disambig>
        </rule>
    </rulegroup>
    <rule id="valer_la_pena" name="valer la pena">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">valer|pagar</token>
                <token postag="D.*" postag_regexp="yes">la</token>
                <token postag="N.*" postag_regexp="yes">pena</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="posar_fi_a" name="posar fi a">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">posar</token>
                <token postag="NCFS000">fi</token>
                <token postag="SPS00">a</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="deixar_a_part" name="deixar a part, a banda, de banda">
        <rule>
            <pattern>
                <token inflected="yes">deixar</token>
                <token>a</token>
                <marker>
                    <token regexp="yes">banda|part</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="&lt;/LOC_ADV&gt;"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">deixar</token>
                <token>de</token>
                <marker>
                    <token>banda</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="&lt;/LOC_ADV&gt;"></disambig>
        </rule>
    </rulegroup>
    <rule id="deixar_de_fer" name="deixar de fer">
        <pattern>
            <marker>
                <token regexp="yes">deixa|deixes</token>
            </marker>
            <token inflected="yes">de</token>
            <token postag="V.N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="fa_entre" name="fa entre"> <!-- Problema: que es feia entre quatre -->
        <rule>
            <pattern>
                <token postag="V.I[PI]3S0." postag_regexp="yes" inflected="yes">fer</token>
                <marker>
                    <token>entre</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="SPS00"/>
        </rule>
        <!-- <rule>
            <pattern>
            <marker>
            <token postag="V.I[PI]3S0." postag_regexp="yes" inflected="yes">fer</token>
            </marker>
            <token>entre</token>
            </pattern>
            <disambig action="filter" postag="&lt;LOC_ADV&gt;"></disambig>
            </rule> -->
        <rule>
            <pattern>
                <token regexp="yes">de|entre</token>
                <marker>
                    <token postag="V.I[PI]3S0." postag_regexp="yes" inflected="yes">fer</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
    </rulegroup>
    <!-- <rulegroup id="fa_x_temps" name="fa tres anys, fa molt de temps">
        <rule>
        <pattern>
        <token><exception postag="PI0CS000|NP..SP.*|&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
        <marker>
        <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="12">fer<exception postag=".*LOC_ADV.*" postag_regexp="yes"/><exception scope="next" regexp="yes">que|en</exception><exception scope="next" postag="_PUNCT.*" postag_regexp="yes">,</exception><exception postag="V.*" postag_regexp="yes" scope="next"/></token>
        </marker>
        <token regexp="yes">segons?|minuts?|hor(a|es)|di(a|es)|setman(a|es)|mes|mesos|(tri|quadri|se)mestres?|anys?|lustres?|dècad(a|es)|segles?|mil·lennis?|moments?|instants?|temps|estona</token>
        </pattern>
        <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
        <pattern>
        <token><exception postag="PI0CS000|NP..SP.*|&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
        <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="12">fer<exception scope="next" regexp="yes">que|en</exception><exception scope="next" postag="_PUNCT.*" postag_regexp="yes">,</exception><exception postag="V.*" postag_regexp="yes" scope="next"/></token>
        <marker>
        <token regexp="yes">segons?|minuts?|hor(a|es)|di(a|es)|setman(a|es)|mes|mesos|(tri|quadri|se)mestres?|anys?|lustres?|dècad(a|es)|segles?|mil·lennis?|moments?|instants?|temps|estona</token>
        </marker>
        </pattern>
        <disambig action="add"><wd pos="&lt;/LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
        <pattern>
        <token><exception postag="NP..SP.*|&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
        <marker>
        <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="1">fer<exception postag=".*LOC_ADV.*" postag_regexp="yes"/><exception scope="next" regexp="yes">,|que|en</exception><exception postag="V.*" postag_regexp="yes" scope="next"/></token>
        </marker>
        <token regexp="yes">molt|poc</token>
        </pattern>
        <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
        <pattern>
        <token><exception postag="NP..SP.*|&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
        <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="1">fer<exception scope="next" regexp="yes">,|que|en</exception><exception postag="V.*" postag_regexp="yes" scope="next"/></token>
        <marker>
        <token regexp="yes">molt|poc</token>
        </marker>
        </pattern>
        <disambig action="add"><wd pos="&lt;/LOC_ADV&gt;"></wd></disambig>
        </rule>
        </rulegroup> -->
    <rulegroup id="la_paraula_x" name="la paraula x + verb">
        <rule>
            <pattern>
                <token postag="DA.*" postag_regexp="yes"/>
                <token inflected="yes" regexp="yes">mot|paraula|terme|expressió|vocable|nom|tipus|denominació</token>
                <marker>
                    <and>
                        <token postag="V.[IMS].*" postag_regexp="yes"/>
                        <token postag="NC.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="V.[IMS].*|P0.*|PP.*" postag_regexp="yes"><exception regexp="yes">si|['-].+|jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vostès?|vós</exception></token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="unitats" name="unitats de mesura abreviades">
        <rule>
            <pattern>
                <token regexp="yes">[1234567890., ]+|/|per<exception postag="_PUNCT.*" postag_regexp="yes"/></token>
                <marker>
                    <token>ha</token>
                </marker>
                <token><exception postag="V.P.*(M|SF)." postag_regexp="yes"/></token> <!-- Excepció: 2012 ha sigut -->
            </pattern>
            <disambig action="filter" postag="Y" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[1234567890., ]+|/|per<exception postag="_PUNCT.*" postag_regexp="yes"/></token>
                <marker>
                    <token>min</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="Y" />
        </rule>
    </rulegroup>
    <rule id="ES_CASA" name="es casa">
        <pattern>
            <token regexp="yes">em|et|el|ens|us|vos|els|es</token>
            <marker>
                <token postag="V.*" postag_regexp="yes">casa</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*" />
    </rule>
    <rulegroup id="nom_seguitde_nompropi" name="nom seguit de nom propi: el mont Or">
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">&nom_seguitde_nompropi;</token>
                <marker>
                    <and>
                        <token postag="V.*" postag_regexp="yes" regexp="yes">\p{Lu}.+</token>
                        <token postag="V.*" postag_regexp="yes" negate_pos="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*" />
            <example type="untouched">Amb qui es <marker>casa</marker> Lídia?</example>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">&nom_seguitde_nompropi;</token>
                </marker>
                <token regexp="yes">\p{Lu}.+</token>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <!-- igual però amb cometes -->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">&nom_seguitde_nompropi;</token>
                <token regexp="yes">['"‘“«] </token>
                <marker>
                    <and>
                        <token postag="V.*" postag_regexp="yes" regexp="yes">\p{Lu}.+</token>
                        <token postag="V.*" postag_regexp="yes" negate_pos="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">&nom_seguitde_nompropi;</token>
                </marker>
                <token regexp="yes">['"‘“«] </token>
                <token regexp="yes">\p{Lu}.+</token>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
    </rulegroup>
    <rulegroup id="excepcions_nomspropis" name="excepcions a noms propis">
        <rule>
            <pattern>
                <token postag="D...P." postag_regexp="yes"/>
                <marker>
                    <token postag="NPCSG0V">Dolors</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NPCSG0V"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D..FP." postag_regexp="yes"/>
                <marker>
                    <token postag="NPCSG0V">Barraques</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NPCSG0V"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D..FP." postag_regexp="yes"/>
                <marker>
                    <token postag="NPCSG0V">Figueres</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NPCSG0V"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="Nom_propi" name="noms propis">
        <rule>
            <pattern>
                <token><exception postag="SENT_START"/><exception regexp="yes">[¿?¡!"'‘“«»—–:\-]</exception></token>
                <marker>
                    <token postag="NP.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="NP.*"/>
        </rule>
        <rule> <!-- Lluís Nadal persegueix -->
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token postag="NP.*" postag_regexp="yes" skip="3"><exception postag="RG|CC|DD.*" postag_regexp="yes"/><exception scope="next" postag="V.P.*|SPS00|D[AI].*|C.*" postag_regexp="yes"/><exception scope="next" postag="P.*" postag_regexp="yes" regexp="yes">['-].+</exception></token>
                </marker>
                <token postag="V.[MSI].3.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="NP.*"/>
        </rule>
        <rule> <!-- Lluís Nadal exigeix -->
            <pattern>
                <token regexp="yes">[¿?¡!"'‘“«»—–:\-]</token>
                <marker>
                    <token postag="NP.*" postag_regexp="yes" skip="3"><exception postag="A.*" postag_regexp="yes"/><exception scope="next" postag="V.P.*" postag_regexp="yes"/><exception scope="next" postag="P.*" postag_regexp="yes" regexp="yes">['-].+</exception></token>
                </marker>
                <token postag="V.[MSI].3.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="NP.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" negate_pos="yes"/>
                <marker>
                    <token postag=".+NPMSG00.+" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPMSG00"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" negate_pos="yes"/>
                <marker>
                    <token postag=".+NPFSG00.+" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPFSG00"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" negate_pos="yes"/>
                <marker>
                    <token postag=".+NPMPG00.+" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPMPG00"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" negate_pos="yes"/>
                <marker>
                    <token postag=".+NPFPG00.+" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPFPG00"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" negate_pos="yes"/>
                <marker>
                    <token postag=".+NPCNG00.+" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPCNG00"/>
        </rule>
        <rule> <!-- No serveix. Cal generalitzar-ho. Potser cal escriure un CatalanMultiwords diferent -->
            <pattern>
                <marker>
                    <token postag="&lt;NPMSO00&gt;"/>
                    <token/>
                    <token postag="&lt;/NPMSO00&gt;"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NPMSO00"/><wd pos="NPMSO00"/><wd pos="NPMSO00"/></disambig>
        </rule>
        <rule id="lletres_majuscules" name="lletres soltes majúscules">
            <pattern>
                <token><exception postag="SENT_START"/><exception regexp="yes">[¿?¡!"'‘“«»—–:\-]</exception></token>
                <marker>
                    <token regexp="yes">\p{Lu}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="NPCN000"/>
        </rule>
        <rule id="senyor_senyora" name="senyor -a">
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">duc|senyor|doctor|director|rector|amic</token>
                </marker>
                <token regexp="yes">\p{Lu}.*</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule id="sant" name="sant">
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="AQ.*" postag_regexp="yes" inflected="yes">sant</token>
                    <token postag="NP..SP.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="unify"/>
        </rule>
        <rule id="el_nompropi" name="el + nom propi">
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="DA.*" postag_regexp="yes" inflected="yes">el</token>
                    <token postag="NP..SP.*" postag_regexp="yes"><exception postag="NP..G.*" postag_regexp="yes"/></token>
                </unify>
            </pattern>
            <disambig action="unify"/>
        </rule>
        <rule id="nompropi_ordinal" name="nom propi + ordinal: Pere III">
            <pattern>
                <marker>
                    <token postag="NP.S.*" postag_regexp="yes"/>
                </marker>
                <token postag="AO.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="NP.S.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="esser" name="ésser: nom no verb">
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">ésser|esser|ser</token>
                </marker>
                <token postag_regexp="yes" postag="&pronom_feble;" spacebefore="no"/>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">ésser|esser</token>
                </marker>
                <token regexp="yes">humà|viu|vivent</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D..MS." postag_regexp="yes"><exception>en</exception></token>
                    <token postag="NCMS000" regexp="yes">ésser|esser</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="tret" name="tret: no preposició">
        <pattern>
            <token postag="D[AID].MS." postag_regexp="yes"/>
            <marker>
                <token postag="N.*" postag_regexp="yes">tret</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*|V.P.*"/>
    </rule>
    <rulegroup id="interjeccions" name="interjeccions">
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes">ha</token>
                </marker>
                <token inflected="yes">de</token>
            </pattern>
            <disambig action="filter" postag="V.*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">h[ea]</token>
                </marker>
                <token>,</token>
                <token><match no="0"/></token>
            </pattern>
            <disambig action="replace" postag="I" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">h[ea]</token>
                <token>,</token>
                <marker>
                    <token><match no="0"/></token>
                </marker>
            </pattern>
            <disambig action="replace" postag="I" />
        </rule>
        <rule>
            <pattern>
                <token><exception>hi</exception></token>
                <marker>
                    <token regexp="yes">h[ea]</token>
                </marker>
                <token>!</token>
            </pattern>
            <disambig action="replace" postag="I" />
        </rule>
        <rule>
            <pattern>
                <token>ha</token>
                <token>,</token>
                <marker>
                    <token>ha</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="I" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>la</token>
                </marker>
                <token regexp="yes">que|què|qui|qual</token>
            </pattern>
            <disambig action="filter" postag="DA.*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token skip="3">rai</token>
                </marker>
                <token>!</token>
            </pattern>
            <disambig action="filter" postag="I" />
        </rule>
        <rule>
            <pattern>
                <token>som</token>
                <token>-hi</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>tant</token>
                <token regexp="yes">me|te|li</token>
                <token regexp="yes">fa|feia</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>tant</token>
                <token>se</token>
                <token>val</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>heus</token>
                <token regexp="yes">-(ne|el|la)</token>
                <token regexp="yes">ací|aquí</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>valga</token>
                <token spacebefore="no">'m</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>maleït</token>
                    <token>siga</token>
                </marker>
                <token>!</token>
            </pattern>
            <disambig action="replace"><wd pos="I"/><wd pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START|_PUNCT.*|C.*" postag_regexp="yes"/>
                <marker>
                    <token>tant</token>
                    <token>de</token>
                    <token>bo</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd lemma="tant_de_bo" pos="I"/><wd lemma="tant_de_bo" pos="I"/><wd lemma="tant_de_bo" pos="I"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token min="3">ha</token>
                </marker>
            </pattern>
            <disambig action="immunize"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="vet_aci" name="vet/veus ací">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">vet|heus</token>
                </marker>
                <token regexp="yes">ací|aquí</token>
            </pattern>
            <disambig action="add"><wd lemma="vet" pos="VMM02S00"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">vet|heus</token>
                </marker>
                <token postag="P.*" postag_regexp="yes" regexp="yes">-(ho|lo|la|los|les|ne)</token>
                <token regexp="yes">ací|aquí</token>
            </pattern>
            <disambig action="add"><wd lemma="vet" pos="VMM02S00"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>ve</token>
                </marker>
                <token postag="P.*" postag_regexp="yes">-t</token>
                <token postag="P.*" postag_regexp="yes">'ho</token>
                <token regexp="yes">ací|aquí</token>
            </pattern>
            <disambig action="add"><wd lemma="vet" pos="VMM02S00"/></disambig>
        </rule>
        <!-- Altres combinacions són col·loquials: ve-li aquí -->
    </rulegroup>
    <rulegroup id="no_se_quin" name="no sé quin">
        <rule>
            <pattern>
                <token>no</token>
                <marker><token skip="1">sé</token></marker>
                <token regexp="yes">qui|quin|quins|quina|quines|on|com|què|quan</token>
            </pattern>
            <disambig action="add"><wd pos="_loc_nosequi"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">vés|aneu</token>
                </marker>
                <token>a</token>
                <token>saber</token>
                <token regexp="yes">qui|quin|quins|quina|quines|on|com|què|quan</token>
            </pattern>
            <disambig action="add"><wd pos="_loc_nosequi"/></disambig>
        </rule>
    </rulegroup>
    <rule id="diguem_ne" name="diguem-ne">
        <pattern>
            <marker><token>diguem</token></marker>
            <token>-ne</token>
        </pattern>
        <disambig action="add"><wd pos="_loc_nosequi"/></disambig>
    </rule>
    <rulegroup id="nDet" name="no Determinant">
        <!--  paraules comunes que no solen ser determinants gairebé mai -->
        <rule>
            <pattern>
                <token><exception postag="SPS00"/></token>
                <marker>
                    <token regexp="yes">es|s'</token>
                </marker>
            </pattern>
            <disambig>
                <match no="1" postag_regexp="yes" postag="[^D].*"></match>
            </disambig>
        </rule>
        <rule> <!-- però: amb so ganivet -->
            <pattern>
                <marker>
                    <token>so</token>
                </marker>
            </pattern>
            <disambig>
                <match no="1" postag_regexp="yes" postag="[^D].*"></match>
            </disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>sa</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="DA0FS0"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">en</token>
                </marker>
                <token negate="yes" regexp="yes" inflected="yes">\p{Lu}\p{Ll}*</token>
            </pattern>
            <disambig><match no="1" postag_regexp="yes" postag="[^D].*"></match></disambig>
        </rule>
        <rule> <!-- no usem la interpretació de determinant -->
            <pattern>
                <token regexp="yes">[nv]ostres?</token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
        <rule>
            <pattern>
                <marker><token>eixos</token></marker>
                <token>cartesians</token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
        <rule>
            <pattern>
                <marker><token>eixos</token></marker>
                <token><exception postag="N.MP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
    </rulegroup>
    <rule id="excepcions_preposicions" name="entre a; entre en">
        <pattern>
            <marker>
                <token>entre</token>
            </marker>
            <token regexp="yes">a|en</token>
            <token postag="D.*|V.N.*|A.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*" />
        <example type="untouched"><marker>Entre</marker> en Pep i en Joan.</example>
    </rule>
    <rulegroup id="preposicions" name="preposicions: sobre, contra, en">
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">.*caure|convertir</token>
                <marker>
                    <token postag="SPS00">en</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="SPS00" />
        </rule>
        <rule>
            <pattern>
                <token><exception regexp="yes">em|et|li|ens|us|vos|els|el|a</exception></token>
                <marker>
                    <token>sobre</token>
                </marker>
                <token postag="D.*|NP.*|NC.[PN].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="SPS00" />
            <example type="untouched">Que no li <marker>sobre</marker> res.</example>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*|_GV_|V.*|_GN.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="[VN].*" postag_regexp="yes" regexp="yes">sobre|entre</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^VN].*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>contra</token>
                </marker>
                <token postag="D.*|NC.*|_GN.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="SPS00|.*LOC_ADV.*" />
        </rule>
    </rulegroup>
    <rule id="ara_no_conjuncio" name="ara (adverbi no conjunció)"> <!-- ¿És necessari en algun cas? -->
        <pattern>
            <marker>
                <token postag="RG">ara<exception postag=".*_GN_.*" postag_regexp="yes"/></token>
            </marker>
            <token><exception regexp="yes">bé|,</exception></token>
        </pattern>
        <disambig action="remove" postag="CC" />
    </rule>
    <rule id="vol_noverb" name="vol no verb">
        <pattern>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">vols?</token>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token regexp="yes">xàrter|charter|comercials?|transoceànics?|privats?</token>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="vol" name="vol no nom">
        <pattern>
            <token><exception postag="D.*|A.*|V.P.*|SENT_START|SPS00|.*LOC_.*|PX.*" postag_regexp="yes"/><exception regexp="yes" inflected="yes">haver|tenir</exception></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">vols?</token>
                    <token postag="V.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token><exception regexp="yes">de|d'</exception></token>
        </pattern>
        <disambig action="remove" postag="N.*"/>
        <example type="untouched"><marker>Vols</marker> transoceànics</example>
        <example type="untouched">de <marker>vols</marker> transoceànics</example>
        <example type="untouched">Encara hi ha <marker>vols</marker> avui?</example>
    </rule>
    <rule id="es_la" name="prevenció en error: es/és la">
        <pattern>
            <token>es</token>
            <marker>
                <token postag="DA.*" postag_regexp="yes"/>
            </marker>
            <token postag="[NA].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="remove" postag="P.*"/>
    </rule>
    <rule id="donat_cas" name="cas (masc sg)">
        <pattern>
            <token postag="V.P..SM." postag_regexp="yes"></token>
            <marker>
                <token postag="NCMS000">cas</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="el_doble" name="el doble (no verb)">
        <pattern>
            <token postag="RG"/>
            <token>el</token>
            <marker>
                <token postag="V.*" postag_regexp="yes">doble</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rulegroup id="notes_musicals" name="notes musicals (nom)">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">do|re|mi|fa|sol|si</token>
                </marker>
                <token regexp="yes">menor|major|sostingut|bemoll|diesi|becaire</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>la</token>
                </marker>
                <token regexp="yes">sostingut|bemoll|diesi|becaire</token>
            </pattern>
            <disambig action="filter" postag="N.*"/>
            <example type="untouched">És <marker>la</marker> major concentració mundial de cotxes.</example>
        </rule>
    </rulegroup>
    <rulegroup id="molt_noparticipi" name="molt no participi">
        <rule>
            <pattern>
                <token>hi</token>
                <token min="0" max="3" inflected="yes" regexp="yes">poder|anar|a|de|voler|deure</token>
                <token min="1" max="2" inflected="yes">haver</token>
                <marker>
                    <token inflected="yes">molt</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.P.*"/>
        </rule>
        <rule>
            <pattern>
                <token>hi</token>
                <token inflected="yes">haver</token>
                <token min="0" max="3" inflected="yes" regexp="yes">poder|anar|a|de|voler|deure</token>
                <token min="1" max="2" inflected="yes">haver</token>
                <marker>
                    <token inflected="yes">molt</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.P.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">ser</token>
                <marker>
                    <token inflected="yes">molt</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.P.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">molt</token>
                </marker>
                <token>ben</token>
                <token postag="V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="V.P.*"/>
        </rule>
        <rule> <!-- si encara no s'ha eliminat el participi -->
            <pattern>
                <token inflected="yes">haver</token>
                <marker>
                    <and>
                        <token postag="V.P.*" postag_regexp="yes" inflected="yes">moldre</token>
                        <token inflected="yes">molt</token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="[DPR].*"/>
        </rule>
        <rule> 
            <pattern>
                <token postag="[DPR].*" postag_regexp="yes" inflected="yes">molt</token>
            </pattern>
            <disambig action="remove" postag="V.P.*"/>
        </rule>
    </rulegroup>
    <rule id="fer_nVerbConjug" name="no sol ser verb conjugar: fer">
        <!--  paraules comunes que no solen ser verb gairebé mai -->
        <pattern>
            <marker>
                <token regexp="yes">fer|refer</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.N.*|AQ.*" />
    </rule>
    <rulegroup id="PrimPersPresSing" name="verb primera persona present singular ">
        <rule>
            <pattern>
                <token>jo</token>
                <marker>
                    <token postag="VM[IS]P1S0.?" postag_regexp="yes"><exception regexp="yes">fem|inquiet|sol|com|despert|intern</exception><exception postag="V..I1S0.?" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P1S0.?" />
        </rule>
        <rule id="improbable_verb_balear" name="verb balear improbable">
            <pattern>
                <marker>
                    <token postag="VMIP1S0B" regexp="yes">subsol|pis|xiv|plaç|estàs|après</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
        </rule>
        <!--
            <rule>
            <pattern>
            <token>jo</token>
            <token postag="PP.*|P0.*" postag_regexp="yes" />
            <marker>
            <token postag="VM[IS]P1S0" postag_regexp="yes" />
            </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P1S0" />
            </rule>
            <rule>
            <pattern>
            <token>jo</token>
            <token postag="PP.*|P0.*" postag_regexp="yes" />
            <token postag="PP.*|P0.*" postag_regexp="yes" />
            <marker>
            <token postag="VM[IS]P1S0" postag_regexp="yes" />
            </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P1S0" />
            </rule> -->
        <rule>
            <!-- un cop, aquestes tres; trasbalsat estic-->
            <pattern>
                <token postag="D[DI].*|AQ.*|V.*" postag_regexp="yes"></token>
                <marker>
                    <and>
                        <token postag="VMIP1S0B"><exception regexp="yes">estic|dic</exception></token>
                        <token postag="VMIP1S0B" negate_pos="yes" />
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>entre</token>
                </marker>
                <token>d'</token>
                <token>altres</token>
            </pattern>
            <disambig action="filter" postag="SPS00" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="SPS00">entre</token>
                </marker>
                <token/>
                <token regexp="yes">i|o</token>
            </pattern>
            <disambig action="filter" postag="SPS00" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">respecte</token>
                </marker>
                <token regexp="yes" inflected="yes">a|de</token>
            </pattern>
            <disambig action="filter" postag="&lt;LOC_PREP&gt;" />
        </rule>
        <rule> <!-- cal controlar les excepcions -->
            <pattern>
                <token><exception regexp="yes">que|em|et|es|la|ens|us|els|les|en|ho|li|vos</exception></token> <!-- el? -->
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">respecte</token>
                        <token postag="V.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token postag="V.[IS].*" postag_regexp="yes"></token>
                <marker>
                    <and>
                        <token postag="VMIP1S0.?" postag_regexp="yes"/>
                        <token postag="V.N.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*" />
        </rule>
    </rulegroup>
    <rulegroup id="SegPersPresSing" name="verb segona persona present singular ">
        <rule>
            <pattern>
                <token><exception postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/></token>
                <token>tu</token>
                <marker>
                    <token postag="V.[IS].2S0.?" postag_regexp="yes" />
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[MIS].2S0.?" />
        </rule>
        <rule>
            <pattern>
                <token><exception postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/></token>
                <token>tu</token>
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <marker>
                    <token postag="V.[IS].2S0.?" postag_regexp="yes" />
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS].2S0.?" />
        </rule>
        <rule>
            <pattern>
                <token><exception postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/></token>
                <token>tu</token>
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <marker>
                    <token postag="V.[IS].2S0.?" postag_regexp="yes" />
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS].2S0.?" />
        </rule>
    </rulegroup>
    <rulegroup id="SegPersSing" name="verb segona persona singular">
        <rule>
            <pattern>
                <!-- cal revisar amb cura |UNKNOWN -->
                <token postag="(DD|PD).*|V.*|P[P0].*|NP.*|NC.*" postag_regexp="yes"><exception postag="C.*|R.*|DA.*|V.N.*|PT.*" postag_regexp="yes"/><exception regexp="yes">tu|e[mts]|[mts]e|ens|us|[mtsln]'|'[mtsln]|'ls|'ns|li|els?|la|les|en|hi|ho|any|dia</exception></token>
                <marker>
                    <and>
                        <token postag="V.[IS].2S0." postag_regexp="yes"><exception regexp="yes">creus|penses|esperes|deus|trobes|dius|vas|prens|pots|vols|sols|tens|confesses|veus|traus</exception></token>
                        <token postag="N.*|A.*|V.P.*" postag_regexp="yes" />
                    </and>
                </marker>
                <token><exception>?</exception></token>
            </pattern>
            <disambig action="remove" postag="V.[IS].2S0." /> <!-- les ha vistes estenent la roba -->
            <example type="untouched">Quan tingues gana te'ls menges.</example>
            <example type="untouched">Digues quines diferències creus que existeixen.</example>
            <example type="untouched">Digues quines diferències creus tu que existeixen.</example>
        </rule>
        <rule> <!-- ben paleses -->
            <pattern>
                <token regexp="yes">molt|ben|tan</token>
                <marker>
                    <and>
                        <token postag="V.[IS].2S0.?" postag_regexp="yes"></token>
                        <token postag="A.*" postag_regexp="yes" />
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*" />
        </rule>
        <rule> <!--avantatges (amb menys restriccions)-->
            <pattern>
                <token><exception regexp="yes">tu|ens|m'</exception></token>
                <marker>
                    <and>
                        <token postag="V.[IS].2S0." postag_regexp="yes">avantatges</token>
                        <token postag="N.*|A.*|V.P.*" postag_regexp="yes" />
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.[IS].2S0." /> <!-- les ha vistes estenent la roba -->
            <example type="untouched">Ens avanatges en tot.</example>
        </rule>
    </rulegroup>
    <rulegroup id="en_veu" name="en veu baixa">
        <rule>
            <pattern>
                <token>en</token>
                <marker>
                    <token>veu</token>
                </marker>
                <token postag="AQ.[FC][SN]." postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token>en</token>
                <marker>
                    <token>veu</token>
                </marker>
                <token postag="RG_anteposat"/>
                <token postag="AQ.[FC][SN]." postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
    </rulegroup>
    <rule id="en_sec" name="en sec"> <!-- Exception to next rule -->
        <pattern>
            <token>en</token>
            <marker>
                <token>sec</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*" />
    </rule>
    <rule id="en_persona" name="en persona"> <!-- Exception to next rule -->
        <pattern>
            <token>en</token>
            <marker>
                <token regexp="yes">persona|vers</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*" />
    </rule>
    <rulegroup id="TerPersPresSing" name="verb tercera persona present singular ">
        <!-- també qualsevol nom comú o nom+adj ??-->
        <rule>
            <pattern>
                <token><exception postag="SPS00"/></token>
                <token regexp="yes">ella?</token>
                <marker>
                    <token postag="V.[IS]P3S0.?" postag_regexp="yes"><exception regexp="yes">sola?|entre|encara</exception><exception postag="V...2.." postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P3S0.?" />
        </rule>
        <rule> <!-- exception: davant d'ell el seu triomf -->
            <pattern>
                <token><exception postag="SPS00"/></token>
                <token regexp="yes">ella?</token>
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <marker>
                    <token postag="V.[IS]P3S0.?" postag_regexp="yes"><exception regexp="yes">seu|.+e</exception><exception postag="V...2.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P3S0.?" />
        </rule>
        <rule>
            <pattern>
                <token><exception postag="SPS00"/></token>
                <token regexp="yes">ella?</token>
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <token postag="PP.*|P0.*" postag_regexp="yes" />
                <marker>
                    <token postag="V.[IS]P3S0.?" postag_regexp="yes"><exception>seu</exception><exception postag="V...2.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[IS]P3S0.?" />
        </rule>
    </rulegroup>
    <rulegroup id="noms_aposicio" name="noms en aposició">
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <token>braille</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">camió|tren|avió|autobomba|contenidor|remolc|vagó|vaixell</token>
                <marker>
                    <token>cisterna</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">esdeveniment|escola|planta|centre|projecte|proposta|pis|apartament|casa</token>
                <marker>
                    <token>pilot</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">energia|potència|valor|quantitat|xifra|import|volum|pes|durada|quantia|mesura|suma</token>
                <marker>
                    <token>llindar</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">pel·lícula|film|obra|director|llibre|actor|actriu|autor|escriptor|equip|jugador|entrenador|davanter|golejador</token>
                <marker>
                    <token>revelació</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">carpeta|directori|certificat</token>
                <marker>
                    <token>arrel</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">ós|óssa</token>
                <marker>
                    <token>panda</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">matriu</token>
                <marker>
                    <token>identitat</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">escola</token>
                <marker>
                    <token>bressol</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">memòria</token>
                <marker>
                    <token>cau</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FN0" />
        </rule>
        <rule>
            <pattern>
                <token>paper</token>
                <marker>
                    <token>moneda</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>lletra</token>
                <marker>
                    <token postag="NCFS.*" postag_regexp="yes" regexp="yes">.{1,6}</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FS0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">efecte|tipus</token>
                <marker>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="NC.*" postag_regexp="yes" negate_pos="yes"/></token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>anys</token>
                <marker>
                    <token>llum</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token>any</token>
                <marker>
                    <token>llum</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>déu</token>
                <marker>
                    <token regexp="yes">pare|fill|esperit</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>pare</token>
                <marker>
                    <token regexp="yes">confessor|administrador|director|prior|prefecte|rector</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>el</token>
                <marker>
                    <token>pare</token>
                </marker>
                <token postag="NCMS000"/>
            </pattern>
            <disambig action="filter" postag="NC.*" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">retrats?|fotos?</token>
                <marker>
                    <token>robot</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token>pantalons</token>
                <marker>
                    <token>bombatxos</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">arcs?</token>
                <marker>
                    <token>iris</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">correus?</token>
                <marker>
                    <token>brossa</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">factor|efecte|convidat|convidada|invitat|invitada|festa|celebració|atac</token>
                <marker>
                    <token>sorpresa</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">mot|paraula|tema</token>
                <marker>
                    <token>tabú</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token>decrets</token>
                <marker>
                    <token>llei</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token>decret</token>
                <marker>
                    <token>llei</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>comte</token>
                <marker>
                    <token regexp="yes">duc|rei</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>comtes</token>
                <marker>
                    <token regexp="yes">ducs|reis</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token>home</token>
                <marker>
                    <token>llop</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>homes</token>
                <marker>
                    <token>llop</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">ciutats?</token>
                <marker>
                    <token>estat</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FN0" />
        </rule>
        <rule>
            <pattern>
                <token>estats</token>
                <marker>
                    <token regexp="yes">membres?|nació</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token>estat</token>
                <marker>
                    <token regexp="yes">membre|nació</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token>país</token>
                <marker>
                    <token>membre</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">metge</token>
                </marker>
                <token inflected="yes" regexp="yes">.+òleg|.+iatre|.+ista|cirurgià</token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule> <!--  hauria d'anar a Multiwords: -->
            <pattern>
                <marker>
                    <token inflected="yes">torre</token>
                </marker>
                <token inflected="yes" regexp="yes">campanar|talaia</token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">torre</token>
                <marker>
                    <token inflected="yes" regexp="yes">campanar|talaia</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0"/>
        </rule>
        <rule>  <!--  hauria d'anar a Multiwords: -->
            <pattern>
                <marker>
                    <token inflected="yes" regexp="yes">poble|barri</token>
                </marker>
                <token inflected="yes" regexp="yes">fantasma|dormitori|castell|camí</token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">poble|ciutat|barri</token>
                <marker>
                    <token inflected="yes" regexp="yes">fantasma|dormitori|castell|camí</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>  <!--  hauria d'anar a Multiwords: -->
            <pattern>
                <marker>
                    <token inflected="yes">ministre</token>
                </marker>
                <token>secretari</token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule> <!--  hauria d'anar a Multiwords:
            acord marc, infant cantor/prodigi, raïm moscatell, ball espectacle, ciutat jardí, pedra capitell,
            cardenal arquebisbe, cardenal prevere, granja escola  -->
            <pattern>
                <token>sal</token>
                <marker>
                    <token regexp="yes">sosa|gemma</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="AQ0FS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="[NA].*|_GN_.*" postag_regexp="yes" negate_pos="yes" /><exception regexp="yes">gran|possible|major</exception></token>
                <marker>
                    <token regexp="yes" postag="NC.*" postag_regexp="yes">consort|mare|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base|pont|sulfat|fosfat|calci|gas|satèl·lit|gel</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="D.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"><exception postag="A.*|V.N.*|PX.*|V.P.*" postag_regexp="yes"/><exception regexp="yes">son|sa</exception></token>
                </unify>
                <marker>
                    <token regexp="yes">consort|mare|pare|fill|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base|pont|sulfat|fosfat|calci|gas|satèl·lit|gel</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
            <example type="untouched">El meu pare era de l'associació.</example>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="[NA].*|_GN_.*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">obra|propietat|objecte</token>
                </marker>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="replace" postag="AQ0CN0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N..S.*" postag_regexp="yes"><exception postag="[NA].*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">víctima|màrtir|terratinent|mascle|femella|especialista</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CS0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N..P.*" postag_regexp="yes"><exception postag="[NA].*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">víctimes|màrtirs|terratinents|mascles|femelles|membres|claus|especialistes|estàndards</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0CP0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N.MS.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">candidat|hereu|propietari</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MS0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N.MP.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">candidats|hereus|propietaris</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MP0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N.FS.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">candidata|hereua|hereva|propietària</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FS0" />
        </rule>
        <rule>
            <pattern>
                <token postag="N.FP.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes" negate_pos="yes" /></token>
                <marker>
                    <token regexp="yes">candidates|hereues|hereves|propietàries</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FP0" />
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">cotxes?|paquets?</token>
                <marker>
                    <token>bomba</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MN0" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">tren</token>
                </marker>
                <token regexp="yes">cremallera|tramvia|correu</token>
            </pattern>
            <disambig action="filter" postag="NC.*" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">tren</token>
                <marker>
                    <token regexp="yes">cremallera|tramvia|correu</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0MN0" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">nota</token>
                <marker>
                    <token regexp="yes">do|re|mi|sol|si</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">nota</token>
                <marker>
                    <token regexp="yes">la|fa</token>
                </marker>
                <token><exception>que</exception><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="N.*" />
        </rule>
        <rule>
            <pattern>
                <token>carta</token>
                <marker>
                    <token regexp="yes">pobla|bomba</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FS0" />
        </rule>
        <rule>
            <pattern>
                <token>dona</token>
                <marker>
                    <token regexp="yes">pilot|alcaldessa|(.*)presidenta|policia|astronauta|cosmonauta|bombera</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FS0" />
        </rule>
        <rule>
            <pattern>
                <token>zona</token>
                <marker>
                    <token>centre</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FS0" />
        </rule>
        <rule>
            <pattern>
                <token>cartes</token>
                <marker>
                    <token regexp="yes">pobla|bomba</token>
                </marker>
            </pattern>
            <disambig action="replace" postag="AQ0FP0" />
        </rule>
    </rulegroup>
    <!-- verb imperatiu, infinitiu o gerundi seguit de pronom-->
    <rule id="VERB_PP" name="verb seguit de pronom">
        <pattern>
            <marker>
                <token postag="V.[MNG].*" postag_regexp="yes"></token>
            </marker>
            <token postag="&pronom_feble;" postag_regexp="yes" regexp="yes" spacebefore="no">['-].+</token>
        </pattern>
        <disambig action="filter" postag="V.[MNG].*|_GV_|_loc_nosequi|_perfet|_obligacio"/>
    </rule>
    <rule id="nAdverbi" name="no adverbi">
        <!--  paraules comunes que no solen ser adverbi gairebé mai -->
        <pattern>
            <marker>
                <token>poder</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^R].*"></disambig>
    </rule>
    <rulegroup id="infinitiu_complement" name="Verb en infinitiu com a complement">
        <!-- Les coses a observar, les coses de menjar, els efectes immediats de vomitar -->
        <rule>
            <pattern>
                <token postag="N.*|A.*" postag_regexp="yes"></token>
                <token postag="SPS00"/>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag=".*LOC_PREP.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"></token>
                <token>no</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*|A.*" postag_regexp="yes"></token>
                <token postag="SPS00"/>
                <token postag="SPS00"/>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">en|,|a</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START|_PUNCT.*|D[ADI].MS.*" postag_regexp="yes"><exception>tant</exception></token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">poder|voler|deixar</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">acabat|després</token>
                <token>de</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="complement"/>
                <token regexp="yes">i|o|ni|però|sinó|,</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="Verb_infinitiu" name="Verb infinitiu darrere de preposició i de verb">
        <!-- "a ser valenta", "vull ser valenta": ser és infinitiu -->
        <pattern>
            <token postag="SP.*|V.[IS].*" postag_regexp="yes"><exception postag="PX.*|AQ.*|NC.*" postag_regexp="yes"/></token> <!-- el seu poder -->
            <marker>
                <and>
                    <token postag="N.*|A.*" postag_regexp="yes"></token>
                    <token postag="V.N.*" postag_regexp="yes"><exception regexp="yes">deure|poder|saber|menjar|sopar|despertar</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.N.*|complement"></disambig>
    </rule>
    <rulegroup id="fer_infinitiu" name="fer infinitiu">
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <marker>
                    <token>fer</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>tant</token>
                <marker>
                    <token>fer</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="articular" name="articular (infinitiu o adj)">
        <pattern>
            <token postag="V.*" postag_regexp="yes"/>
            <marker>
                <token postag="V.*" postag_regexp="yes">articular</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="A.*"></disambig>
    </rule>
    <rule id="feu_nom" name="feu (nom)">
        <pattern>
            <token>antic</token>
            <marker>
                <token postag="N.*" postag_regexp="yes">feu</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*|.*_GN_.*"></disambig>
    </rule>
    <rule id="perquè_conjuncio" name="perquè (conjunció)">
        <pattern>
            <token><exception postag="D..MS." postag_regexp="yes"></exception></token>
            <marker>
                <token postag="CS">perquè</token>
            </marker>
        </pattern>
        <disambig action="filterall" />
        <example type="untouched">Sense saber el perquè.</example>
    </rule>
    <rule id="feu_verb" name="feu (verb)">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">feu</token>
                <token postag="N.*" postag_regexp="yes" regexp="yes">clic|bondat</token>
            </marker>
        </pattern>
        <disambig action="filterall" />
    </rule>
    <rule id="fera_nom" name="fera (nom)">
        <pattern>
            <marker>
                <token postag="N.*" postag_regexp="yes" inflected="yes">fera</token>
            </marker>
            <token inflected="yes" regexp="yes">salvatge|feroç|ferotge</token>
        </pattern>
        <disambig action="filter" postag="N.*|.*_GN_.*"></disambig>
    </rule>
    <rulegroup id="fer_nom" name="fer + nom/adj: elimina el participi"> <!-- fer amistat, costat, aliat, etc. -->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">fer|donar<exception regexp="yes">dona|dones</exception></token>
                <marker>
                    <and>
                        <token postag="V.P.*" postag_regexp="yes"/>
                        <token postag="NC.*|A.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NC.*|A.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" inflected="yes">fer<exception regexp="yes">fets?|feres|feu</exception><exception postag=".*LOC_ADV.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="NC.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule> <!-- fer mestral -->
            <pattern>
                <token postag="V.*" postag_regexp="yes" inflected="yes">fer<exception regexp="yes">fets?|feres|feu</exception></token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"/>
                        <token postag="AQ.*" postag_regexp="yes"><exception postag="_GN_.*|V.G.*|SPS00|V.[IS].*" postag_regexp="yes"/></token>
                    </and>
                </marker>
                <token><exception postag="NC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="NC.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="posar_en_marxa" name="posar en parxa">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">posar</token>
            <token postag="SPS00">en</token>
            <token postag="N.*" postag_regexp="yes" regexp="yes">marxa|contacte|dubte|directe</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="poder_infinitiu" name="poder/saber/voler + infinitiu">
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes" regexp="yes" inflected="yes">poder|voler|saber</token>
                    <token postag="N.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token postag="V.N.*" postag_regexp="yes"><exception postag="AQ.*" postag_regexp="yes"/></token> <!-- exc. el poder militar -->
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="poder_substantiu" name="el poder/saber/voler + no infinitiu">
        <pattern>
            <token postag="DA0MS0"/>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">poder|voler</token> <!-- saber?: tractament especial -->
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token><exception regexp="yes">això|açò|allò</exception><exception postag="V.N.*" postag_regexp="yes"/><exception postag="P.*" postag_regexp="yes" regexp="yes">-.+</exception></token>
        </pattern>
        <disambig action="remove" postag="V.N.*"></disambig>
    </rule>
    <rule id="poder_podar" name="poder/podar + infinitiu">
        <pattern>
            <marker>
                <and>
                    <token inflected="yes">poder</token>
                    <token inflected="yes">podar</token>
                </and>
            </marker>
            <token postag="V.N.*" postag_regexp="yes"><exception postag="AQ.*" postag_regexp="yes"/></token> <!-- exc. el poder militar -->
        </pattern>
        <disambig action="remove"><wd lemma="podar"/></disambig>
    </rule>
    <rule id="menjar_substantiu" name="menjar substantiu">
        <pattern>
            <token postag="D[^R].[CM]S.*" postag_regexp="yes"><exception>tant</exception></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">collar|parlar|avenir|menjar|berenar|sopar|esmorzar|dinar|beure|somriure|riure|solar|titular|pesar|lleure|despertar</token>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token><exception postag="P[0P].*" postag_regexp="yes" regexp="yes">-.+</exception></token>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <rule id="caldrevoler_nomparticipi" name="caldre/voler + nom/participi">
        <!-- cal/vol amistat -->
        <pattern>
            <token inflected="yes" regexp="yes">caldre|voler</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="V.P.*" postag_regexp="yes"><exception>invertit</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rulegroup id="Poder_substantiu_infinitiu" name="Poder com a substantiu o infinitiu">
        <!-- adquirir/guanyar/perdre poder-->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="3">relació|expansió|expandir|distribuir|distribució|tornar|accedir|accés|arribar|oferir|heretar|guanyar|perdre|adquirir|obtenir|assolir|abastar|exercir|exercici|conservar|mantenir|ocupar|recuperar</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">poder</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token><exception postag="P.*" postag_regexp="yes" regexp="yes">-.+</exception></token>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">poder</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token regexp="yes">seu|de|d'</token>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>com</token>
                <token>a</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.N.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">per|a</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">poder</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <token postag="D[^R].MS." postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">poder</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule id="poder_substantiu2" name="poder (substantiu) + de">
            <pattern>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">poder</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token regexp="yes">de|d'|a</token>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule id="deure_substantiu" name="el deure (substantiu) + de">
            <pattern>
                <token postag="D..MS." postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">deure</token>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="remove" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="2">tenir|haver</token>
                <token>prou</token>
                <token regexp="yes">amb|de</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"></token> <!-- qualsevol verb/substantiu -->
                        <token postag="V.N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="N.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="ON_relatiu" name="on, pronom relatiu">
        <pattern>
            <token postag="N.*|AQ.*" postag_regexp="yes" />
            <marker>
                <token>on</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="PR.*"></disambig>
    </rule>
    <rulegroup id="X_per_X" name="casa per casa, porta per porta, etc ">
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
                <token>per</token>
                <token><match no="0"/></token>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="plana_si_plana_no" name="plana sí plana no">
        <pattern>
            <token postag="NC.*" postag_regexp="yes"/>
            <token>sí</token>
            <token postag="NC.*" postag_regexp="yes"/>
            <token regexp="yes">no|també</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="te_infusio_lletra" name="te (nom d'infusió, lletra te)">
        <rule>
            <pattern>
                <marker>
                    <token postag="P.*" postag_regexp="yes">te</token>
                    <token postag="&pronom_feble;" postag_regexp="yes" spacebefore="no"/>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">&verbs_TE_INFUSIO;</token>
                <token min="0" postag="D.*|RG|&pronom_feble;" postag_regexp="yes"/>
                <marker>
                    <token>te</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <marker>
                    <token>te</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <token postag="D[^R].*" postag_regexp="yes"/>
                <marker>
                    <token>te</token>
                </marker>
                <token><exception postag="P.*|V.[SI].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception regexp="yes">ella?|vost[èé]</exception><exception postag="N.*|_GN.*" postag_regexp="yes"/></token>
                <token>el</token>
                <marker>
                    <token>te</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCMS.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception regexp="yes">la|lletra|aquesta|esta|eixa|aqueixa|aquella</exception></token>
                <marker>
                    <token postag="NCFS000">te</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCFS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">&exceptions_TE;</token>
                <token regexp="yes">,|i|o|ni</token>
                <marker>
                    <token>te</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCMS.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>te</token>
                </marker>
                <token regexp="yes">,|i|o|ni</token>
                <token inflected="yes" regexp="yes">&exceptions_TE;</token>
            </pattern>
            <disambig action="filter" postag="NCMS.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="la_volta" name="la Volta">
        <pattern>
            <token>la</token>
            <marker>
                <token>Volta</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="NPMS.*"></disambig>
    </rule>
    <rule id="IMPOST" name="impost (impondre)">
        <pattern>
            <token><exception inflected="yes">haver</exception></token>
            <marker>
                <token postag="NCM[SP]000" postag_regexp="yes" regexp="yes">(pressupost|impost)(s|os)?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.P.*"/>
    </rule>
    <rule id="TEMPLE" name="temple (templar)">
        <pattern>
            <token><exception postag="P0.{6}|PP3CN000|PP3NN000|PP3(MP|F.)A00|PP3CP000|PP3CSD00" postag_regexp="yes"/></token>
            <marker>
                <token postag="NCMS000">temple</token>
            </marker>
        </pattern>
        <disambig action="remove"><wd lemma="templar"/></disambig>
    </rule>
    <rule id="TEMPLES" name="temples (templar)">
        <pattern>
            <token><exception postag="P0.{6}|PP3CN000|PP3NN000|PP3(MS|F.)A00|PP3CP000|PP3CSD00" postag_regexp="yes"/></token>
            <marker>
                <token postag="NCMP000">temples</token>
            </marker>
        </pattern>
        <disambig action="remove"><wd lemma="templar"/></disambig>
    </rule>
    <rule id="CAPRITXOS" name="capritxos">
        <pattern>
            <token>capritxos</token>
        </pattern>
        <disambig action="remove"><wd lemma="capritxo"/></disambig>
    </rule>
    <rule id="COIXOS" name="coixos">
        <pattern>
            <token>coixos</token>
        </pattern>
        <disambig action="remove"><wd lemma="coixo"/></disambig>
    </rule>
    <rule id="ROSSAR" name="rossar/rossejar">
        <pattern>
            <and>
                <token postag="V.*" postag_regexp="yes" inflected="yes">rossar</token>
                <token postag="V.*" postag_regexp="yes" negate_pos="yes"></token>
            </and>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="EXPONENT" name="exponent (expondre)">
        <pattern>
            <token><exception inflected="yes" regexp="yes">estar|anar</exception></token>
            <marker>
                <token postag="NCMS000">exponent</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.G.*"/>
    </rule>
    <rule id="DISPOST" name="dispost (dispondre)">
        <pattern>
            <token><exception inflected="yes">haver</exception></token>
            <marker>
                <token postag="AQ0..0" postag_regexp="yes" regexp="yes">(in)?dispost(a|es|s|os)?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.P.*"/>
    </rule>
    <rule id="PROPOSTA" name="proposta (propondre)">
        <pattern>
            <marker>
                <token postag="NCF[SP]000" postag_regexp="yes" regexp="yes">propost(a|es)</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.P.*"/>
    </rule>
    <rule id="CONTENT" name="contenta (contentar)">
        <pattern>
            <marker>
                <token postag="AQ.*" postag_regexp="yes" inflected="yes">content</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule id="TRAVAR_TRAVESSAR" name="travar/travessar">
        <pattern>
            <marker>
                <and>
                    <token inflected="yes">travessar</token>
                    <token inflected="yes">travar</token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove"><wd lemma="travar"/></disambig>
    </rule>
    <rule id="HUMIT" name="humit">
        <pattern>
            <marker>
                <and>
                    <token regexp="yes">humit|humida|humits|humides</token>
                    <token inflected="yes">humir</token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove"><wd lemma="humir"/></disambig>
    </rule>
    <rulegroup id="AIGUA" name="aigua (aiguar?)">
        <rule>
            <pattern>
                <token regexp="yes">m'|t'|s'|ens|us|vos|li|els|les|hi|n'</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">aigua</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">aigua</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">m'|t'|s'|ens|us|vos|li|els|l'|hi|n'</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">aigües</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">aigües</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
    </rulegroup>
    <rule id="tornes" name="tornés: verb o adjectiu">
        <pattern> <!-- exceptions? -->
            <marker>
                <token>tornés</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="nit" name="nit: normalment nom femení">
        <pattern>
            <marker>
                <token postag="NCF.*" postag_regexp="yes" regexp="yes">nits?</token>
            </marker>
        </pattern>
        <disambig action="remove" postag="NCM.*"></disambig>
    </rule>
    <rule id="presta" name="presta: verb o adjectiu">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes">presta|prestes|preste</token>
            </marker>
            <token postag="NC.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="tesi" name="tesi: nom">
        <pattern>
            <marker>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">tesis?</token>
            </marker>
            <token postag="A.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N.*|_GN_.*"></disambig>
    </rule>
    <rule id="premi" name="premi: nom">
        <pattern>
            <marker>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">premis?</token>
            </marker>
            <token>a</token>
        </pattern>
        <disambig action="filter" postag="N.*|_GN_.*"></disambig>
    </rule>
    <rule id="duc" name="duc verb o nom">
        <pattern>
            <token inflected="yes">ser</token>
            <marker>
                <token postag="N.*" postag_regexp="yes" regexp="yes">ducs?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="la_seu" name="la seu: no verb">
        <pattern>
            <token>la</token>
            <marker>
                <token>seu</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="seu_episcopal" name="seu: nom">
        <pattern>
            <token postag="N.*" postag_regexp="yes" regexp="yes">seus?</token>
            <token postag="AQ.[CF].*" postag_regexp="yes" regexp="yes" inflected="yes">episcopal|territorial|arquebisbal|catòlic</token>
            <token postag="AQ.[CF].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"></disambig>
    </rule>
    <rule id="de_manera_adj" name="de manera expressa">
        <pattern>
            <token>de</token>
            <token>manera</token>
            <marker>
                <and>
                    <token postag="AQ.[CF][SN]." postag_regexp="yes"/>
                    <token postag="[^A].*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*"></disambig>
    </rule>
    <rulegroup id="mig_adverbi" name="mig_adverbi">
        <rule>
            <pattern>
                <token postag="VA.*" postag_regexp="yes"/>
                <marker>
                    <token>mig</token>
                </marker>
                <token postag="V.[NP].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&pronom_feble;" postag_regexp="yes"><exception>en</exception></token>
                    <token postag="RG">mig</token>
                </marker>
                <token postag="V.[SI].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <!-- ser + participi-->
    <rulegroup id="ser_participi" name="ser + participi">
        <rule>
            <pattern>
                <token postag="V.[NISM].*" postag_regexp="yes" inflected="yes">ser</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">mentida|dificultat|pecat</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="V.P.*" postag_regexp="yes" inflected="yes">ser</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">mentida|pecat</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <token postag="V.[NISM].*" postag_regexp="yes" inflected="yes" regexp="yes">ser|estar|venir</token>
                    <marker>
                        <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filter" postag="V.P.*"/>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="DA0[MC]S.*|SPS00" postag_regexp="yes"/></token>
                <unify>
                    <feature id="nombre"/>
                    <marker>
                        <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">ser|estar|venir</token>
                    </marker>
                    <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                </unify>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="DA0[MC]S.*" postag_regexp="yes"/>
                <unify>
                    <feature id="nombre"/>
                    <marker>
                        <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">ser|estar|venir</token>
                    </marker>
                    <token postag="V.P00P..?|V.P00.F.?" postag_regexp="yes"></token>
                </unify>
            </pattern>
            <disambig action="filter" postag="V.*"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <marker>
                        <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">ser|estar|venir<exception postag="V.P.*" postag_regexp="yes"/></token>
                        <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="dur_a_terme" name="dur a terme"> <!-- plantar cara, posar/tenir/estar/mantenir al corrent -->
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">dur|portar</token>
                <token>a</token>
                <marker>
                    <token inflected="yes">terme</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">fer</token>
                <marker>
                    <token>falta</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">fer</token>
                    <token>falta</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">donar</token>
                    <token inflected="yes">origen</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">donar</token>
                <marker>
                    <token>veu</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">posar</token>
                <token>en</token>
                <marker>
                    <token inflected="yes">camí</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">estar</token>
                <token>a</token>
                <token spacebefore="no">l</token>
                <marker>
                    <token inflected="yes">corrent</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="seguit_nom" name="seguit: nom no participi">
        <pattern>
            <token postag="D..MS.*" postag_regexp="yes"/>
            <token postag="N.*" postag_regexp="yes">seguit</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="deure_infinitiu" name="deure + infinitiu">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes">deure</token>
            <token postag="V.N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <!-- haver + participi. mogut per "han després/desprès"-->
    <rulegroup id="haver_participi" name="haver + participi">
        <rule>
            <pattern>
                <token inflected="yes">haver</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes" regexp="yes">sortida|eixida</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <!-- elimina 'hajar' -->
        <rule>
            <pattern>
                <and>
                    <token inflected="yes">hajar</token>
                    <token inflected="yes">haver</token>
                </and>
            </pattern>
            <disambig action="remove"><wd lemma="hajar"/></disambig>
        </rule>
        <rule> <!-- excepcions: hi ha necessitat. Pot havier-hi ambigüitats: s'hi havia calat foc -->
            <pattern>
                <token><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception><exception regexp="yes">ella?</exception><exception postag="NP.*|_GN_.*" postag_regexp="yes"/></token>
                <token>hi</token>
                <token postag="VA..3S.." postag_regexp="yes" inflected="yes">haver</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.P.*" postag_regexp="yes"><exception regexp="yes">pres|dits?|ratllats?|escrits?|fets?|acabats?|col·locats?|duta|portada|dutes|portades|deixats?|deixad(a|es)|estat|posat</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <rule> <!-- excepcions: no hi va haver necessitat -->
            <pattern>
                <token>haver</token>
                <token>-hi</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.P.*" postag_regexp="yes"><exception regexp="yes">pres|dits?|ratllats?|escrits?|fets?|acabats?|col·locats?|duta|portada|dutes|portades|deixats?|deixad(a|es)|estat|posat</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <rule> <!-- excepcions: no hi va haver necessitat -->
            <pattern>
                <token>hi</token>
                <token regexp="yes">van?|varen</token>
                <token>haver</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.P.*" postag_regexp="yes"><exception regexp="yes">pres|dits?|ratllats?|escrits?|fets?|acabats?|col·locats?|duta|portada|dutes|portades|deixats?|deixad(a|es)|estat|posat</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <rule> <!-- permet comprovar errors amb 'heure': hagueu fet -->
            <pattern>
                <token inflected="yes">heure<exception inflected="yes">haver</exception></token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes" skip="6" postag="V.*" postag_regexp="yes">haver<exception scope="next" postag="V.[GN].*" postag_regexp="yes"/></token>
                </marker>
                <token postag="V.P.*" postag_regexp="yes"><exception scope="previous" postag="SPS00"/></token>
            </pattern>
            <disambig action="filter" postag="VA.*"></disambig>
            <example type="untouched">Han de dit que sí.</example>
        </rule>
        <rule> <!--  no filtra les etiquetes de V.P. quan el participi està separat per a evitar falses alarmes  -->
            <pattern>
                <token><exception>hi</exception></token>
                <token><exception>hi</exception></token>
                <token inflected="yes" postag="V.*" postag_regexp="yes">haver</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <token inflected="yes" postag="V.*" postag_regexp="yes">haver</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="1">hi</token>
                <token inflected="yes" postag="V.*" postag_regexp="yes">haver</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <!-- <exception scope="next" postag="_GV_|_PUNCT_CONT|P.*|R.*|.*LOC_ADV.*|V.*|SENT_END|[CNDAS].*|complement" postag_regexp="yes" negate_pos="yes"/> -->
                    <token inflected="yes" skip="6" postag="V.*" postag_regexp="yes">haver<exception scope="next" postag="V.[GN].*|VA[^P].*" postag_regexp="yes"/></token>
                </marker>
                <token postag="V.P.*" postag_regexp="yes"><exception scope="previous" inflected="yes" regexp="yes">ser|estar|continuar|seguir|matenir|romandre</exception><exception scope="previous" postag="SPS00"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GV_" lemma="haver"></wd></disambig>
            <example type="untouched">Han de dit que sí.</example>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes" skip="6" postag="V.*" postag_regexp="yes">haver<exception scope="next" postag="V.G.*|VA[^P].*" postag_regexp="yes"/></token>
                </marker>
                <token postag="V.P.*" postag_regexp="yes"><exception inflected="yes">haver</exception><exception scope="previous" inflected="yes" regexp="yes">ser|estar|continuar|seguir|matenir|romandre</exception><exception scope="previous" postag="SPS00"/></token>
            </pattern>
            <disambig action="add"><wd pos="_perfet" lemma="haver"></wd></disambig>
            <example type="untouched">Han de dit que sí.</example>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="6" postag="V.*" postag_regexp="yes">haver<exception scope="next" postag="V.G.*" postag_regexp="yes"/><exception scope="next" regexp="yes">de|d'</exception></token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"><exception scope="previous" inflected="yes" regexp="yes">ser|estar|continuar|seguir|matenir|romandre</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <!--  <rule>
            <pattern>
            <token postag="VA.*" postag_regexp="yes" inflected="yes" skip="5">anar<exception scope="next" postag="_GV_|_PUNCT_CONT|R.*|.*LOC_ADV.*|V.N.*|SENT_END|[NA].*|complement" postag_regexp="yes" negate_pos="yes"/></token>
            <marker>
            <token postag="V.N.*" postag_regexp="yes"></token>
            </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd>
            </disambig>
            </rule> -->
        <rule id="degut_participi" name="degut (participi)">
            <pattern>
                <token inflected="yes" skip="5" regexp="yes">ser|semblar|parèixer<exception scope="next" postag="V.[GN].*|A.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes">degut</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <!-- encadena amb conjunció -->
        <rule id="haver_participi_i_participi" name="haver + participi + i/o/ni + participi">
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <and>
                        <token postag="V.P.*" postag_regexp="yes"/>
                        <token postag="_GV_"/>
                    </and>
                    <token regexp="yes">i|o|ni</token>
                    <marker>
                        <token postag="V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/></disambig>
        </rule>
        <!-- haver + estat + participi -->
        <rule>
            <pattern>
                <token inflected="yes">haver</token>
                <token postag="V.P.*" postag_regexp="yes" inflected="yes">ser</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">haver</token>
                <token postag="V.P.*" postag_regexp="yes" inflected="yes">ser</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="la_resta" name="la resta"> <!-- Excepció a la regla següent -->
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token regexp="yes" inflected="yes">el|un</token>
                <marker>
                    <token inflected="yes">resta</token>
                </marker>
                <token postag="V.P.*" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <!-- restar + participi-->
    <rulegroup id="restar_participi" name="restar + participi">
        <rule> <!-- Falta un cas especial per a: haver quedat + participi -->
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <marker>
                        <token postag="V.[^P].*" postag_regexp="yes" inflected="yes" regexp="yes">quedar|restar</token>
                        <token postag="V.P.*" postag_regexp="yes"><exception>després</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <marker>
                        <token postag="V.[^P].*" postag_regexp="yes" inflected="yes" regexp="yes">quedar|restar</token>
                        <token postag="V.P.*" postag_regexp="yes"></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
    </rulegroup>
    <rule id="tornar_a_inf" name="tornar a + infinitiu">
        <pattern>
            <token><exception postag="SPS00"/></token>
            <marker>
                <token inflected="yes">tornar</token>
            </marker>
            <token>a</token>
            <token postag="V.N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="ull_mig_aclucat" name="ull mig (adv) aclucat">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="N.*" postag_regexp="yes"><exception regexp="yes">troba|queda</exception></token>
                <token postag="RG.*" postag_regexp="yes">mig</token>
                <token postag="V.P.*|AQ.[^C][^N].*" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="unify"/>
    </rule>
    <rule id="FOS" name="Fos (verb ser)">
        <!-- És molt comú com a verb. Cal buscar excepcions específiques: metall fos, etc. -->
        <pattern>
            <token><exception regexp="yes">metall|alumini|nucli|ferro|zinc|sílex|quars|material|coure|bronze</exception></token>
            <marker>
                <token postag="VS.*" postag_regexp="yes">fos<exception postag="_GN_.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="VS.*|_GV_|.*LOC.*"></disambig>
    </rule>
    <rule id="fes_no_fendre" name="fes no participi del verb fendre">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes">fes<exception postag="_GV_"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.[^P].*"></disambig>
    </rule>
    <rule id="tornar_a" name="tornar a/sobre">
        <pattern>
            <token><exception postag="SPS00"/></token>
            <marker>
                <token inflected="yes">tornar<exception>torn</exception></token>
            </marker>
            <token regexp="yes">a|sobre|de|enrere|arrere|endarrere</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rulegroup id="haver_de_infinitiu" name="haver de + infinitiu">
        <rule>
            <pattern>
                <token inflected="yes">haver</token>
                <token regexp="yes">de|d'</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes" skip="5">haver<exception scope="next" postag="V.N.*" postag_regexp="yes"/></token>
                    <!-- <exception scope="next" postag="_GV_|_PUNCT_CONT|P.*|R.*|.*LOC_ADV.*|V.*|SENT_END|[NAS].*|CC|complement" postag_regexp="yes" negate_pos="yes"/> -->
                </marker>
                <token regexp="yes">de|d'</token>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_obligacio" lemma="haver"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">haver<exception postag="_obligacio"/></token>
                </marker>
                <token skip="3" regexp="yes">de|d'</token>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_obligacio" lemma="haver"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="_obligacio" inflected="yes">haver</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="VA.*|_obligacio|_GV_"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="NUCLIS_VERBALS" name="nuclis verbals amb noms">
        <rule>
            <pattern>
                <token inflected="yes" skip="1">posar</token>
                <token regexp="yes">de|en</token>
                <marker>
                    <token>relleu</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">tenir</token>
                <token>en</token>
                <marker>
                    <token>compte</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">tenir</token>
                <token>en</token>
                <marker>
                    <token>compte</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">estar</token>
                <token>d'</token>
                <marker>
                    <token>acord</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="NO_PAS" name="no pas">
        <rule>
            <pattern>
                <token skip="6">no</token>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="5">no</token>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="4">no</token>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="3">no</token>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="2">no</token>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <token postag="V.*|PP.*" postag_regexp="yes"/>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>no</token>
                <marker>
                    <token>pas</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="haver_hi_auxiliar" name="haver-hi auxiliar">
        <rule>
            <pattern>
                <token>hi</token>
                <marker>
                    <token inflected="yes">haver</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="VA.*|_GV_|_perfet|_obligacio"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token inflected="yes">haver</token>
                </marker>
                <token>-hi</token>
            </pattern>
            <disambig action="filter" postag="VA.*|_GV_|_perfet|_obligacio"></disambig>
        </rule>
    </rulegroup>
    <rule id="DESPRES" name="després no participi"> <!-- cal una regla per a després/desprès -->
        <pattern>
            <marker>
                <token postag="RG">després<exception postag="_GV_"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="RG"></disambig>
    </rule>
    <rule id="nous" name="nous + nom plural">
        <pattern>
            <marker>
                <token>nous</token>
            </marker>
            <token postag="N.MP.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rule id="les_nou" name="les nou i">
        <pattern>
            <token>les</token>
            <marker>
                <token postag="NCCN000"/>
            </marker>
            <token>i</token>
        </pattern>
        <disambig action="filter" postag="NCCN000"/>
    </rule>
    <rule id="nou0" name="nou + nom singular">
        <pattern>
            <marker>
                <token  postag="A.*" postag_regexp="yes">nou</token>
            </marker>
            <token postag="N.MS.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="A.*"/>
    </rule>
    <rulegroup id="el_pais" name="el país, el domini, l'equilibri (nom)">
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="DA.*" postag_regexp="yes"><exception scope="previous" postag="&pronom_feble;" postag_regexp="yes"/></token>
                    <marker>
                        <token postag="NC.*" postag_regexp="yes" inflected="yes" regexp="yes">&nom_o_verb;</token>
                    </marker>
                </unify>
                <token min="0">no</token>
                <token postag="V.*|AQ.*|&pronom_feble;" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
            <example type="untouched">Se la veu tranquil·la.</example>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="DA.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="NC.*" postag_regexp="yes" inflected="yes" regexp="yes">&nom_o_verb;</token>
                    </marker>
                </unify>
                <token regexp="yes">de|d'</token>
                <token><exception>manera</exception></token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="DA.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="NC.*" postag_regexp="yes" inflected="yes" regexp="yes">&nom_o_verb;</token>
                    </marker>
                </unify>
                <token postag="SPS00"/>
                <token>què</token>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="D.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="NC.*" postag_regexp="yes" inflected="yes" regexp="yes">queixa|termini</token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filter" postag="NC.*"/>
        </rule>
    </rulegroup>
    <rule id="CREURE_CREAR" name="creure/crear">
        <pattern>
            <marker>
                <and>
                    <token inflected="yes">creure</token>
                    <token inflected="yes">crear</token>
                </and>
            </marker>
            <token>que</token>
        </pattern>
        <disambig action="remove"><wd lemma="crear"/></disambig>
    </rule>
    <rulegroup id="MONA" name="mona (nom o adjectiu)">
        <rule>
            <pattern>
                <token postag="RG_anteposat"/>
                <marker>
                    <and>
                        <token inflected="yes">mona</token>
                        <token inflected="yes">mono2</token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd lemma="mona"/></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="NC.*" postag_regexp="yes"/>
                    <marker>
                        <and>
                            <token inflected="yes">mona</token>
                            <token inflected="yes">mono2</token>
                        </and>
                    </marker>
                </unify>
            </pattern>
            <disambig action="remove"><wd lemma="mona"/></disambig>
        </rule>
    </rulegroup>
    <rule id="SENS" name="sens + nom">
        <pattern>
            <token>sens</token>
        </pattern>
        <disambig action="filter" postag="SPS00"></disambig>
    </rule>
    <rule id="formar_part" name="formar part, fer fallida">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" regexp="yes" inflected="yes">prendre|formar|fer</token>
            </marker>
            <token regexp="yes">part|fallida|malbé|costat</token>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_"></disambig>
    </rule>
    <rule id="formar_part2" name="formar part">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">formar|fer|ser</token>
            <marker>
                <token>part</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NCFS.*"></disambig>
    </rule>
    <rule id="fer_fallida" name="fer fallida">
        <pattern>
            <token postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">declarar|fer</token>
            <marker>
                <token>fallida</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NCFS.*"></disambig>
    </rule>
    <rulegroup id="VISTA" name="vista"> <!-- tracta la variant valenciana: jo vist| tu vistes, ell vista -->
        <rule>
            <pattern>
                <marker>
                    <token>vist</token>
                </marker>
                <token min="0">-</token>
                <token>i</token>
                <token min="0">-</token>
                <token>plau</token>
            </pattern>
            <disambig action="filter" postag="V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">es|em|el|la|els|les|ens|us|se|me|vos|jo|ell</token>
                <marker>
                    <token postag="V.*V" postag_regexp="yes">vist</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*V|_GV_"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">es|em|el|els|les|ens|us|se|me|vos|jo|ell</token>
                <marker>
                    <token postag="V.*V" postag_regexp="yes">vista</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*V|_GV_"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">et|te|tu</token>
                <marker>
                    <token postag="V.*V" postag_regexp="yes">vistes</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*V|_GV_"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.P.*|N.*" postag_regexp="yes" regexp="yes">vist|vista|vistes</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|N.*|_GV_"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="VIU" name="viu (verb, adj, nom)">
        <rule>
            <pattern>
                <token>no</token>
                <token>en</token>
                <marker>
                    <token postag="VMI.*" postag_regexp="yes">viu</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception>no</exception></token>
                <token>en</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes">viu</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.[^P].*|_GV_" postag_regexp="yes"></token>
                <token regexp="yes">algú|ningú</token>
                <marker>
                    <token postag="A.*" postag_regexp="yes">viu</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|_GN_"></disambig>
            <example type="untouched">¿Algú viu a Polònia?</example>
        </rule>
    </rulegroup>
    <rule id="FER" name="verb + fer">
        <pattern>
            <token postag="V.N.*" postag_regexp="yes"></token>
            <marker>
                <token>fer</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.N.*|complement"></disambig>
    </rule>
    <rule id="FER2" name="fer + pronom">
        <pattern>
            <marker>
                <token>fer</token>
            </marker>
            <token postag="PP.*|P0.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="V.N.*|complement"></disambig>
    </rule>
    <rule id="FER3" name="fer + infinitiu">
        <pattern>
            <marker>
                <token postag="V.*" postag_regexp="yes" inflected="yes">fer</token>
            </marker>
            <token postag="V.N.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="DIU" name="diu (verb dir)">
        <rule>
            <pattern>
                <token><exception regexp="yes">el|un|aquest</exception></token>
                <marker>
                    <token postag="V.[SIG].*" postag_regexp="yes" regexp="yes">diu|deixant</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception regexp="yes">els|uns|aquests</exception></token>
                <marker>
                    <token postag="V.[SI].*" postag_regexp="yes">dius</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="fins_nom" name="fins nom">
        <pattern>
            <token postag="D..MP.|V.P..PM." postag_regexp="yes"/>
            <token min="0" postag="A..[CM]P." postag_regexp="yes"/>
            <marker>
                <token>fins</token>
            </marker>
            <token>a</token>
            <token>què</token>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <rule id="fins_preposicio" name="fins preposició">
        <pattern>
            <marker>
                <token>fins</token>
            </marker>
            <token regexp="yes">a|que|al|als|llavors|aleshores|avui|.*demà|.*ahir|dilluns|dimarts|dimecres|dijous|divendres|dissabte|diumenge</token>
        </pattern>
        <disambig action="filter" postag="SP.*"></disambig>
    </rule>
    <rule id="fer_respecte" name="fer/tenir respecte">
        <pattern>
            <token regexp="yes" inflected="yes">mostrar|fer|tenir</token>
            <marker>
                <token>respecte</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <rule id="fer_respecte2" name="fer/tenir respecte">
        <pattern>
            <marker>
                <token regexp="yes" inflected="yes">mostrar|fer|tenir</token>
            </marker>
            <token>respecte</token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="no_sols" name="no sols">
        <rule>
            <pattern>
                <token inflected="yes">caldre</token>
                <token>no</token>
                <marker>
                    <token>sols</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>no</token>
                <token inflected="yes">ser</token>
                <marker>
                    <token>sols</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="POT" name="pot/pots/vol/vols + infinitiu">
        <rule>
            <pattern>
                <token>no</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">pot|vol|sol</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">el|[-'].+</exception></token>
                <marker>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">pot|vol|sol</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">els|[-'].+</exception></token>
                <marker>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">pots|vols|sols</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">pots?|vols?|sols?</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"><exception>poder</exception></token> <!-- és un sol poder -->
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">poder|voler|saber</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.N.*" postag_regexp="yes"><exception postag="AQ.*" postag_regexp="yes"/></token> <!-- exc. el poder militar -->
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*"></disambig>
        </rule>
        <rule> <!-- pots llavors pensar, pot no funcionar -->
            <pattern>
                <marker>
                    <and>
                        <token regexp="yes">pots?|vols?|sols?</token>
                        <token postag="V.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token postag="RG|RN" postag_regexp="yes"/>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="verb_sol" name="verb + sol">
        <pattern>
            <token postag="V.*" postag_regexp="yes"></token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">sols?</token>
                    <token postag="V.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rulegroup id="CAP1" name="cap: tractament especial (det, adj, nom, adv, verb...)">
        <!-- TODO: ampliar
            cap cabre VMIP1S0
            cap cabre VMIP3S0
            cap cabre VMM02S0
            cap cap DI0CS0
            cap cap NCCS000
            cap cap NCMS000
            cap cap PI0CS000
            cap cap SPS00
            cap capar VMIP1S0-->
        <rule> <!-- cap home, cap dona, cap cosa -->
            <pattern>
                <token><exception postag="D[^R].*|PX.MS.*" postag_regexp="yes"/></token>
                <marker>
                    <token>cap</token>
                </marker>
                <token postag="N..S.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="DI.*"/>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D[^R]0MS0|PX.MS.*|SPS00" postag_regexp="yes"/></token>
                <marker>
                    <token>cap</token>
                </marker>
                <token postag="RG.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <token>cap</token>
                </marker>
                <token>a</token>
            </pattern>
            <disambig action="filter" postag="S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>cap</token>
                </marker>
                <token>a</token>
                <token postag="P[0P].*" postag_regexp="yes"><exception postag="DA.*" postag_regexp="yes"></exception></token>
            </pattern>
            <disambig action="filter" postag="S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="P[0P].*|DA.MS." postag_regexp="yes"/><exception>no</exception></token>
                <marker>
                    <token>cap</token>
                </marker>
                <token>a</token>
            </pattern>
            <disambig action="filter" postag="S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="P[0P].*|RN" postag_regexp="yes"/></token>
                <marker>
                    <token>cap</token>
                </marker>
                <token postag="DD.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">col?ps?</token>
                <token>de</token>
                <marker>
                    <token>cap</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D.*|PX.*" postag_regexp="yes"/></token>
                <marker>
                    <token postag="PI.*" postag_regexp="yes">cap</token>
                </marker>
                <token postag="V.[MSI].*|P0.{6}|PP3CN000|PP3NN000|PP3CP000|PP3CSD00|RN|_GV_" postag_regexp="yes"/> <!-- |PP3..A00 -->
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes">cap</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="llavors" name="llavors">
        <pattern>
            <token><exception postag="D[^R]0FP0" postag_regexp="yes"/></token>
            <marker>
                <token>llavors</token>
            </marker>
            <token><exception postag="AQ.[FC][NP]." postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="RG.*"></disambig>
    </rule>
    <rule id="bon" name="bon (adj)">
        <pattern>
            <marker>
                <token>bon</token>
            </marker>
            <token postag="N.MS.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="A.*"></disambig>
    </rule>
    <rule id="COP" name="cop no verb balear">
        <pattern>
            <unify>
                <feature id="genere"/>
                <feature id="nombre"/>
                <token postag="D.*|A.*" postag_regexp="yes"/>
                <marker>
                    <token regexp="yes">cops?</token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rulegroup id="LOCUCIONS_FREQUENCIA" name="locucions adverbials de freqüència: dues vegades més alt">
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <marker>
                        <token inflected="yes">un</token>
                        <token postag="DN.*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|grau|octava|dia|any</token>
                    </marker>
                </unify>
                <token regexp="yes">més|menys</token>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <!-- <rule>
            <pattern>
            <unify>
            <feature id="genere"></feature>
            <feature id="nombre"></feature>
            <marker>
            <token inflected="yes">un</token>
            <token regexp="yes">[\d]+</token>
            <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|grau|octava|dia|any</token>
            </marker>
            </unify>
            <token regexp="yes">més|menys</token>
            <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
            </rule> -->
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"></feature>
                    <feature id="nombre"></feature>
                    <marker>
                        <token postag="DN.*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|grau|octava|dia|any</token>
                    </marker>
                </unify>
                <token regexp="yes">més|menys</token>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">[\d]+</token>
                    <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|grau|octava|dia|any</token>
                </marker>
                <token regexp="yes">més|menys</token>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"></feature>
                    <feature id="nombre"></feature>
                    <marker>
                        <token postag="DN.*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|grau|octava|dia|any</token>
                    </marker>
                </unify>
                <token regexp="yes">majors?|menors?|superiors?|inferiors?</token>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"></feature>
                    <feature id="nombre"></feature>
                    <marker>
                        <token postag="DI.*" postag_regexp="yes" inflected="yes" regexp="yes">un|algun|molt|poc|cada</token>
                        <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic|dia</token>
                    </marker>
                </unify>
                <token regexp="yes">més|menys</token>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"></feature>
                    <feature id="nombre"></feature>
                    <marker>
                        <token postag="DI.*" postag_regexp="yes" inflected="yes" regexp="yes">un|algun|molt|poc|cada</token>
                        <token regexp="yes" inflected="yes">vegada|volta|cop|colp|pic</token>
                    </marker>
                </unify>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <unify>
                    <feature id="genere"></feature>
                    <feature id="nombre"></feature>
                    <marker>
                        <token postag="DI.*" postag_regexp="yes" inflected="yes" regexp="yes">un|algun|molt|poc|cada</token>
                        <token regexp="yes" inflected="yes">dia|any</token>
                    </marker>
                </unify>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADV"/><wd pos="LOC_ADV"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="PUNTS_CARDINALS" name="punts cardinals, sigles">
        <rule>
            <pattern>
                <token postag="DA0MS0"/>
                <marker>
                    <token regexp="yes">(?-i)N|S|E|W|NE|SE|NW|SW</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">(?-i)N|S|E|W|NE|SE|NW|SW</token>
                <token/>
                <marker>
                    <token regexp="yes">(?-i)N|S|E|W|NE|SE|NW|SW</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="NCMS000"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="C_LLOC" name="complements de lloc">
        <rule id="dins_meu" name="dins meu">
            <pattern>
                <token><exception postag="DA.*" postag_regexp="yes"/></token>
                <marker>
                    <token regexp="yes">dintre|dins|enmig|vora|davant|darrere|damunt|davall|sota|sobre</token>
                    <token postag="PX.MS.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="_C_LLOC"/><wd pos="_C_LLOC"/></disambig>
        </rule>
        <rule id="casa_meua" name="casa meua">
            <pattern>
                <token>casa</token>
                <token postag="PX.FS.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace"><wd pos="_C_LLOC"/><wd pos="_C_LLOC"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="de_color_x" name="de color x: locució">
        <rule>
            <pattern>
                <marker>
                    <token>de</token>
                    <token>color</token>
                    <token regexp="yes">vermell|verd|blau|taronja|groc|escarlata</token>
                    <token postag="AQ.[MC][SN]." postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>de</token>
                    <token>color</token>
                    <token regexp="yes">vermell|verd|blau|taronja|groc|escarlata</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/><wd pos="LOC_ADJ"/></disambig>
        </rule>
    </rulegroup>
    <rule id="el_dia_deu" name="el dia deu">
        <pattern>
            <unify>
                <feature id="genere"></feature>
                <token postag="DA0.S0" postag_regexp="yes"/>
                <token regexp="yes">dia|planta|pis|porta</token>
            </unify>
            <marker>
                <token postag="DN.[^F].*" postag_regexp="yes"/>
            </marker>
            <token><exception postag="NC.P.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="replace" postag="AQ0CN0"/>
        <example type="untouched">Té al dia <marker>3.245</marker> usuaris.</example>
    </rule>
    <rule id="causa_efecte" name="causa-efecte (nom no verb)">
        <pattern>
            <marker>
                <token>causa</token>
            </marker>
            <token regexp="yes">[/i-]</token>
            <token>efecte</token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="nVerb" name="no verb">
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">humana|humanes|escàs|poeta|poetes|sostre|mida|mides|formatges?|exempta|exemptes|tasca|tasques|membres?|metges?|escasses|sola|soles|suau|descontent|carro|així|mes|pas|espasa|aroma|sorra|nom|sols?|via|vies|arbres?|tres|des|dos|com|res|tal|millor|pitjor|nombres?|entorn|davall|només|noms?</token>
                    <token postag="V.*" postag_regexp="yes" negate_pos="yes" />
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"/>
    </rule>
    <rule  id="Verb" name="verb">
        <pattern>
            <token><exception postag="D.*|SPS00" postag_regexp="yes"></exception></token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes" regexp="yes">fem|sabeu</token>
                    <token postag="V.*" postag_regexp="yes" negate_pos="yes" />
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="[^V].*"/>
        <example type="untouched">En una pila de <marker>fem</marker>.</example>
    </rule>
    <rule id="mitjana_nVerb" name="mitjana no verb">
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes">mitjana</token>
                    <token postag="V.*" postag_regexp="yes" negate_pos="yes" />
                </and>
            </marker>
            <token postag="SPS00|_PUNCT.*" postag_regexp="yes"/>
        </pattern>
        <disambig><match no="1" postag_regexp="yes" postag="[^V].*"></match></disambig>
    </rule>
    <rule id="el_sou" name="el sou">
        <pattern>
            <token regexp="yes">el|un</token>
            <marker>
                <token>sou</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="el_son" name="el son">
        <pattern>
            <token regexp="yes">el|un|la|una</token>
            <marker>
                <token>son</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^D].*"></disambig>
    </rule>
    <rule id="el_be" name="el bé">
        <pattern>
            <token postag="DA0MS0" />
            <marker>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">bé|darrere|davant</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NC.*"></disambig>
    </rule>
    <rule id="termini" name="curt/llarg/mitjà termini">
        <pattern>
            <token regexp="yes">curt|llarg|mitjà|mig</token>
            <marker>
                <token>termini</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NC.*"></disambig>
    </rule>
    <rule id="mitja_dotzena" name="mitja dotzena">
        <pattern>
            <marker>
                <token postag="A.*" postag_regexp="yes">mitja</token>
                <token postag="N.*" postag_regexp="yes">dotzena</token>
            </marker>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="AdjInv" name="adjectius invariants només darrere de nom">
        <!-- relacionat amb Grups Nominals. Abans o després? La part nort i la sud-->
        <rule>
            <pattern>
                <token><exception postag="N.*|DA.*|CC|RG.*" postag_regexp="yes" /></token>
                <!-- exception: la part nord -->
                <marker>
                    <and>
                        <token postag="AQ0CN0"></token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^A].*" />
        </rule>
        <!--         <rule>
            <pattern>
            <token postag="N.*|DA.*" postag_regexp="yes"><exception postag="N.*|DA.*" postag_regexp="yes" negate_pos="yes"></exception></token>
            <marker>
            <and>
            <token postag="AQ0CN0"></token>
            <token postag="N.*" postag_regexp="yes"></token>
            </and>
            </marker>
            </pattern>
            <disambig action="filter" postag="[^N].*" />
            </rule> -->
    </rulegroup>
    <rule id="cal_infinitiu" name="cal + infinitiu">
        <pattern>
            <marker>
                <token>cal</token>
            </marker>
            <token postag="V.N.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
    </rule>
    <rule id="NoParticipi" name="no participi, és nom">
        <pattern>
            <token regexp="yes" inflected="yes">accedir|accés|equivaler|equivalent|duel|quant|lluita|lluitar</token>
            <token>a</token>
            <marker>
                <token regexp="yes">delegats?|morts?|llibertats?|capacitats?|continguts?<exception postag="_GV_"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <!-- verb aux seguit d'infinitiu: va donar-->
    <rulegroup id="VauxInf" name="Verb auxiliar seguit d'infinitiu">
        <rule> <!--  desambigua "va encendre" i semblants -->
            <pattern>
                <token postag="VA.*" postag_regexp="yes" inflected="yes">anar</token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*|_obligacio|_perfet" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="VA.*" postag_regexp="yes" inflected="yes" skip="5">anar<exception scope="next" postag="_GV_|_PUNCT_CONT|R.*|.*LOC_ADV.*|V.N.*|SENT_END|[NA].*|complement|_obligacio|_perfet" postag_regexp="yes" negate_pos="yes"/></token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig><match no="1" postag_regexp="yes" postag="VA.*"></match></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="VA.*" postag_regexp="yes" inflected="yes" skip="5">anar<exception scope="next" postag="_GV_|_PUNCT_CONT|R.*|.*LOC_ADV.*|V.N.*|SENT_END|[NA].*|complement|_obligacio|_perfet" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.N.*|_obligacio|_perfet" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="VA.*" postag_regexp="yes" inflected="yes" skip="5">anar<exception scope="next" postag="_GV_|_PUNCT_CONT|R.*|.*LOC_ADV.*|V.N.*|SENT_END|[NA].*|complement|_obligacio|_perfet" postag_regexp="yes" negate_pos="yes"/></token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="VA.*" postag_regexp="yes" inflected="yes" skip="5">anar<exception scope="next" postag="_GV_|_PUNCT_CONT|R.*|.*LOC_ADV.*|V.N.*|SENT_END|[NA].*|complement|_obligacio|_perfet" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <token postag="V.N.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="era_nom" name="era (nom)">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="D[^R].*|A.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*" postag_regexp="yes">era</token>
                    </marker>
                </unify>
                <token min="0" max="3" postag="&pronom_feble;|RN" postag_regexp="yes"/>
                <token postag="V.[MSI].*" postag_regexp="yes"><exception negate_pos="yes" postag="V.[MSI].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" skip="-1"><exception scope="next">que</exception></token>
                <token postag="V.[MSI].*|_GV_" postag_regexp="yes" skip="6"><exception negate_pos="yes" postag="V.[MSI].*|_GV_" postag_regexp="yes"/><exception scope="next" regexp="yes">com|perquè|que|/</exception><exception postag="_PUNCT.*|C.*|PR.*|PT.*|DT.*|.*LOC_CONJ.*|_loc_unavegada" postag_regexp="yes" scope="next"/></token>
                <token max="4" postag="D[^R].FS.|A..[FC][SN].|V.P..SF." postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes">era</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" skip="-1"><exception scope="next">que</exception></token>
                <token postag="V.[MSI].*|_GV_" postag_regexp="yes" skip="6"><exception negate_pos="yes" postag="V.[MSI].*|_GV_" postag_regexp="yes"/><exception scope="next" regexp="yes">com|perquè|que|/</exception><exception postag="_PUNCT.*|C.*|PR.*|PT.*|DT.*|.*LOC_CONJ.*|_loc_unavegada" postag_regexp="yes" scope="next"/></token>
                <token postag="D[^R].FS." postag_regexp="yes" skip="6"><exception scope="next" regexp="yes">com|perquè|que|/</exception><exception postag="_PUNCT.*|C.*|PR.*|PT.*|DT.*|.*LOC_CONJ.*|_loc_unavegada" postag_regexp="yes" scope="next"/></token>
                <token max="4" postag="D[^R].FS.|A..[FC][SN].|V.P..SF." postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes">era</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
    </rulegroup>
    <rule id="JA_JA" name="ja: no conjunció. Excepcions?">
        <pattern>
            <marker>
                <token>ja</token>
            </marker>
            <token><exception>que</exception></token>
        </pattern>
        <disambig action="filter" postag="[^C].*" />
    </rule>
    <rule id="infinitiu_o_nom0" name="infinitiu o nom (previ)">
        <pattern>
            <marker>
                <and>
                    <token postag="V.N.*" postag_regexp="yes"/>
                    <token postag="NCMS.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="P.*" postag_regexp="yes" regexp="yes">[-'].+</token>
        </pattern>
        <disambig action="filter" postag="V.N.*" />
    </rule>
    <rule id="propi_adj" name="propi (anteposat) és adjectiu">
        <pattern>
            <unify>
                <feature id="genere"/>
                <feature id="nombre"/>
                <marker>
                    <token inflected="yes">propi</token>
                </marker>
                <token postag="NC.*" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="filter" postag="AQ.*"></disambig>
    </rule>
    <rulegroup id="MIG_ADJ" name="mig (adv) + adjectiu: mig morta, mig nu / mig home mig dona">
        <rule>
            <pattern>
                <marker>
                    <token postag="RG">mig</token>
                </marker>
                <token postag="AQ0FS00|AQ0FP00|AQ0MP00" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="RG"></disambig>
        </rule>
        <rule> <!-- mig + adj. masculí -->
            <pattern>
                <marker>
                    <token postag="RG">mig</token>
                </marker>
                <token regexp="yes">ple|buit|nu|despullat|vestit|mort|cru|despectiu|sec</token>
            </pattern>
            <disambig action="filter" postag="RG"></disambig>
        </rule>
        <rule> <!-- mig home mig dona -->
            <pattern>
                <marker>
                    <token postag="RG">mig</token>
                </marker>
                <token skip="1"/>
                <token>mig</token>
            </pattern>
            <disambig action="filter" postag="RG"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>mig</token>
                <token skip="1"/>
                <marker>
                    <token postag="RG">mig</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="RG"></disambig>
        </rule>
    </rulegroup>
    <rule id="Prep_Inf" name="preposició + infinitiu">
        <!-- torna a encendre. Excep: amb poder, de poder, el cap militar-->
        <pattern>
            <token postag="SPS.*" postag_regexp="yes"></token>
            <marker>
                <token postag="V.N.*" postag_regexp="yes"><exception regexp="yes">deure|poder|saber|militar</exception></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.N.*|complement|_GV_|_perfet|_obligacio"></disambig>
    </rule>
    <rule id="de_vas" name="de vas"> <!-- excepció a la regla "Anar" -->
        <pattern>
            <token regexp="yes">de|un|el|l</token>
            <marker>
                <token>vas</token>
            </marker>
            <token postag="V.P.*SM." postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="Anar" name="Verb anar seguit de participi i gerundi">
        <pattern>
            <marker>
                <token postag="VM.*" postag_regexp="yes" inflected="yes">anar</token>
            </marker>
            <token postag="V.[GP].*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="VM.*|_GV_"></disambig>
    </rule>
    <rule id="Anar2" name="Verb anar seguit de participi i gerundi">
        <pattern>
            <token postag="VA.*" postag_regexp="yes" inflected="yes">anar</token>
            <marker>
                <token postag="V.[GP].*" postag_regexp="yes"></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.[GP].*|_GV_"></disambig>
    </rule>
    <rule id="sense_poca" name="sense-veu poca-vergonya">
        <pattern>
            <token regexp="yes">sense|poca|anti</token>
            <token>-</token>
            <marker>
                <and>
                    <token postag="V.[MSI].*" postag_regexp="yes"/>
                    <token postag="NC.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="fins_passat_el" name="fins passat el">
        <pattern>
            <token postag="SPS00">fins</token>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="V.P.*" postag_regexp="yes" inflected="yes">passar</token>
                <token postag="D[^R].*" postag_regexp="yes"></token>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="prep_art_nomverb" name="preposició + article + nom/verb">
        <!-- pels projectes, malgrat una llista -->
        <pattern>
            <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception postag="RG"/></token>
            <token postag="D[AIP].*" postag_regexp="yes"><exception regexp="yes">es|s'|altres?|altra</exception></token>
            <!-- ¿Exigir unificació o no? (Ex. amb un tesi, d'un mitjana)-->
            <marker>
                <and>
                    <token postag="NC.*|V.P.*|A.*" postag_regexp="yes"/>
                    <token postag="V.[MSIG].*" postag_regexp="yes"><exception regexp="yes">era|fou|va</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.[MSIG].*"></disambig>
        <example type="untouched">Per a ambdues <marker>fou</marker> decisiva la seva negativa.</example>
        <example type="untouched">i per tant <marker>resta</marker> una tasca de recopilació</example>
        <example type="untouched">també, segons es <marker>baixa</marker>, des de Montsià</example>
        <example type="untouched">El que a uns <marker>va</marker> bé, a altres no.</example>
    </rule>
    <rule id="prep_art_adj_nomverb" name="preposició + article + adj + nom/verb">
        <!-- amb la mateixa pasta -->
        <pattern>
            <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception postag="RG"/></token>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="D[AIP].*" postag_regexp="yes"/>
                <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes"/></token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"/>
                        <token postag="V.[MSI].*" postag_regexp="yes"><exception regexp="yes">era|fou</exception></token>
                    </and>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <!-- hi haver + nom/verb   Hi ha alzines-->
    <rule id="haver_nom" name="haver + nom">
        <pattern>
            <token>hi</token>
            <token inflected="yes">haver</token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"></token>
                    <token postag="N.*" postag_regexp="yes"><exception>era</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rulegroup id="tens" name="tens (verb/adjectiu)">
        <rule>
            <pattern>
                <token>el</token>
                <marker>
                    <token postag="V.*" postag_regexp="yes">tens</token>
                </marker>
                <token postag="V.P.*|AQ.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="A.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">posar</token>
                <marker>
                    <token postag="AQ0MS0">tens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="AQ.*|_GN_.*"/>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">quin</token>
                <token postag="N.*" postag_regexp="yes" skip="1"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">tens</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="A.*"/>
        </rule>
    </rulegroup>
    <!-- continuar, seguir, estar, acabar...  + gerundi Va continuar ocupant-->
    <rulegroup id="verb_gerundi" name="verb + gerundi">
        <rule>
            <pattern>
                <marker>
                    <token postag="V.[^P].*" postag_regexp="yes" inflected="yes" regexp="yes">acabar|començar|anar|continuar|seguir|prosseguir|estar</token>
                    <token postag="V.G.*" postag_regexp="yes"><exception postag="_perfet"/></token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="V.[^P].*" postag_regexp="yes" inflected="yes" regexp="yes">acabar|començar|anar|continuar|seguir|prosseguir|estar</token>
                    <token postag="V.G.*" postag_regexp="yes"><exception postag="_perfet"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
    </rulegroup>
    <!-- gerundi amb pronoms febles no és adjectiu-->
    <rule id="GERUNDI" name="Gerundi no adjectiu">
        <pattern>
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"></token>
                    <token postag="V.G.*" postag_regexp="yes" negate_pos="yes"><exception postag="_GV_"/></token>
                </and>
            </marker>
            <token postag="P.*" postag_regexp="yes" regexp="yes">-.*</token>
        </pattern>
        <disambig action="filter" postag="V.G.*"></disambig>
    </rule>
    <rulegroup id="NoAdverbi" name="no adverbi darrere de puntuació">
        <rule>
            <pattern>
                <token regexp="yes">[,;:—–…]</token>
                <marker>
                    <token regexp="yes">quan|com|però</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^R].*"></disambig>
        </rule>
    </rulegroup>
    <!-- dos adverbis junts: una molt ben nodrida; molt més assolellada -->
    <rule id="adv_adv" name="adverbis junts">
        <pattern>
            <marker>
                <token postag="RG_anteposat"></token>
            </marker>
            <token postag="RG"></token>
            <token postag="A.*|V.P.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="RG.*"></disambig>
    </rule>
    <rule id="tot_adjgerund" name="tot + adjectiu/gerundi">
        <!-- tan important -->
        <pattern>
            <token postag="RG">tot</token>
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.G.*"></disambig>
    </rule>
    <rule id="adjgerund_nom" name="adjectiu/gerundi + nom">
        <pattern>
            <token><exception postag="NC.*|SPS00|D.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token postag="NC.P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.G.*"></disambig>
    </rule>
    <rule id="adv_adjgerund" name="adverbi + adjectiu/gerundi">
        <!-- tan important -->
        <pattern>
            <token postag="RG_anteposat|.*LOC_ADV.*" postag_regexp="yes"/>
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"><exception>portant</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*"></disambig>
    </rule>
    <rule id="adv_adjverb" name="adverbi + adjectiu/verb">
        <!-- tan complexa, tant planes de sabana com regions de jungla; tan baixa com, tan seré -->
        <pattern>
            <token postag="RG_anteposat" regexp="yes">tant?</token>
            <marker>
                <and>
                    <token postag="V.[MIS].*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <!-- es contradiu amb la regla adv_adj. Potser no és "desambiguable" -->
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="DA_PX" name="article + possessiu(nostre)">
        <pattern>
            <token postag="DA.*" postag_regexp="yes"/>
            <marker>
                <token postag="PX.*" postag_regexp="yes" inflected="yes">nostre</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="PX.*"></disambig>
    </rule>
    <rule id="en_aparenca" name="en aparença">
        <pattern>
            <token>en</token>
            <marker><token>aparença</token></marker>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <rule id="verbnom_sentstart" name="verb i nom a principi de frase">
        <!-- Copa del món, Rates de laboratori, Formes de vida... I objectes de valor -->
        <pattern>
            <token postag="SENT_START|CC|_PUNCT.*" postag_regexp="yes" />
            <marker>
                <and>
                    <token postag="V.[IS].*" postag_regexp="yes"></token>
                    <token postag="NC.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token inflected="yes" regexp="yes">de|entre</token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        <!-- les dues meitats dreta i esquerra (A+N+V)-->
    </rule>
    <rule id="VerbReflexiu" name="paraules que no són verb reflexiu">
        <pattern>
            <token postag="P020S000|P0300000" postag_regexp="yes"><exception regexp="yes">['-].+</exception></token>
            <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">-.+</exception></token>
            <marker>
                <and>
                    <token postag="NC.*|AQ.*" postag_regexp="yes" regexp="yes">suïcidi|persona|persones|digna|dignes?</token>
                    <token postag="V.[SI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="NC.*|AQ.*"></disambig>
    </rule>
    <rule id="NoVerbReflexiu" name="paraules que no són verb sense pronom (verb reflexiu)">
        <pattern>
            <token><exception postag="P020S000|P0300000" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
            <marker>
                <and>
                    <token postag="NC.*|AQ.*" postag_regexp="yes" regexp="yes">adient|fuga|fugues|arrossar|broma|bromes|vergonya|vergonyes|vergonyant|suïcidi|arròs|tinya|tinyes|esperit|salina|salines|persona|persones|olives|oliva|olivar|amiga|amigues|boira|boires|roja|roges|digna|dignes?|octubres?</token>
                    <token postag="V.[GMNSI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
            <token><exception postag="P020S000|P0300000" postag_regexp="yes" regexp="yes">['-].+</exception></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="nom_noverb_seguit_de" name="nom no verb seguit de de">
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">signe|barreja|mescla|taxa</token>
                </and>
            </marker>
            <token regexp="yes">de|d'</token>
            <token><exception>manera</exception></token>
            <token><exception>manera</exception></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rulegroup id="qui_les_porta" name="qui pronom verb 3a persona sing">
        <rule>
            <pattern>
                <token><exception regexp="yes">allò|després|abans|malgrat</exception><exception postag="V.*" postag_regexp="yes" inflected="yes" regexp="yes">fer|aconseguir</exception></token>
                <token regexp="yes">qui|que|què<exception postag=".*LOC_CONJ.*" postag_regexp="yes"/></token>
                <token postag="&pronom_feble;" postag_regexp="yes"/>
                <marker>
                    <token postag="VM..3S..?" postag_regexp="yes" regexp="yes">\p{Ll}.*<exception regexp="yes">seu|.+e|tema|fera|país|divisa|nous?|baixa|dona|esquerra</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*|_GV_|_obligacio|_perfet"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">qui|que|què</token>
                <token>hom</token>
                <marker>
                    <token postag="VM..3S..?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*|_GV_|_obligacio|_perfet"></disambig>
        </rule>
        <rule>
            <pattern>
                <!-- <token><exception regexp="yes">allò|després|abans</exception></token> -->
                <token regexp="yes">qui|que|què</token>
                <token>un</token>
                <marker>
                    <token postag="VM..3S..?" postag_regexp="yes"><exception postag="NC[MC][SN].*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*|_GV_|_obligacio|_perfet"></disambig>
        </rule>
    </rulegroup>
    <!-- <rule id="el_troba" name="el troba"> Es pot generalitzar...
        <pattern>
        <token postag="P.*" postag_regexp="yes">el</token>
        <token postag="V.*" postag_regexp="yes" regexp="yes">(trob|torn)(a|es)</token>
        </pattern>
        <disambig action="filterall"/>
        </rule> -->
    <rule id="es_diu" name="es diu Corredor (verb dir)">
        <pattern>
            <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">els?</exception></token>
            <marker>
                <token postag="V.[^MNGP].*" postag_regexp="yes" regexp="yes">dius?</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="estima" name="l'informe estima, estima provat">
        <rule>
            <pattern>
                <token>informe</token>
                <marker>
                    <token>estima</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>estima</token>
                </marker>
                <token regexp="yes">provats?|demostrats?</token>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="voltant" name="voltant (nom)">
        <pattern>
            <token postag="D.*" postag_regexp="yes"/>
            <marker>
                <token>voltant</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"/>
    </rule>
    <rule id="son_pare" name="son pare">
        <pattern>
            <token><exception postag="D[^R].*" postag_regexp="yes"/></token>
            <token>son</token>
            <marker>
                <token>pare</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="son_germa" name="son germà">
        <pattern>
            <token><exception postag="D[^R].*" postag_regexp="yes"/></token>
            <token>son</token>
            <marker>
                <token postag="NCMS000">germà</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <rule id="val" name="val (no nom)">
        <pattern>
            <token>quant</token>
            <marker>
                <token>val</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="si_conjuncio" name="si conjunció">
        <pattern>
            <token><exception regexp="yes">el|un</exception></token>
            <marker>
                <token>si</token>
            </marker>
            <token postag="R.*|V.[MSI].*|PP.*|P0.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="infinitiu_nomverb_nom0" name="infinitiu + verb/nom + nom">
        <!-- Per a berenar menges pa-->
        <pattern>
            <token postag="V.N.*" postag_regexp="yes"/>
            <marker>
                <and>
                    <token postag="V.[IS].*" postag_regexp="yes"><exception inflected="yes" regexp="yes">nom|persona|ritme</exception><exception regexp="yes">dona|dones</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*|A.*|PX.*|V.P.*|D.*|SPS.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <token postag="NC.*" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="N.*" postag_regexp="yes" negate_pos="yes" /><exception regexp="yes">propietat|consort|mare|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base</exception></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="verb_nomverb0" name="verb + verb/no_verb">
        <rule>
            <pattern>
                <token postag="V.[NMIS].*" postag_regexp="yes"><exception postag="V.[NMIS].*|complement" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token> <!-- no té cap quantitat -->
                        <token postag="NC.*|A.*|V.P.*|DN.*" postag_regexp="yes"><exception regexp="yes">era|va|seré|fou</exception></token>
                    </and>
                </marker>
                <token><exception postag="P[P0].*" postag_regexp="yes" regexp="yes">['-].+</exception></token>
            </pattern>
            <disambig action="filter" postag="V.P.*|[^V].*"></disambig>
        </rule>
        <rule>
            <!-- verb + verb/no_verb amb adverbi intercalat" que fos més escàs -->
            <pattern>
                <token postag="V.[NMIS].*" postag_regexp="yes"><exception postag="V.[NMIS].*|complement" postag_regexp="yes" negate_pos="yes"/></token>
                <token postag="RG_anteposat" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token> <!-- no té cap quantitat -->
                        <token postag="NC.*|A.*|V.P.*|DN.*" postag_regexp="yes"><exception regexp="yes">era|va</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|[^V].*"></disambig>
        </rule>
        <rule> <!-- amb pronom enclític: fer-se palesa -->
            <pattern>
                <token postag="V.[NMIS].*" postag_regexp="yes" skip="1"><exception postag="V.[NMIS].*|complement" postag_regexp="yes" negate_pos="yes"/><exception scope="next" postag="P[P0].*" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
                <token postag="P.*" postag_regexp="yes" regexp="yes">['-].+</token>
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token> <!-- no té cap quantitat -->
                        <token postag="NC.*|A.*|V.P.*|DN.*" postag_regexp="yes"><exception regexp="yes">era|va</exception></token>
                    </and>
                </marker>
                <token><exception postag="P[P0].*" postag_regexp="yes" spacebefore="no"/></token>
            </pattern>
            <disambig action="filter" postag="V.P.*|[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.[NMIS].*" postag_regexp="yes" skip="1"><exception postag="V.[NMIS].*|complement" postag_regexp="yes" negate_pos="yes"/></token>
                <token postag="P.*" postag_regexp="yes" regexp="yes">['-].+</token>
                <token postag="RG_anteposat" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token> <!-- no té cap quantitat -->
                        <token postag="NC.*|A.*|V.P.*|DN.*" postag_regexp="yes"><exception regexp="yes">era|va</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|[^V].*"></disambig>
        </rule>
    </rulegroup>
    <rule id="nomverb_verb0" name="verb/no_verb + verb">
        <!-- Quan no hi era respiràvem més a gust. -->
        <pattern>
            <token><exception postag="&pronom_feble;|RN" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[GIMS].*" postag_regexp="yes"/>
                    <token postag="NC.*|A.*|V.P.*|PX.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token min="0" max="3" postag="&pronom_feble;|RN" postag_regexp="yes"><exception regexp="yes">['-].+</exception></token>
            <token postag="V.[SI].*" postag_regexp="yes"><exception postag="V.[MSI].*|_GV_" postag_regexp="yes" negate_pos="yes" /></token>
        </pattern>
        <disambig action="remove" postag="V.[GMSI].*"></disambig>
    </rule>
    <rule id="nomverb_verb0b" name="verb/no_verb + verb">
        <pattern>
            <token><exception postag="RG.*|&pronom_feble;" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[GIMS].*" postag_regexp="yes"><exception postag="_GV_"></exception></token>
                    <token postag="NC.*|A.*|V.P.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="_GV_"><exception postag="V.N.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="remove" postag="V.[GMSI].*"></disambig>
    </rule>
    <!--     <rule id="nomverb_nomverb0" name="art det + nom/verb + verb/nom">
        la creu estima. El metges estima (inclosos errors). ¿Aquesta deu era sagrada?
        Eliminada per problema: que els publicà fou. CAL PROVAR.
        <pattern>
        <token postag="DA.*" postag_regexp="yes"></token>
        <marker>
        <and>
        <token postag="V.[MIS].*" postag_regexp="yes"/>
        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*|A.*|PX.*|V.P.*" postag_regexp="yes"/></token>
        </and>
        </marker>
        <and>
        <token postag="V.[IS].*" postag_regexp="yes"/>
        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*|A.*|PX.*|V.P.*|DI.*" postag_regexp="yes"/></token>
        </and>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
        </rule> -->
    <rule id="gerundi_nomverb" name="gerundi + verb/nom">
        <!-- menjant ou, donant forma -->
        <pattern>
            <token postag="V.G.*" postag_regexp="yes"><exception postag="_GN_.*|AQ.*" postag_regexp="yes"/><exception>corrent</exception></token>
            <marker>
                <and>
                    <token postag="V.[IS].*" postag_regexp="yes"><exception regexp="yes">era|eres</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="A.*|V.P.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="tota_la_tarda" name="tota la tarda">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="DI.*" postag_regexp="yes" inflected="yes">tot</token>
                <token postag="D.*" postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes"><exception postag="PX.*|V.P.*" postag_regexp="yes"/></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="quin_punt" name="quin punt">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="D[TE].*" postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="nomverb_nom0" name="nom + verb/nom">
        <!-- la segona porta accent. Excep: el seu germà, necessità deu anys. -->
        <pattern>
            <token><exception postag="SPS00|D[DI].*|PX.*|.*LOC_PREP.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[GIS].*" postag_regexp="yes"><exception inflected="yes" regexp="yes">nom|persona|ritme</exception><exception postag="VMIP1S0B"/><exception regexp="yes">dona|dones</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*|A.*|PX.*|V.P.*|D.*|SPS.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <token postag="NC.*" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="N.*" postag_regexp="yes" negate_pos="yes" /><exception regexp="yes">propietat|consort|mare|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base</exception></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="nomadj_verbnomadj_nom" name="nom + verb/nom/adj + nom">
        <!-- l'art expressa emocions. Excp: la darrera gran inundació, la greu doble crisi -->
        <pattern>
            <token postag="N.*|A.*" postag_regexp="yes"><exception postag="N.*|A.*" postag_regexp="yes" negate_pos="yes" /></token>
            <marker>
                <and>
                    <token postag="V.[NIS].*" postag_regexp="yes"><exception regexp="yes">gran|doble|sol|major|lliure</exception></token>
                    <token postag="NC.*|A.*|V.P.*" postag_regexp="yes"><exception postag="_GN.*|PX.*|D.*|SPS.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <token postag="NC.*" postag_regexp="yes" regexp="yes">[\p{Ll}·]+<exception postag="N.*|SENT_END" postag_regexp="yes" negate_pos="yes" /><exception regexp="yes">propietat|consort|mare|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base</exception></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rulegroup id="ens_nom" name="ens (nom)">
        <rule>
            <pattern>
                <token>l'</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes">ens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">ens</token>
                </marker>
                <token postag="V.P.*|A.*" postag_regexp="yes" regexp="yes" inflected="yes">territorial|públic|local|metropolità|administratiu|representar|supramunicipal|supraestatal|interestatal|nacional|internacional|provincial|estatal|racional|televisiu|normatiu|autonòmic|polític|institucional|abstracte|parroquial</token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <marker>
                    <token>ens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <token postag="D[^R].[CM][SP]." postag_regexp="yes"/>
                <marker>
                    <token>ens</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="ens_pronom" name="ens (pronom)">
        <rule>
            <pattern>
                <token postag="RG"/>
                <marker>
                    <token postag="P.*" postag_regexp="yes">ens</token>
                </marker>
                <token postag="V.[SI].*|P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="P.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="P.*" postag_regexp="yes">ens</token>
                </marker>
                <token postag="V...1P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="P.*"/>
        </rule>
    </rulegroup>
    <rule id="PronomNom" name="nom i pronom">
        <!-- jo, mi, la, te, ens. Excepció: de te.  -->
        <pattern>
            <token><exception postag="D[AID].*" postag_regexp="yes" /><exception>de</exception></token>
            <marker>
                <and>
                    <token postag="PP.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"><exception>te</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="sere" name="seré">
        <pattern>
            <token><exception postag="V.[MSI].*|_GV_" postag_regexp="yes"/></token>
            <marker>
                <token postag="V.*" postag_regexp="yes">seré</token>
            </marker>
            <token><exception postag="V.[MSI].*|_GV_" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="poc" name="poc (no nom)">
        <pattern>
            <token><exception postag="D[^R].MS.*" postag_regexp="yes"/></token>
            <marker><token>poc</token></marker>
            <token><exception>que</exception></token>
        </pattern>
        <disambig action="filter" postag="[^N].*"/>
    </rule>
    <rule id="alt_baix" name="alt/baix adjectius davant de nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="AQ.*" postag_regexp="yes" regexp="yes" inflected="yes">alt|baix|doble|principal|gran</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="filter" postag="AQ.*"/>
    </rule>
    <rule id="corrent_pendent_noms" name="corrent/pendent no adjectius davant d'adjectiu">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">vessant|corrent|pendent|germà|partit|empresa</token>
                </marker>
                <token postag="AQ.*|V.P.*|NPCN000" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^AV].*"/>
    </rule>
    <rule id="corrent_pendent_noms2" name="corrent/pendent no adjectius darrere d'adjectiu">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <token postag="D[^R].*" postag_regexp="yes"/>
                <token inflected="yes" regexp="yes">suau|diferent</token><!--<exception postag="N.*" postag_regexp="yes"/></token>-->
                <marker>
                    <token postag="N.*" postag_regexp="yes" regexp="yes" inflected="yes">vessant|corrent|pendent</token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^AV].*"/>
    </rule>
    <rule id="corrent_pendent_adjectius" name="corrent/pendent adjectius darrere de nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="PX.*|A.*|DN.*" postag_regexp="yes"/><exception regexp="yes">torna|massa|troba</exception></token>
                    <token postag="A.*" postag_regexp="yes" regexp="yes" inflected="yes">vessant|corrent|pendent|germà|partit</token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="amic_nom" name="amic nom darrere d'adjectiu">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes"/></token>
                    <token postag="N.*" postag_regexp="yes" inflected="yes">amic</token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="corrent_gerundi" name="corrent (gerundi)">
        <pattern>
            <token inflected="yes" regexp="yes">anar|fugir|escapar</token>
            <marker>
                <token postag="VMG00000">corrent</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="VMG00000"/>
    </rule>
    <rule id="petit" name="petit: adjectiu davant de nom">
        <pattern>
            <marker>
                <token postag="AQ.*" postag_regexp="yes" inflected="yes">petit</token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="AQ.*"/>
    </rule>
    <rule id="vessant" name="vessant: gerundi">
        <pattern>
            <marker>
                <token>vessant</token>
            </marker>
            <token regexp="yes" inflected="yes">aigua|vi|líquid</token>
        </pattern>
        <disambig action="filter" postag="V.*"/>
    </rule>
    <rule id="general_nonom" name="general/fiscal no noms darrere de nom">
        <pattern> <!-- de caràcter general -->
            <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="N.*" postag_regexp="yes"><exception>múltiples</exception></token>
                <marker>
                    <and>
                        <token postag="AQ.C.*" postag_regexp="yes"/>
                        <token postag="NCC.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </unify>
        </pattern>
        <disambig action="filter" postag="[^N].*"/>
    </rule>
    <rule id="vers" name="vers (preposició)">
        <pattern>
            <marker>
                <token>vers</token>
            </marker>
            <token postag="DA.*|NP..G.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="SP.*"/>
    </rule>
    <rulegroup id="FORCA" name="força: nom, adjectiu, adverbi">
        <rule> <!-- amb força indestructible, de força major -->
            <pattern>
                <token postag="SPS00"></token>
                <marker>
                    <token postag="NCFS000">força</token>
                </marker>
                <token postag="AQ.[FC]S.|V.P..SF." postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"/>
        </rule>
        <rule> <!-- Donem preferència a l'adjectiu en casos ambigus: força comuns-->
            <pattern>
                <token><exception postag="D[^R].FS." postag_regexp="yes"/><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].*</exception></token>
                <marker>
                    <token postag="RG">força</token>
                </marker>
                <token postag="AQ.*|V.P.*|RG" postag_regexp="yes"><exception regexp="yes">que|major</exception></token>
            </pattern>
            <disambig action="filter" postag="R.*"/>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D[^R].FS." postag_regexp="yes"/><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].*</exception></token>
                <marker>
                    <token postag="DI0CN0">força</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="DI.*"/>
        </rule>
    </rulegroup>
    <rule id="vora" name="vora (preposició)">
        <pattern>
            <token><exception postag="D.*|PX.*" postag_regexp="yes"/></token>
            <marker>
                <token>vora</token>
            </marker>
            <token postag="D.*" postag_regexp="yes"><exception>es</exception></token>
            <token><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="SPS00"/>
    </rule>
    <!--<rule id="en_preposicio" name="en (preposició) + article">
        <pattern>
        <marker>
        <token>en</token>
        </marker>
        <token postag="_GN.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="SPS00"></disambig>
        </rule>
        <rule id="en_preposicio2" name="en (preposició) + article">
        <pattern>
        <token>en</token>
        <marker>
        <token postag="_GN.*" postag_regexp="yes"></token>
        </marker>
        </pattern>
        <disambig action="filter" postag="D.*"></disambig>
        </rule>
    -->
    <rule id="en_preposicio3" name="en (preposició) + article">
        <pattern>
            <marker>
                <token>en</token>
            </marker>
            <token postag="DA.*" postag_regexp="yes" />
            <token postag="(A|N|PX|DN).*" postag_regexp="yes" />
        </pattern>
        <disambig action="filter" postag="SPS00"></disambig>
    </rule>
    <rule id="en_preposicio4" name="en (preposició) + article">
        <pattern>
            <token>en</token>
            <marker>
                <token postag="DA.*" postag_regexp="yes" />
            </marker>
            <token postag="(A|N|PX|DN|V.P).*" postag_regexp="yes" />
        </pattern>
        <disambig action="filter" postag="DA.*"></disambig>
    </rule>
    <!--en l'obra, en la causa, en(s) el porten -->
    <!-- pronom personal + pronom personal + verb -->
    <rulegroup id="PPdos_VERB" name="dos o més pronoms personals i verb">
        <rule id="dosPP_VERB" name="dos pronoms personals més verb">
            <pattern>
                <marker>
                    <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"><exception regexp="yes">['-].+|nosaltres|vosaltres|tu|mi</exception></token>
                    <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"><exception regexp="yes">[-].+|nosaltres|vosaltres|tu|mi</exception></token>
                    <token postag="V.[^MNPG].*|_GV_|_perfet|_obligacio" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="tresPP_VERB" name="tres pronoms personals més verb">
            <pattern>
                <marker>
                    <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"><exception regexp="yes">['-].+|nosaltres|vosaltres|tu|mi</exception></token>
                    <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"><exception regexp="yes">[-].+|nosaltres|vosaltres|tu|mi</exception></token>
                    <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"><exception regexp="yes">[-].+|nosaltres|vosaltres|tu|mi</exception></token>
                    <token postag="V.[^MNPG].*|_GV_|_perfet|_obligacio" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
    </rulegroup>
    <rule id="ELS_DEU" name="els deu quantitats">
        <pattern>
            <token>els</token>
            <marker>
                <and>
                    <token postag="DN0CP0">deu</token>
                    <token postag="V.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                </and>
            </marker>
            <token postag="NCFP.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter"  postag="V.*"/>
    </rule>
    <rule id="en_conserva" name="en conserva (no verb)">
        <pattern>
            <token>en</token>
            <marker>
                <token>conserva</token>
            </marker>
            <token><exception postag="D[^R].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter"  postag="[^V].*"/>
    </rule>
    <rule id="va_noadj" name="va (no adjectiu)">
        <pattern>
            <token postag="&pronom_feble;" postag_regexp="yes"></token>
            <marker>
                <token postag="V.*" postag_regexp="yes">va</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_"/>
    </rule>
    <rule id="nova" name="nova, bona (adjectiu)">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="AQ.*" postag_regexp="yes" regexp="yes">nova|noves|bon|bona</token>
                </marker>
                <token postag="NC.*" postag_regexp="yes"></token>
            </unify>
        </pattern>
        <disambig action="filter" postag="AQ.*"></disambig>
        <example type="untouched">la cara <marker>era</marker> d'un color gris</example>
    </rule>
    <rulegroup id="verbnom_de" name="art+verb_nom+de">
        <!-- L'era de... No va bé per a verbs que regeixen "de" -->
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="DA.*|AQ.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes"/><exception>es</exception></token>
                    <marker>
                        <and>
                            <token postag="NC.*" postag_regexp="yes"></token>
                            <token postag="V.[SI].*" postag_regexp="yes"><exception inflected="yes">prendre</exception></token>
                        </and>
                    </marker>
                </unify>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
            <example type="untouched">la cara <marker>era</marker> d'un color gris</example>
        </rule>
        <rule> <!-- a l'altre punta de carrer -->
            <pattern>
                <token inflected="yes">altre</token>
                <marker>
                    <and>
                        <token postag="V.[SI].*" postag_regexp="yes"><exception inflected="yes">prendre</exception><exception>era</exception></token>
                        <token postag="NC.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule id="objecte_de" name="objecte de"><!-- es pot generalitzar? -->
            <pattern>
                <marker>
                    <token regexp="yes">objectes?|creus?</token>
                </marker>
                <token regexp="yes">de|d'<exception postag=".*LOC_.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
    </rulegroup>
    <rulegroup id="ALTRE" name="l'altre determinant/adjectiu/pronom">
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">el|un</token>
                <marker>
                    <token postag="[AP].*" postag_regexp="yes" inflected="yes">altre</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[AP].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="P.*" postag_regexp="yes" inflected="yes">altre<exception scope="previous" regexp="yes">ningú|algú|cadascú</exception></token>
                </marker>
                <token><exception postag="[NA].*|PX.*|V.P.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">el</token>
                <token inflected="yes">un</token>
                <token>a</token>
                <token inflected="yes">el</token>
                <marker>
                    <token postag="P.*" postag_regexp="yes" inflected="yes">altre</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="P.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="es_queda" name="es queda (verb)">
        <pattern>
            <token regexp="yes">es|se<exception scope="previous" postag="SPS00"/></token>
            <marker>
            <and>
                <token postag="NC.*" postag_regexp="yes"/>
                <token postag="V.[SI].*" postag_regexp="yes"/>
            </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="NC.*"/>
    </rule>
    <rulegroup id="DDN" name="Det + Det + nom">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="DA.[^F].*" postag_regexp="yes"/>
                    <marker>
                        <token postag="DI.*" postag_regexp="yes"><exception>cap</exception></token>
                    </marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="DI.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="DetDet" name="det + det: una certa" >
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes" inflected="yes">un</token>
                    <token postag="DI.*" postag_regexp="yes" inflected="yes">cert</token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall" />
    </rule>
    <rule id="DANA" name="det + adj + adj + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception regexp="yes">era|fou</exception></token>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall" />
    </rule>
    <!-- La característica mitja canya
        problema: la part superior esquerra -->
    <rule id="DAAN" name="det + adj + adj + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*|DN.*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"><exception postag="DN.*|V.G.*" postag_regexp="yes"/><exception regexp="yes">si|passa|dins</exception></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall" />
    </rule>
    <rule id="DPAAN" name="det + poss + adj + adj + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes"/>
                    <token postag="PX.*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*|DN.*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception regexp="yes">fou|era|mira|queda|cap</exception></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="unify"/>
    </rule>
    <rule id="DANumAN" name="det + adj + numeral + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <token postag="DN.*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="DANumN" name="det + adj + numeral + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[^R].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <token postag="DN.*" postag_regexp="yes"/>
                    <token postag="N.*|V.P.*|A.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="DPAN" name="Det + Possessiu  + Adj + Nom">
        <!-- La seva mala intenció -->
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D[^R].*" postag_regexp="yes"/>
                        <token postag="PX.*" postag_regexp="yes"/>
                        <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="AQ0CN0"/></token>
                        <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception regexp="yes">era|mira|queda|cap</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="unify"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][SN].*" postag_regexp="yes"/>
                    <token postag="PX.[MC][SN].*" postag_regexp="yes"/>
                    <token postag="A..[MC][SN].*|V.P.*SM.?" postag_regexp="yes"><exception postag="AQ0CN0"/></token>
                    <token postag="N.[MC][SN].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][SN].*" postag_regexp="yes"/>
                    <token postag="PX.[FC][SN].*" postag_regexp="yes"/>
                    <token postag="A..[FC][SN].*|V.P.*SF.?" postag_regexp="yes"><exception postag="AQ0CN0"/></token>
                    <token postag="N.[FC][SN].*" postag_regexp="yes"><exception regexp="yes">era|mira|queda|cap</exception><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][PN].*" postag_regexp="yes"/>
                    <token postag="PX.[MC][PN].*" postag_regexp="yes"/>
                    <token postag="A..[MC][PN].*|V.P.*PM.?" postag_regexp="yes"><exception postag="AQ0CN0"/></token>
                    <token postag="N.[MC][PN].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][PN].*" postag_regexp="yes"/>
                    <token postag="PX.[FC][PN].*" postag_regexp="yes"/>
                    <token postag="A..[FC][PN].*|V.P.*PF.?" postag_regexp="yes"><exception postag="AQ0CN0"/></token>
                    <token postag="N.[FC][PN].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="DNumN" name="Det + Numeral + Nom/Adj">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D[AID].*" postag_regexp="yes"></token>
                        <token postag="DN0CP0" />
                        <token postag="A.*|V.P.*|N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall" />
        </rule>
        <!--<rule>
            <pattern>
                <token postag="D[AID].[MC][PN0].*" postag_regexp="yes"></token>
                <marker>
                    <token postag="DN0CP0" />
                </marker>
                <token postag="A..[MC][PN0].*|V.P..PM.?|N.[MC][PN0].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN0MP0"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[AID].[FC][PN0].*" postag_regexp="yes"></token>
                <marker>
                    <token postag="DN0CP0" />
                </marker>
                <token postag="A..[FC][PN0].*|V.P..PF.?|N.[FC][PN0].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN0FP0"></disambig>
        </rule>-->
        <rule>
            <pattern>
                <marker>
                    <token postag="D[AID].[MC][PN0].*" postag_regexp="yes"/>
                    <token postag="DN0[CM]P0" postag_regexp="yes"/>
                    <token postag="A..[MC][PN0].*|V.P..PM.?|N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[AID].[FC][PN0].*" postag_regexp="yes"/>
                    <token postag="DN0[CF]P0" postag_regexp="yes"/>
                    <token postag="A..[FC][PN0].*|V.P..PF.?|N.[FC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rule id="DeDiN" name="Determinant exclamatiu + indeterminat + nom: quin poc seny">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="D[ET].*|PT.*" postag_regexp="yes"/>
                    <token postag="DI.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="DNA" name="Det + Nom + Adj/Possessiu/participi">
        <!--Falla amb nom neutre?: Aquest art expressa  -->
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D[^R].*" postag_regexp="yes"></token>
                        <token postag="N.*" postag_regexp="yes"><exception inflected="yes">meu</exception><exception postag="DN.*" postag_regexp="yes" /><exception inflected="yes">poc</exception></token><!--  -->
                        <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"><exception regexp="yes">som|presta|tens|comprés|després|muntà|va|segons</exception></token> <!-- <exception postag="V[MA]IP3S0" postag_regexp="yes"/>-->
                    </marker>
                </unify>
            </pattern>
            <disambig action="unify"/>
            <example type="untouched">Són <marker>les dos alternatives</marker> bàsiques.</example>
        </rule>
        <!--         <rule>
            <pattern>
            <unify>
            <feature id="nombre"/>
            <feature id="genere"/>
            <marker>
            <token postag="D[^R].*" postag_regexp="yes"></token>
            <token postag="N.*" postag_regexp="yes">deu</token>
            <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"/>
            </marker>
            </unify>
            </pattern>
            <disambig action="unify"/>
            </rule> -->
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][SN0].*" postag_regexp="yes"/>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"/>
                    <token postag="A..[MC][SN0].*|V.P..SM.?|PX.[MC][SN0].*" postag_regexp="yes"><exception postag="V[MA]IP3S0.?" postag_regexp="yes"/><exception regexp="yes">som|tens|comprés|muntà|va</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][SN0].*" postag_regexp="yes"/>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][SN0].*|V.P..SF.?|PX.[FC][SN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][PN0].*" postag_regexp="yes"></token>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception inflected="yes">meu</exception></token>
                    <token postag="A..[MC][PN0].*|V.P..PM.?|PX.[MC][PN0].*" postag_regexp="yes"><exception>segons</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][PN0].*" postag_regexp="yes"></token>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][PN0].*|V.P..PF.?|PX.[FC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="DAN" name="Det + Adj + Nom">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D[^R].[MF].." postag_regexp="yes"/> <!--afegit: altres, bastants, qualssevol, qualssevulla-->
                        <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"/>
                        <token postag="N.*" postag_regexp="yes"><exception regexp="yes">quina|sabeu|surt|ara|fou|perquè|trenca|era|diu|si|però|escull|creix|dura|parla|mira|queda|estima|passa|escolta|troba|tots?</exception><exception postag="DN.*" postag_regexp="yes" /></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="unify"/>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D[^R].C.." postag_regexp="yes"/>
                        <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"/>
                        <token postag="N.*" postag_regexp="yes"><exception regexp="yes">quina|sabeu|fan|ara|fou|perquè|diu|si|però|era|tots?</exception><exception postag="DN.*|V[MA]IP3S0.?" postag_regexp="yes" /></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="unify"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][SN0].*" postag_regexp="yes"/>
                    <token postag="A..[MC][SN0].*|V.P..SM.?|PX.[MC][SN0].*" postag_regexp="yes"/>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception regexp="yes">sabeu|fan|surt|perquè|diu|si|però|escull|creix|escolta|troba|tot</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][SN0].*" postag_regexp="yes"/>
                    <token postag="A..[FC][SN0].*|V.P..SF.?|PX.[FC][SN0].*" postag_regexp="yes"/>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception regexp="yes">quina|fan|era|mira|queda|estima|passa|escolta|troba|fou</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][PN0].*" postag_regexp="yes"/>
                    <token postag="A..[MC][PN0].*|V.P..PM.?|PX.[MC][PN0].*" postag_regexp="yes"/>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception>tots</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][PN0].*" postag_regexp="yes"/>
                    <token postag="A..[FC][PN0].*|V.P..PF.?|PX.[FC][PN0].*" postag_regexp="yes"/>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rule id="ANAA" name=" Adj + Nom + Adj">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A.*|V.P.*" postag_regexp="yes"></token>
                    <token postag="A.*|V.P.*" postag_regexp="yes"></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rulegroup id="ANA" name=" Adj + Nom + Adj">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                        <token postag="N.*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                        <token postag="A.*|V.P.*" postag_regexp="yes"></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/></token>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/></token>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"><exception postag="A.0CN0|_GV_" postag_regexp="yes"/></token>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes"/><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rule id="Nom_3Adj" name="nom + tres adj abans de concordar">
        <pattern>
            <token postag="N.*" postag_regexp="yes"></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /><exception>som</exception></token>
                </and>
            </marker>
            <token postag="V.P.*|AQ.*" postag_regexp="yes" />
            <token postag="V.P.*|AQ.*" postag_regexp="yes" />
        </pattern>
        <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
    </rule>
    <rulegroup id="NAA" name="Nom + Adj + Adj">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception regexp="yes">queda|troba|ret|torna|posa|veu|seu</exception></token>
                        <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="AO0CN0"/><exception>seré</exception></token>
                        <token postag="A.*|V.P.*" postag_regexp="yes"><exception>fer</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
            <example type="untouched">si es pren vi acompanyat</example>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D..F..|D...P." postag_regexp="yes"/></token>
                <marker>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception>ret</exception></token>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"><exception>seré</exception></token>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"><exception>fer</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D..M..|D...P." postag_regexp="yes"/></token>
                <marker>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception regexp="yes">seu|troba|torna|posa|veu</exception></token>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"></token>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"></token>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"></token>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="part" name="part nom masculí o femení">
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes" regexp="yes">valor|vall|part|corrent|capital|ordre<exception postag="_GN_MS"/></token>
                        <token postag="_GN_FS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes" regexp="yes">part|corrent<exception postag="_GN_MS"/></token>
                        <token postag="_GN_FS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="AQ0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes" regexp="yes">valor|vall|part|corrent|capital|ordre<exception postag="_GN_FS"/></token>
                        <token postag="_GN_MS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCFS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="AQ0CS0">corrent<exception postag="_GN_FS"/></token>
                        <token postag="_GN_MS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="AQ0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="AQ0CS0">corrent<exception postag="_GN_FS"/></token>
                        <token postag="_GN_MS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="AQ0CS0"/></disambig>
        </rule>
        <rule> <!-- actes, alumnes -->
            <pattern>
                <marker>
                    <and>
                        <token postag="NCFP000"><exception postag="_GN_FP"/></token>
                        <token postag="NCMP000"/>
                        <token postag="_GN_MP"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCFP000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="NCMP000"><exception postag="_GN_MP"/></token>
                        <token postag="NCFP000"/>
                        <token postag="_GN_FP"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCMP000"/></disambig>
        </rule>
        <rule> <!-- soprano -->
            <pattern>
                <marker>
                    <and>
                        <token postag="NCFS000"><exception postag="_GN_FS"/></token>
                        <token postag="NC[MC]S000" postag_regexp="yes"/>
                        <token postag="_GN_MS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCFS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="NCMS000"><exception postag="_GN_MS"/></token>
                        <token postag="NC[FC]S000" postag_regexp="yes"/>
                        <token postag="_GN_FS"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCMS000"/></disambig>
        </rule>
    </rulegroup>
    <rule id="article_adj_nom" name="article + adj neutre + nom/adj">
        <!-- els principals implicades. Adjectius neutres amb errors. -->
        <pattern>
            <unify>
                <feature id="nombre"/>
                <token postag="D.*" postag_regexp="yes"></token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
                        <token postag="AQ.C.*" postag_regexp="yes"><exception regexp="yes">corrent|pendent|comensal</exception></token>
                    </and>
                </marker>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.[MSI].*|AQ.*|V.P.*|PX.*" postag_regexp="yes"/><exception regexp="yes">\p{Lu}.+</exception></token>
            </unify>
        </pattern>
        <disambig action="filter" postag="AQ.*"></disambig>
    </rule>
    <!-- el titular deixa, el lateral mostra, el central porta  -->
    <rule id="article_nom_verb" name="article + nom (adj neutre) + verb">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <token postag="D[AD].*" postag_regexp="yes"></token>
                <and>
                    <token postag="N.*" postag_regexp="yes"><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
                    <token postag="AQ.CS.*" postag_regexp="yes"></token>
                </and>
            </unify>
            <marker>
                <and>
                    <token postag="NC.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <!--    <rule id="article_nom_adj" name="article + nom (adj neutre) + adjectiu">
        <pattern>
        <unify>
        <feature id="nombre"/>
        <feature id="genere"/>
        <token postag="D.*" postag_regexp="yes"></token>
        <marker>
        <and>
        <token postag="N.*" postag_regexp="yes"><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
        <token postag="AQ.CS.*" postag_regexp="yes"></token>
        </and>
        </marker>
        </unify>
        <token postag="AQ.*|V.P.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
        </rule>
    -->
    <rulegroup id="que_causa" name="no nom darere de relatiu. Ex: que causa, que pensa">
        <rule>
            <pattern>
                <token postag="PR.*" postag_regexp="yes"><exception>com</exception></token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"><exception regexp="yes">nous?|reis</exception></token>
                        <token postag="VM.*" postag_regexp="yes"><exception postag="VMIP1S0.?" postag_regexp="yes"/></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="PR.*" postag_regexp="yes"><exception>com</exception></token>
                <token>no</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"><exception regexp="yes">nous?</exception></token>
                        <token postag="VM.*" postag_regexp="yes"><exception postag="VMIP1S0.?" postag_regexp="yes"/></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="NUMERALS_ENCADENATS" name="numerals encadenats">
        <rule>
            <pattern>
                <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
                <marker>
                    <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
                    <token postag="N.F[PN0].*|A..F[PN0].*" postag_regexp="yes"><exception postag="NCCN000|DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
            <!-- tres-centes cinquanta mil organitzacions, nou mil organitzacions -->
        </rule>
        <rule>
            <pattern>
                <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
                <marker>
                    <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
                    <token postag="N.M[PN0].*|A..M[PN0].*" postag_regexp="yes"><exception postag="NCCN000|DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
                </marker>
                <token regexp="yes">i|ni|o|,</token>
                <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
                </marker>
                <token regexp="yes">i|ni|o|,</token>
                <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN.*"/>
        </rule>
    </rulegroup>
    <rule id="AIXO_ADJ" name="això + adjectiu">
        <pattern>
            <token postag="PD0NS000" />
            <marker>
                <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="V.[IMS].*|SPS00" postag_regexp="yes"></exception> </token>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*|V.P.*|PX.*|RG.*"></disambig>
    </rule>
    <rule id="tot_son" name="tot son (són)">
        <pattern>
            <marker>
                <token postag="PI.*" postag_regexp="yes" inflected="yes">tot</token>
            </marker>
            <token>son</token>
        </pattern>
        <disambig action="filter" postag="PI.*"></disambig>
    </rule>
    <rulegroup id="DET_POSS_NOM" name="Det + possessiu + Nom/adj">
        <rule>
            <pattern>
                <token postag="DA.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="PX.*" postag_regexp="yes"></token>
                </marker>
                <token min="0" postag="RG"/>
                <token postag="(N|A).*" postag_regexp="yes"><exception>que</exception></token>
            </pattern>
            <disambig action="filter" postag="PX.*"></disambig>
            <example type="untouched">I la seu també ha sigut expropiada.</example>
        </rule>
    </rulegroup>
    <rule id="que" name="que (no adv)">
        <pattern>
            <marker>
                <and>
                    <token postag="RG.*" postag_regexp="yes">que</token>
                    <token postag="RG.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </marker>
            <token postag="A.*|V.P.*" postag_regexp="yes" negate_pos="yes"></token>
        </pattern>
        <disambig action="filter" postag="[^R].*"></disambig>
    </rule>
    <rule id="aviat" name="aviat adverbi">
        <pattern>
            <!--<token regexp="yes">ben|més|tan|massa</token>-->
            <marker>
                <token postag="RG">aviat<exception postag="_GV_"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="R.*"></disambig>
    </rule>
    <rule id="prep_mesmenys_nom" name="preposició + més/menys + nom">
        <pattern>
            <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
            <token regexp="yes">més|menys</token>
            <marker>
                <and>
                    <token postag="N..P.*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*|_GN_.*"></disambig>
    </rule>
    <rulegroup id="nom_adv_adj" name="nom + adverbi + adjectiu que concorden">
        <!-- antipattern: tens que -->
        <rule id="aa2" name="aa1: Era la feina més dura ">
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="NC.*|_GN_.*" postag_regexp="yes"><exception postag="CC|RG" postag_regexp="yes"/></token>
                    <token postag="RG_anteposat"/>
                    <marker>
                        <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filter" postag="AQ.*|V.P.*|PX.*|_GN_.*"></disambig>
        </rule>
        <rule id="aa2b" name="aa1: Era un home força misteriós">
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="NC.*|_GN_.*" postag_regexp="yes"><exception postag="CC"/></token>
                    <marker>
                        <token postag="RG_anteposat"/>
                    </marker>
                    <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
    </rulegroup>
    <!-- adverbis seguits d'adj i participi. REVISAR: tant català, tant catalana -->
    <rulegroup id="adv_adj" name="adverbi + adjectiu">
        <rule id="aa1" name="aa1"><!-- excep: més aviat complexes -->
            <pattern>
                <token>més</token>
                <marker>
                    <token>aviat</token>
                </marker>
                <token postag="AQ.*|NC.*|SPS.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule id="molt_fi" name="molt fi">
            <pattern>
                <marker>
                    <token postag="RG.*" postag_regexp="yes" regexp="yes">molt|poc|tan|força|massa|tot</token>
                    <token postag="AQ.*" postag_regexp="yes">fi</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="aa3" name="aa1">
            <pattern>
                <marker>
                    <token postag="RG_anteposat"><exception regexp="yes">molt|poc|tant|tan|força|massa|tot|també</exception><exception postag="N.*" postag_regexp="yes"/></token>
                </marker>
                <token postag="AQ.*|V.P.*" postag_regexp="yes"><exception postag="V.[NMIS].*|_GV_" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="R.*"></disambig>
        </rule>
        <rule id="aa4" name="aa1">
            <pattern>
                <token postag="RG_anteposat|.*LOC_ADV.*" postag_regexp="yes"><exception regexp="yes">molt|poc|tant|tan|força|massa|tot|més|també</exception></token>
                <marker>
                    <token postag="AQ.*|V.P.*" postag_regexp="yes"><exception postag="V.[NMIS].*|_GV_|RG" postag_regexp="yes"/><exception inflected="yes" regexp="yes">estat|part</exception><exception>nou</exception></token> <!--|N.* <exception regexp="yes">parts?</exception>-->
                    <!--  exc. força restaurants
                        que seria en pocs anys força hegemònica a Catalunya.-->
                    <!-- ací hi ha contradicció amb la regla adv_adjverb -->
                </marker>
                <token><exception regexp="yes">seus?</exception></token>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|DP.*"></disambig>
            <example type="untouched">Són massivament admiradors seus.</example>
        </rule>
        <rule id="aa5" name="aa1"><!--  amb més públic, per a tal objectiu. Excep: en gairebé tots els; de més alta qualitat -->
            <pattern>
                <token postag="SPS00"><exception>cap</exception></token>
                <token postag="RG_anteposat"><exception regexp="yes">molt|poc|tant|tan|.+ment|massa|ben</exception></token>
                <marker>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="D.*|PI.*|VS.*" postag_regexp="yes"/></token>
                </marker>
                <token><exception postag="NC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="NC.*"></disambig>
        </rule>
        <!-- cas: molt comunes. Però: tal objectiu-->
        <rule id="aa6" name="aa1">
            <pattern>
                <!-- <token postag="SPS00" negate_pos="yes"/> PROVISIONAL!!! -->
                <marker>
                    <and>
                        <token postag="RG"></token>
                        <token postag="D.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <and>
                    <token postag="AQ.*|V.P.*" postag_regexp="yes"></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="N.[MC][SN].*" postag_regexp="yes"/></token>
                </and>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
        <rule id="aa6b" name="aa1">
            <pattern>
                <token>de</token>
                <marker>
                    <and>
                        <token postag="RG">molt</token>
                        <token postag="D.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <and>
                    <token postag="AQ.*|V.P.*" postag_regexp="yes"></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="N.[MC][SN].*" postag_regexp="yes"/></token>
                </and>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
        <rule id="aa7" name="la molt astuta">
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="DA.*" postag_regexp="yes"></token>
                        <token postag="RG_anteposat"/>
                        <token postag="AQ.*|V.P.*" postag_regexp="yes"><exception postag="V.[SI].*" postag_regexp="yes"/><exception>mal</exception></token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule id="aa8" name="aa1">
            <pattern>
                <token postag="D.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="AQ.*|V.P.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|_GN_.*"></disambig>
        </rule>
        <rule id="aa9" name="aa1">
            <pattern>
                <token postag="D.*|N.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="AQ.*|V.P.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|_GN_.*"></disambig>
        </rule>
        <!--         <rule id="aa10" name="aa1">
            <pattern>
            <token postag="N.*|_GN_.*" postag_regexp="yes"><exception postag="CC"/></token>
            <token postag="RG.*" postag_regexp="yes"></token>
            <marker>
            <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="V.[^P].*" postag_regexp="yes"/></token>
            </marker>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|PX.*|_GN_.*"></disambig>
            </rule> -->
        <rule id="aa11" name="aa1"> <!-- ampliar a LOC_ADV
            Però han de concordar??: que seria en pocs anys força hegemònica a Catalunya.
            Aquesta regla permet errors: "una alineació poc habitual"-->
            <pattern>
                <token postag="N.*|_GN_.*|RG.*|V.[SI].*|PI.*|_PUNCT.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="RG_anteposat"><exception postag="NC.*" postag_regexp="yes">força</exception></token>
                </marker>
                <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="N.[MC][SN].*" postag_regexp="yes"/></token> <!-- <exception postag="V.[^P].*" postag_regexp="yes"/> -->
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
        <rule id="aa12" name="aa1"> <!-- ampliar a LOC_ADV -->
            <!--  Haurien de concordar?? -->
            <pattern>
                <token postag="N.*|_GN_.*|RG.*|V.[SI].*|PI.*" postag_regexp="yes"></token>
                <token postag="_PUNCT.*" postag_regexp="yes"/>
                <marker>
                    <token postag="RG_anteposat"><exception regexp="yes">força|tot</exception></token>
                </marker>
                <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="N.[MC][SN].*" postag_regexp="yes"/></token> <!-- <exception postag="V.[^P].*" postag_regexp="yes"/> -->
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
        <rule id="aa13" name="aa1">
            <pattern>
                <token postag="N.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="V.[^P].*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|PX.*|_GN_.*"></disambig>
        </rule>
        <rule id="aa14" name="aa1">
            <pattern>
                <token postag="N.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <marker>
                    <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                </marker>
                <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="V.[^P].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag=".*LOC_ADV.*|RG.*"></disambig>
        </rule>
        <rule id="aa15" name="aa1">
            <pattern>
                <token postag="N.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <token postag=".*LOC_ADV.*|RG.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="AQ.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="V.[^P].*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|V.P.*|PX.*|_GN_.*"></disambig>
        </rule>
        <rule id="aa16" name="aa1"> <!-- tan regular, molt dur, etc. -->
            <pattern>
                <token postag="RG_anteposat"/>
                <marker>
                    <and>
                        <token postag="AQ.*" postag_regexp="yes"/>
                        <token postag="V.N.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="A.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="molts_mes" name="molts més + nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <token postag="DI.*" postag_regexp="yes" inflected="yes">molt</token>
                    <token>més</token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="V.N.*" postag_regexp="yes"/></token>
                </marker>
            </unify>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="via_no_prep" name="via no preposició">
        <pattern>
            <token postag="D..FS." postag_regexp="yes"/>
            <marker>
                <token postag="NCFS000">via</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*|_GN_.*"></disambig>
    </rule>
    <rule id="PREP_VERB" name="no Verb conjugat darrere de preposició">
        <!-- "de sumes": "sumes" no és verb. Mogut per "En forma part". Mogut amunt per "d'escriptura comú"
            Excep: per dintre sou, el vers diu -->
        <pattern>
            <token postag="SP.*|.*LOC_PREP.*" postag_regexp="yes"><exception postag="PP.*|P0.*|RG.*|_GN.*|CS" postag_regexp="yes" /></token>
            <token min="0" regexp="yes">[“‘«"']</token>
            <marker>
                <and>
                    <token postag="N.*|A.*|RG" postag_regexp="yes"></token>
                    <token postag="V.[^NGP].*" postag_regexp="yes"><exception>diu</exception><exception postag="V.N.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        <example type="untouched">Quants segons triga a arribar-hi?</example>
    </rule>
    <rule id="PREP_ART_VERB" name="no Verb conjugat darrere de preposició i article">
        <!-- "a l'esquerra": "esquerra" no és verb . Mogut per "De les dites baronies"-->
        <pattern>
            <token postag="SP.*" postag_regexp="yes"><exception postag="RG"/></token>
            <token min="0" regexp="yes">[“‘«"']</token>
            <token postag="DA.*" postag_regexp="yes"><exception inflected="yes">es</exception></token>
            <token min="0" regexp="yes">[“‘«"']</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="V.[^NGP].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="PREP_VERBGERUND" name="no Verb gerundi darrere de preposició">
        <pattern>
            <token postag="SP.*|.*LOC_PREP.*" postag_regexp="yes"><exception postag="PP.*|P0.*|RG.*|_GN.*|CS" postag_regexp="yes" /><exception>en</exception></token>
            <token min="0" postag="DA.*" postag_regexp="yes"><exception inflected="yes">es</exception></token>
            <marker>
                <and>
                    <token postag="N.*|A.*|RG" postag_regexp="yes"></token>
                    <token postag="V.G.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.G.*"></disambig>
        <example type="untouched">En acabant se'n va anar a casa.</example>
    </rule>
    <!-- gerundi/adj + nom  "Ocupant llocs" Canviat de lloc per: "D'eixa important època" -->
    <rule id="adv_geradj_nom" name="adverbi + gerundi/adjectiu + nom">
        <pattern>
            <token postag="RG.*" postag_regexp="yes"/>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <and>
                        <token postag="V.G.*" postag_regexp="yes"></token>
                        <token postag="A.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token postag="N.*" postag_regexp="yes"></token>
            </unify>
        </pattern>
        <disambig action="filter" postag="A.*"></disambig>
    </rule>
    <rulegroup id="verbnom_verb" name="verb/nom + verb">
        <!-- verb/nom + verb  El diu és un dispostiu, Aquella era havia estat -->
        <rule>
            <pattern>
                <token postag="D[DAI].*" postag_regexp="yes" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*" postag_regexp="yes" />
                    </and>
                </marker>
                <token postag="V.[IS].*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes" negate_pos="yes" /></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[DAI].*" postag_regexp="yes" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*" postag_regexp="yes" />
                    </and>
                </marker>
                <token postag="(PP|P0).*" postag_regexp="yes"></token>
                <token postag="V.[IS].*" postag_regexp="yes"><exception postag="VMIP1S0B"/></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[DAI].*" postag_regexp="yes" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*" postag_regexp="yes" />
                    </and>
                </marker>
                <token postag="(PP|P0).*" postag_regexp="yes"></token>
                <token postag="(PP|P0).*" postag_regexp="yes"></token>
                <token postag="V.[IS].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule> <!-- el pare no hi és; la porta ja s'havia tancat-->
            <pattern>
                <token postag="D[DAI].*" postag_regexp="yes" />
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*" postag_regexp="yes" />
                    </and>
                </marker>
                <token regexp="yes">no|ja</token>
                <token postag="(PP|P0).*|V.[IS].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="verb_verbGN" name="verb + GN (art+nom)">
        <rule> <!-- mantenir la calma -->
            <pattern>
                <token postag="V.[ISNG].*|_GV_" postag_regexp="yes"><exception postag="N.*|AQ.*" postag_regexp="yes"/></token>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="DA.*" postag_regexp="yes" />
                    <marker>
                        <and>
                            <token postag="N.*|A.*|PX.*|V.P.*" postag_regexp="yes" />
                            <token postag="V.[IS].*" postag_regexp="yes" />
                        </and>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filter" postag="N.*|A.*|PX.*|V.P.*"></disambig>
        </rule>
        <rule> <!-- retorna en paga -->
            <pattern>
                <token postag="V.[IS].*|_GV_" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes"/></token>
                <token>en</token>
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*|A.*|PX.*|V.P.*" postag_regexp="yes"><exception regexp="yes">queda|resta</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|A.*|PX.*|V.P.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="(PP|P0).*" postag_regexp="yes" regexp="yes">['-].+</token>
                <token postag="DA.*" postag_regexp="yes" />
                <marker>
                    <and>
                        <token postag="N.*|A.*|PX.*|V.P.*" postag_regexp="yes" />
                        <token postag="V.[IS].*" postag_regexp="yes" />
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|A.*|PX.*|V.P.*"></disambig>
        </rule>
        <rule> <!-- retorna'ls en paga -->
            <pattern>
                <token postag="(PP|P0).*" postag_regexp="yes" regexp="yes">['-].+</token>
                <token>en</token>
                <marker>
                    <and>
                        <token postag="V.[IS].*" postag_regexp="yes" />
                        <token postag="N.*" postag_regexp="yes" />
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
    </rulegroup>
    <!-- eliminat per: passar les tanques correctament primer  -->
    <!--    <rulegroup id="verbnom_adv" name="verb_nom+adverbi">
        <rule>
        <pattern>
        <marker>
        <and>
        <token postag="V.[SI].*" postag_regexp="yes"></token>
        <token postag="NC.*" postag_regexp="yes"></token>
        </and>
        </marker>
        <token>de</token>
        <token>manera</token>
        <token postag="AQ0[FC]S.*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
        <pattern>
        <marker>
        <and>
        <token postag="V.[SI].*" postag_regexp="yes"></token>
        <token postag="NC.*" postag_regexp="yes"></token>
        </and>
        </marker>
        <token postag="RG" postag_regexp="yes" regexp="yes">.+ment</token>
        <token postag="V.[SI].*" postag_regexp="yes" negate_pos="yes"></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
        </rule>
        <rule>
        <pattern>
        <marker>
        <and>
        <token postag="V.[SI].*" postag_regexp="yes"></token>
        <token postag="NC.*" postag_regexp="yes"></token>
        </and>
        </marker>
        <token postag="RG" postag_regexp="yes" regexp="yes">.+ment</token>
        <token postag="V.[SI].*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
        </rule>
        </rulegroup> -->
    <rule id="nom_nomverb" name="nom + verb/nom">
        <pattern> <!-- a quina xifra correspon; punts dobles volien dir; a petita escala -->
            <token postag="N.*" postag_regexp="yes"><exception postag="V.*|D.*|A.*|V.P.*|_GV_|C.*|RG.*|complement|.*LOC.*" postag_regexp="yes" /><exception inflected="yes" regexp="yes">mot|paraula|terme|expressió|vocable|nom|tipus|denominació|numeral</exception></token>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"><exception regexp="yes">força|\p{Lu}.*</exception></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="_GN_.*|A.*|V.P.*|PX.*|VMIP1S0.?" postag_regexp="yes" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig> <!-- sobre -->
    </rule>
    <!-- el seu disseny també queda
        Però: posar en explotació prou terres-->
    <!--<rule id="nom_nomverb2" name="nom + adv + verb/nom">
        <pattern>
        <token postag="N.*" postag_regexp="yes"><exception postag="V.*|D.*|A.*|V.P.*|_GV_|C.*|RG.*|complement" postag_regexp="yes" /></token>
        <token postag="RG_anteposat"/>
        <marker>
        <and>
        <token postag="V.*" postag_regexp="yes" />
        <token postag="N.*" postag_regexp="yes"><exception postag="_GN_.*|A.*|V.P.*|PX.*|VMIP1S0.?" postag_regexp="yes" /></token>
        </and>
        </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
        </rule>--><!-- sobre -->
    <rule id="infinitiu_nomverb" name="infinitiu + verb/nom">
        <!-- és típic menjar ou -->
        <pattern>
            <token postag="V.N.*" postag_regexp="yes"><exception postag="complement"/></token>
            <marker>
                <and>
                    <token postag="V.[IS].*" postag_regexp="yes"><exception regexp="yes">era|eres</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="A.*|V.P.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="nomverb_nom" name="nom + verb/nom">
        <pattern>
            <token><exception postag="SPS00|D[DI].*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[IS].*" postag_regexp="yes"><exception inflected="yes" regexp="yes">nom|persona|ritme</exception><exception postag="VMIP1S0B"/><exception regexp="yes">dona|dones</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*|A.*|PX.*|V.P.*|D.*|SPS.*|NP.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <token postag="NC.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes" negate_pos="yes" /><exception regexp="yes">propietat|consort|mare|web|alfa|beta|gamma|lambda|font|hivernacle|euro|tipus|clau|membre|núm|número|matriu|estàndard|estrella|model|hoste|base</exception></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="nomverb_verb" name="nom/verb + verb">
        <pattern>
            <token><exception postag="&pronom_feble;|RN" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[GMSI].*" postag_regexp="yes" />
                    <token postag="NC.*|A.*|V.P.*|PX.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <!-- No està ben resolt?? -->
            <token min="0" max="3" postag="&pronom_feble;|RN" postag_regexp="yes"><exception regexp="yes">['-].+</exception></token>
            <token postag="V.[SI].*" postag_regexp="yes"><exception postag="V.[MSI].*|_GV_" postag_regexp="yes" negate_pos="yes" /></token>
        </pattern>
        <disambig action="remove" postag="V.[GMSI].*"></disambig>
    </rule>
    <rule id="verb_nomverb" name="verb + nom/verb">
        <pattern>
            <!--  <exception postag="V.[NMSI].*|PP.*|P0.*|_GV_" postag_regexp="yes" negate_pos="yes" /> -->
            <token postag="V.[NMSI].*|_GV_|PP.*|P0.*" postag_regexp="yes"><exception postag="V.[NMSI].*|PP.*|P0.*|_GV_" postag_regexp="yes" negate_pos="yes" /><exception postag="PP.*|P0.*" postag_regexp="yes" regexp="yes">[^'-].+</exception><exception regexp="yes">jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</exception></token>
            <marker>
                <and>
                    <token postag="V.[SIM].*" postag_regexp="yes" />
                    <token postag="N.*" postag_regexp="yes"><exception regexp="yes">era|va|seré|fou</exception><exception postag="_GV_" postag_regexp="yes" /></token> <!--_GN_.*-->
                </and>
            </marker>
            <token><exception postag="P[P0].*" postag_regexp="yes" regexp="yes">['-].+</exception></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <!--
        <rule>
        <pattern mark="1">
        <token regexp="yes">al|del|pel</token>
        <token postag="N.[MC][SN].*|A..[MC][SN].*|V.P..SM" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="N.*|A.*|V.P.*"></disambig>
        </rule>
        <rule>
        <pattern mark="1">
        <token regexp="yes">als|dels|pels|cals</token>
        <token postag="N.[MC][PN].*|A..[MC][PN].*|V.P..PM" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="N.*|A.*|V.P.*"></disambig>
        </rule>
        </rulegroup>
    -->
    <rule id="segons1" name="segons + pronom">
        <pattern>
            <marker>
                <token postag="CS">segons</token>
            </marker>
            <token postag="(DE|DT|PT).*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="CS"></disambig>
    </rule>
    <rule id="EM_DEU" name="em deu: excepció a les regles següents">
        <pattern>
            <token postag="&pronom_feble;" postag_regexp="yes"/>
            <marker>
                <and>
                    <token postag="DN0CP0">deu</token>
                    <token postag="V.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter"  postag="[^D].*"/>
    </rule>
    <rule id="si_nom" name="si nom">
        <pattern>
            <token postag="D[^R].MS.|PX.MS.*" postag_regexp="yes"/>
            <marker>
                <token>si</token>
            </marker>
            <token postag="SENT_END|_PUNCT.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter"  postag="N.*"/>
    </rule>
    <rule id="nNom0" name="no Nom">
        <!-- no són noms si no han concordat amb determinants. Mogut per "ens ensenya"-->
        <pattern>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">demà|liderats?|oi|queda|formi|baixa|porto|troba|trobes|ara|esper|vau|he|deixa|deixes|sap|pren|allò|breu|sec|personal|fou|crec|davant|darrere|damunt|davall|sota|ve|tornés|seré|estic|som|sou|amples?|creix|fem|res|si|bé|perquè|però|dins|real|era|eres|dius?|fals<exception postag="_GN.*" postag_regexp="yes" /><exception case_sensitive="yes">Era</exception></token>
                    <token postag="[AVRIPC].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"></disambig>
    </rule>
    <rule id="nNomMasculi" name="no Nom masculí si no ha concordat">
        <pattern>
            <marker>
                <token postag="NCF.*" postag_regexp="yes" inflected="yes">por<exception postag="_GN_M.*" postag_regexp="yes" /></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NCF.*|_GN_F.*"></disambig>
    </rule>
    <rule id="nNomFemeni" name="no Nom femení si no ha concordat">
        <!-- on té molt poc pes -->
        <pattern>
            <marker>
                <token inflected="yes" regexp="yes">pe|posterior|estaria<exception postag="_GN_F.*" postag_regexp="yes" /></token>
            </marker>
        </pattern>
        <disambig action="remove" postag="NCF.*"></disambig>
    </rule>
    <rulegroup id="som" name="què som">
        <rule>
            <pattern>
                <token regexp="yes">qui|quins|què|quant|quants|com|nosaltres|pocs|poques</token>
                <marker>
                    <token postag="VSIP1P00">som</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="A.*|N.*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="VSIP1P00">som</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="A.*|N.*"/>
        </rule>
    </rulegroup>
    <rule id="adj_punct" name="adjectiu no verb abans de puntuació"> <!-- Però: Quants anys tens, Ricard? ¿Quina edat tens..., seixanta-vuit?-->
        <pattern>
            <token><exception regexp="yes">no|que|ja|perquè|encara|com</exception><exception postag="&pronom_feble;" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="AQ.*" postag_regexp="yes"><exception regexp="yes">sabeu|tornés|bufa|som|molesta</exception></token> <!--tens|plana. Exception: rates -->
                    <token postag="V.[SI].*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="_PUNCT.*" postag_regexp="yes"><exception>?</exception></token>
        </pattern>
        <disambig action="filter" postag="AQ.*|_GN_.*|N.*"/>
    </rule>
    <rulegroup id="NoAdj" name="no adjectiu si no han concordat">
        <!-- excepció a la regla -->
        <rule>
            <pattern>
                <token regexp="yes">tan|molt</token> <!-- "tan amic", però "encara seré" -->
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes" regexp="yes">amics?|amiga|amigues|seré<exception postag="_GN.*" postag_regexp="yes" /></token>
                        <token postag="[NV].*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="[NV].*"></disambig>
        </rule>
        <!-- no són adj si no han concordat amb determinants. Mogut per "ens ensenya"-->
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes" regexp="yes">manca|donant|amics?|amiga|amigues|pega|muntà|corredors?|sabeu|xiquets?|muntés|accepta|envolta|tornés|seré|escolta|talar|afectes?|acceptes?|afecta<exception postag="_GN.*" postag_regexp="yes" /></token>
                        <token postag="[NV].*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="A.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="RG_anteposat"/></token>
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes" regexp="yes">som|tens<exception postag="_GN.*" postag_regexp="yes" /></token>
                        <token postag="A.*" postag_regexp="yes" negate_pos="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^A].*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="numeral_nom" name="numeral + nom plural">
        <rule>
            <pattern>
                <token regexp="yes">(\d[\d.,]+\d|\d+)<exception>1</exception><exception postag="_C_TEMPS"/></token>
                <marker>
                    <token postag="NC.[PN].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="NC.S.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>1</token>
                <marker>
                    <token postag="NC.[SN].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="remove" postag="NC.P.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="determinants_numerals" name="deternimants numerals">
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"/>
                    <token postag="DN.*" postag_regexp="yes"/>
                </marker>
                <token postag="DN.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"/>
                </marker>
                <token postag="N..P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="DN.*|_GN.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="nou" name="nou (adj/nom/numeral)">
        <rule>
            <pattern>
                <token>el</token>
                <marker>
                    <token>nou</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.*|NCFS000"></disambig>
        </rule>
        <rule>
            <pattern>
                <token>tan</token>
                <marker>
                    <token>nou</token>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.*|NCFS000|DN.*|NC.*"></disambig>
        </rule>

        <rule>
            <pattern>
                <marker>
                    <token postag="NCFS000">nou</token>
                    <token postag="AQ0FS0">moscada</token>
                </marker>
            </pattern>
            <disambig action="filterall"/>
        </rule>
        <rule>
            <pattern>
                <token postag="DA..P." postag_regexp="yes"/>
                <marker>
                    <token>nou</token>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="AQ0MS0"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[^R].FS." postag_regexp="yes"></token>
                <marker>
                    <token>nou</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCFS.*|_GN_FS"/>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="D[^R].*" postag_regexp="yes"/></token>
                <marker>
                    <token>nou</token>
                </marker>
                <token postag="N.[MC][SN].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="AQ.MS.*|_GN_MS"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token>nou</token>
                        <token postag="_GN_MS" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="NCFS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>tot</token>
                <marker>
                    <token>nou</token>
                </marker>
                <token><exception postag="[AN].*[FMC][PN].*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="AQ.MS.*|_GN_MS"/>
        </rule>
    </rulegroup>
    <rulegroup id="molt_no_adverbi" name="molt no adverbi">
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="RG.*" postag_regexp="yes"><exception>massa</exception></token>
                        <token postag="DI.[MC][SN].*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token regexp="yes">de|d'</token>
                <token postag="N.[MC][SN].*" postag_regexp="yes"><exception regexp="yes">fons|si</exception></token>
            </pattern>
            <disambig action="filter" postag="[^R].*"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="RG.*" postag_regexp="yes"><exception>massa</exception></token>
                        <token postag="DI.[MC][SN].*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="N.[MC][SN].*" postag_regexp="yes"><exception postag="AQ.[MC][SN].|V.N.*" postag_regexp="yes"/><exception regexp="yes">fons|si</exception></token>
            </pattern>
            <disambig action="filter" postag="[^R].*"></disambig>
        </rule>
        <rule> <!--  massa coses -->
            <pattern>
                <marker>
                    <and>
                        <token postag="RG.*" postag_regexp="yes"/>
                        <token postag="DI.CN.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="N.*" postag_regexp="yes"><exception regexp="yes">fons|si</exception></token>
            </pattern>
            <disambig action="filter" postag="[^R].*"></disambig>
        </rule>
    </rulegroup>
    <rule id="massa" name="massa no nom">
        <pattern>
            <token><exception postag="D[^R].FS." postag_regexp="yes"/></token>
            <marker>
                <token postag="DI.CN.*" postag_regexp="yes">massa<exception postag="_GN_FS"/></token>
            </marker>
            <token postag="N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="TOT_gerundi" name="tot + gerundi">
        <pattern>
            <token>tot</token>
            <marker>
                <and>
                    <token postag="NC.*" postag_regexp="yes"/>
                    <token postag="V.G.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="gens" name="gens + adj">
        <pattern>
            <token postag="D.*" postag_regexp="yes">gens</token>
            <token postag="AQ.*|RG.*" postag_regexp="yes"><exception postag="[CP].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="poc_capital" name="poc capital">
        <pattern>
            <token postag="DI0MS0">poc</token>
            <token postag="NCMS000">capital</token>
        </pattern>
        <disambig action="filterall"/>
    </rule>
    <rule id="en_prep" name="en (preposició)">
        <pattern>
            <token postag="V.P.*" postag_regexp="yes"/>
            <marker>
               <token postag="SPS00">en</token>
            </marker>
            <token regexp="yes">\p{Lu}.*</token>
        </pattern>
        <disambig action="filter" postag="SPS00"/>
    </rule>
    <rulegroup id="DetNom" name="Determinant + nom">
        <!-- Caldria diferenciar/elimianr alguns casos. Per exemple DN + DI
            CAL SEPARAR EL CAS DA+NC QUE ÉS L'UNIC PROBLEMÀTIC -->
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^RA].[M][SN0].*" postag_regexp="yes"><exception postag="RG" regexp="yes">tant|molt|poc</exception></token>
                </marker>
                <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception>la</exception></token>
            </pattern>
            <disambig action="filter" postag="D.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[^RA].[M][SN0].*" postag_regexp="yes"><exception postag="RG"  regexp="yes">tant|molt|poc</exception></token>
                <marker>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception regexp="yes">passi|la</exception><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule><!--exception next rule-->
            <pattern>
                <token postag="D[^RA].[F][SN0].*" postag_regexp="yes">sa</token>
                <marker>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes">casa</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^RA].[F][SN0].*" postag_regexp="yes"></token>
                </marker>
                <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception postag="VMIP3S0.?" postag_regexp="yes"/></token><!-- quan aquesta vibra -->
            </pattern>
            <disambig action="filter" postag="D.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[^RA].[F][SN0].*" postag_regexp="yes"></token>
                <marker>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/><exception postag="VMIP3S0.?" postag_regexp="yes"/><exception>nova</exception></token><!-- quan aquesta vibra -->
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^RAN].[M][PN0].*" postag_regexp="yes"></token>
                </marker>
                <token postag="N.[MC][PN0].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="D.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[^RAN].[M][PN0].*" postag_regexp="yes"></token>
                <marker>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^RAN].[F][PN0].*" postag_regexp="yes"></token>
                </marker>
                <token postag="N.[FC][PN0].*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="D.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="D[^RAN].[F][PN0].*" postag_regexp="yes"></token>
                <marker>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*"></disambig>
        </rule>
        <rule> <!-- He canviat (N|A.|PX) per (N). Per què no hi ha V.P.* ? No cal? -->
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][SN0].*" postag_regexp="yes"><exception postag="RG" regexp="yes">força|tant|molt|poc</exception></token>
                    <token postag="(N|A.|PX).[MC][SN0].*|V.P..SM." postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][SN0].*" postag_regexp="yes"><exception>força</exception></token>
                    <token postag="(N|A.|PX).[FC][SN0].*|V.P..SF." postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule> <!-- excep: massa temps -->
            <pattern>
                <marker>
                    <token postag="D[^R].[MC][PN0].*" postag_regexp="yes"><exception regexp="yes">força|gens</exception></token>
                    <token postag="(N|A.|PX).[MC][PN0].*|V.P..PM." postag_regexp="yes"><exception postag="DN.*|_GN_MS" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="D[^R].[FC][PN0].*" postag_regexp="yes"><exception>força</exception></token>
                    <token postag="(N|A.|PX).[FC][PN0].*|V.P..PF." postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="nom_neutre" name="desambigua nom neutre o masculí i femení alhora">
        <!-- Desambigua un nom neutre o masculí i femení alhora. El llum, els alumnes. Excepció: L'intel·lectual -->
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_MS"><exception postag="_GN_FS"/></token></and>
                <marker>
                    <and><token postag="NCCS.*|NCMN.*|NCCN.*" postag_regexp="yes"/><token postag="_GN_MS"/></and>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="NCMS000"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_FS"><exception postag="_GN_MS"/></token></and>
                <marker>
                    <and><token postag="NCCS.*|NCFN.*|NCCN.*" postag_regexp="yes"/><token postag="_GN_FS"/></and>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="NCFS000"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_MP"/></and>
                <marker>
                    <and><token postag="NCCP.*|NCMN.*|NCCN.*" postag_regexp="yes"/><token postag="_GN_MP"/></and>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="NCMP000"></wd></disambig> <!-- how to preserve the lemma? -->
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_FP"/></and>
                <marker>
                    <and><token postag="NCCP.*|NCFN.*|NCCN.*" postag_regexp="yes"/><token postag="_GN_FP"/></and>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="NCFP000"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_MS"><exception postag="_GN_FS"/></token></and>
                <marker>
                    <and>
                        <token postag="NC[MC][SN].*" postag_regexp="yes"><exception postag="V.[NSI].*" postag_regexp="yes"/></token>
                        <token postag="_GN_MS"><exception>passi</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCMS000|_GN_MS"></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_FS"><exception postag="_GN_MS"/></token></and>
                <marker>
                    <and>
                        <token postag="NC[FC][SN].*" postag_regexp="yes"><exception>nova</exception></token>
                        <token postag="_GN_FS"><exception postag="V.[SI].*" postag_regexp="yes"/></token> <!-- quan aquesta vibra -->
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCFS000|_GN_FS"></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_MP"><exception postag="_GN_FP"/></token></and>
                <marker>
                    <and><token postag="NC[MC][PN].*" postag_regexp="yes"/><token postag="_GN_MP"/></and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCMP000|_GN_MP"></disambig>
        </rule>
        <rule>
            <pattern>
                <and><token postag="D.*|PX.*" postag_regexp="yes"/><token postag="_GN_FP"><exception postag="_GN_MP"/></token></and>
                <marker>
                    <and><token postag="NC[FC][PN].*" postag_regexp="yes"/><token postag="_GN_FP"/></and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NCFP000|_GN_FP"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="ordinal_parts" name="ordinal + parts">
        <rule>
            <pattern>
                <marker><token postag="AO.*" postag_regexp="yes"/></marker>
                <token regexp="yes">parts?</token>
            </pattern>
            <disambig action="filter" postag="AO.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="AO.*" postag_regexp="yes"/>
                <marker><token regexp="yes">parts?</token></marker>
            </pattern>
            <disambig action="filter" postag="NC.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <!-- numeral seguit de nom o adjectiu-->
    <rulegroup id="DetNum" name="determinants numerals">
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"><exception postag="[NA].*" postag_regexp="yes" /></token>
                </marker>
                <token postag="(N|A|RG).*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN.*|_GN.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="DN.*" postag_regexp="yes"></token>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="DN.*|_GN.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.*" postag_regexp="yes"></token>
                </marker>
                <token postag="DN.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="DN.*|_GN.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="TOT" name="tot (determinant, nom o pronom)">
        <rule> <!-- Nom si ha concordat-->
            <pattern>
                <and>
                    <token postag="N.*" postag_regexp="yes">tot</token>
                    <token postag="_GN_MS"></token>
                </and>
            </pattern>
            <disambig action="filter" postag="N.*|_GN.*"></disambig>
        </rule>
        <rule> <!-- No nom si no ha concordat-->
            <pattern>
                <and>
                    <token postag="N.*" postag_regexp="yes">tot</token>
                    <token postag="N.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </pattern>
            <disambig action="filter" postag="[^N].*"></disambig>
        </rule>
        <rule> <!-- pronom (en algun cas) si no concorda amb les paraules següents -->
            <pattern>
                <token postag="V.*" postag_regexp="yes" skip="1"></token>
                <token>entre</token>
                <unify negate="yes">
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token regexp="yes">tote?s</token>
                    </marker>
                    <and>
                        <token postag="D.*" postag_regexp="yes"/>
                        <token postag="_GN_.*" postag_regexp="yes"/>
                    </and>
                </unify>
            </pattern>
            <disambig action="filter" postag="P.*"></disambig>
            <!-- destacaren entre tots la figura de Joan Amades -->
            <!-- ens volen fer pagar entre tots la mala gestió  -->
        </rule>
        <rule> <!-- pronom (en algun cas) si no concorda amb les paraules següents -->
            <pattern>
                <token postag="V.*|SPS00" postag_regexp="yes" skip="1"></token>
                <unify negate="yes">
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token regexp="yes">tote?s</token>
                    </marker>
                    <and>
                        <token postag="D.*" postag_regexp="yes"/>
                        <token postag="_GN_.S" postag_regexp="yes"/>
                    </and>
                </unify>
            </pattern>
            <disambig action="filter" postag="P.*"></disambig>
            <!-- Espero que trobeu totes la pàgina -->
            <!-- ens volen fer pagar entre tots la mala gestió  -->
        </rule>
        <rule> <!--determinant si concorda amb les paraules següents-->
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <token postag="D.*" postag_regexp="yes" inflected="yes">tot</token>
                    </marker>
                    <and>
                        <token postag="D.*" postag_regexp="yes"/>
                        <token postag="_GN_.*" postag_regexp="yes"/>
                    </and>
                </unify>
            </pattern>
            <disambig action="filter" postag="D.*|_GN_.*"></disambig>
        </rule>
        <rule> <!-- tot això-->
            <pattern>
                <marker>
                    <token postag="DI.*" postag_regexp="yes">tot</token>
                </marker>
                <token postag="PD0NS000"/>
            </pattern>
            <disambig action="filter" postag="DI.*"></disambig>
        </rule>
        <!-- eren tots família -->
        <rule>
            <pattern>
                <token postag="V.[MSI]..P.." postag_regexp="yes"/>
                <token min="0" max="1" postag="V.P.*" postag_regexp="yes"/>
                <marker>
                    <token postag="PI..P..."  postag_regexp="yes" inflected="yes">tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.[MSI]..P.." postag_regexp="yes"/>
                <token min="0" max="1" postag="V.P.*" postag_regexp="yes"/>
                <token>pas</token>
                <marker>
                    <token postag="PI..P..."  postag_regexp="yes" inflected="yes">tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.[MSI]..S.." postag_regexp="yes"/>
                <token min="0" max="1" postag="V.P.*" postag_regexp="yes"/>
                <marker>
                    <token postag="PI..S..."  postag_regexp="yes" inflected="yes">tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.[MSI]..S.." postag_regexp="yes"/>
                <token min="0" max="1" postag="V.P.*" postag_regexp="yes"/>
                <token>pas</token>
                <marker>
                    <token postag="PI..S..."  postag_regexp="yes" inflected="yes">tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">ho|-ho</token>
                <token min="0" max="3" postag="V.*|SPS.*" postag_regexp="yes"/>
                <marker>
                    <token>tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <!-- amb locucions preposicionals -->
        <rule id="baix_de_tot" name="baix de tot">
            <pattern>
                <token regexp="yes">baix|dalt|capdavall|sobre|damunt</token>
                <token>de</token>
                <marker>
                    <token postag="PI.*" postag_regexp="yes">tot<exception postag="_GN_.*" postag_regexp="yes"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule> <!-- totes de-->
            <pattern>
                <marker>
                    <token postag="PI.*"  postag_regexp="yes" inflected="yes">tot</token>
                </marker>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
        <rule> <!-- tot, -->
            <pattern>
                <marker>
                    <token postag="PI.*"  postag_regexp="yes" inflected="yes">tot</token>
                </marker>
                <token postag="_PUNCT.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="P0_DA" name="pronom feble i article: pronom feble">
        <!--mogut per "L'ens"-->
        <pattern>
            <marker>
                <and>
                    <token postag="DA.*" postag_regexp="yes"></token>
                    <token postag="P[0P].*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token postag="P[0P].*" postag_regexp="yes"><exception regexp="yes">si|jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vostès?|vós</exception></token>
        </pattern>
        <disambig action="filter" postag="P0.*|PP.*"></disambig>
    </rule>
    <rulegroup id="seu_de" name="seu (nom) de">
        <rule>
            <pattern>
                <marker>
                    <token postag="_GN_F." postag_regexp="yes" regexp="yes">seus?</token>
                </marker>
                <token regexp="yes">de|d'|i</token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="nNom0a" name="no Nom">
        <!-- no són noms si no han concordat. -->
        <pattern>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">surts?|sobre|caus?|resulta|manca|sabeu<exception postag="_GN.*" postag_regexp="yes" /></token>
                    <token postag="N.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="nNomMasculi2" name="no Nom masculí si no ha concordat">
        <pattern>
            <marker>
                <token postag="NCF.*" postag_regexp="yes" inflected="yes">base1<exception postag="_GN_M.*" postag_regexp="yes" /></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="NCF.*|_GN_F.*|V.*"></disambig>
    </rule>
    <rule id="via" name="via (preposició)">
        <pattern>
            <token><exception postag="D.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="SPS00">via</token>
            </marker>
            <token postag="NC.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="SPS00"></disambig>
    </rule>
    <rulegroup id="AdjNom" name="adj + nom">
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[MC][SN0].*|V.P..SM.?|PX.[MC][SN0].*" postag_regexp="yes"><exception postag="AQ0CN0|_GV_|N.CN.*" postag_regexp="yes"/><exception inflected="yes" regexp="yes">poder|voler|saber</exception></token>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception regexp="yes">ens|estic|tant|cap</exception><exception postag="DN.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[FC][SN0].*|V.P..SF.?|PX.[FC][SN0].*" postag_regexp="yes"><exception postag="AQ0CN0|_GV_|N.CN.*" postag_regexp="yes"/><exception inflected="yes" regexp="yes">poder|voler|saber</exception></token>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception regexp="yes">parla|cap</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[MC][PN0].*|V.P..PM.?|PX.[MC][PN0].*" postag_regexp="yes"><exception postag="AQ0CN0|_GV_|N.CN.*" postag_regexp="yes"/><exception inflected="yes" regexp="yes">poder|voler|saber</exception></token>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="A..[FC][PN0].*|V.P..PF.?|PX.[FC][PN0].*" postag_regexp="yes"><exception postag="AQ0CN0|_GV_|N.CN.*" postag_regexp="yes"/><exception inflected="yes" regexp="yes">poder|voler|saber</exception></token>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rule id="nNom0b" name="no Nom">
        <!-- no són noms si no han concordat. -->
        <pattern>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">quina|quines|trobar|pega|mostra|mostres|conserva|conserves|donant<exception postag="_GN.*" postag_regexp="yes" /></token>
                    <token postag="N.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="N.*"></disambig>
    </rule>
    <rulegroup id="NomAdj" name="nom + adj">
        <!-- falta participi+nom: requereix tractament especial -->
        <!--  QUÈ PASSA: en les seves múltiples disciplines. -->
        <!-- la teva brillant llum // les seves múltiples disciplines <exception postag="A..C.*" postag_regexp="yes"></exception>  "Dura massa" -->
        <!-- les seves múltiples disciplines <exception postag="A..C.*" postag_regexp="yes"></exception> -->
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception regexp="yes">estic|seré</exception></token>
                    <token postag="A..[MC][SN0].*|V.P..SM.?|PX.[MC][SN0].*" postag_regexp="yes"><exception postag="AO.*" postag_regexp="yes" /></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <!-- fill meu, fill seu-->
            <pattern>
                <token postag="N.[MC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                <marker>
                    <token postag="PX.[MC][SN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PX.*"></disambig>
        </rule>
        <rule>
            <!-- fills meus, fills seus -->
            <pattern>
                <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                <marker>
                    <token postag="PX.[MC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="PX.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[FC][SN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /><exception>fou</exception></token>
                    <token postag="A..[FC][SN0].*|V.P..SF.?|PX.[FC][SN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[MC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[MC][PN0].*|V.P..PM.?|PX.[MC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/><wd pos="_GN_MP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.[FC][PN0].*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                    <token postag="A..[FC][PN0].*|V.P..PF.?|PX.[FC][PN0].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="ser_atribut_adjectiu" name="ser + atribut (adjectiu)">
        <!--exceptions-->
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes" inflected="yes">mitjà</token>
                </marker>
                <token>de</token>
                <token regexp="yes" inflected="yes">comunicació|transport|informació</token>
            </pattern>
            <disambig action="remove" postag="A.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="N.*" postag_regexp="yes">divisòria</token>
                </marker>
                <token>d'</token>
                <token>aigües</token>
            </pattern>
            <disambig action="remove" postag="A.*"></disambig>
        </rule>
        <!-- main rule -->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">ser|estar|parèixer|semblar</token>
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes"/></token>
                        <token postag="N.*" postag_regexp="yes"><exception inflected="yes" regexp="yes" postag="N.*" postag_regexp="yes">reflex|desert|motiu|foguera|mestre|director</exception></token>
                    </and>
                </marker>
                <!--<token><exception inflected="yes">de</exception></token>-->
            </pattern>
            <disambig action="remove"  postag="N.*"/>
            <example type="untouched">Aquesta impressió és reflex de la situació.</example>
            <example type="untouched">Són mones albines.</example>
            <!--<example type="untouched">Són mitjans de comunicació.</example>-->
        </rule>
    </rulegroup>
    <rule id="GerAdj_Nom" name="gerundi/adjectiu + nom">
        <pattern>
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"><exception>corrent</exception><exception scope="previous" postag="SPS00"/></token>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                </and>
            </marker>
            <token postag="N.*" postag_regexp="yes"><exception postag="V.[SI].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="nNom1" name="no Nom">
        <!-- repetit després de DetNom per "pel vers de tradició" -->
        <pattern>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes" regexp="yes">jo|fan|demà|ahir|avui|hui|totals?|vius?|veus?|saps?|sola|soles|vessant|sec|personal|vers|creu|cau|fou|crec|davant|darrere|damunt|davall|sota|ve|tornés|seré|estic|som|sou|amples?|creix|fem|res|si|bé|perquè|però|dins|sobre|real|era|eres|dius?<exception postag="_GN.*" postag_regexp="yes" /></token>
                    <token postag="N.*" postag_regexp="yes" negate_pos="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rulegroup id="EncadenaAdj" name="encadena adjectius">
        <rule>
            <pattern>
                <token postag="_GN_MS"/>
                <marker>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"><exception postag="_GN_MS"/><exception>fer</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="_GN_FS"/>
                <marker>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"><exception postag="_GN_FS"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="_GN_MP"/>
                <marker>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"><exception postag="_GN_MP"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="_GN_FP"/>
                <marker>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"><exception postag="_GN_FP"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="_GN_MS" regexp="yes">\p{Ll}.+</token>
                    <token postag="A.*" postag_regexp="yes"/>
                </and>
                <token regexp="yes">i|o|ni|,|però|sinó</token>
                <marker>
                    <token postag="A..[MC][SN0].*|V.P..SM.?" postag_regexp="yes"><exception postag="_GN_MS"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="_GN_FS" regexp="yes">\p{Ll}.+</token>
                    <token postag="A.*" postag_regexp="yes"/>
                </and>
                <token regexp="yes">i|o|ni|,|però|sinó</token>
                <marker>
                    <token postag="A..[FC][SN0].*|V.P..SF.?" postag_regexp="yes"><exception postag="_GN_FS"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="_GN_MP" regexp="yes">\p{Ll}.+</token>
                    <token postag="A.*" postag_regexp="yes"/>
                </and>
                <token regexp="yes">i|o|ni|,|però|sinó</token>
                <marker>
                    <token postag="A..[MC][PN0].*|V.P..PM.?" postag_regexp="yes"><exception postag="_GN_MP"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="_GN_FP" regexp="yes">\p{Ll}.+</token>
                    <token postag="A.*" postag_regexp="yes"/>
                </and>
                <token regexp="yes">i|o|ni|,|però|sinó</token>
                <marker>
                    <token postag="A..[FC][PN0].*|V.P..PF.?" postag_regexp="yes"><exception postag="_GN_FP"/></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"></wd></disambig>
        </rule>
        <!-- Cas particular: no aplicar la regla COMPLEXES -->
        <rule>
            <pattern>
                <token postag="AQ0[FC][PN]0|VMP00PF.?" postag_regexp="yes"><exception postag="_GN_MP|NCMP.*" postag_regexp="yes"/></token>
                <token regexp="yes" skip="1">i|o|ni|,|però|sinó</token>
                <marker>
                    <token>complexes</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>complexes</token>
                </marker>
                <token regexp="yes" skip="1">i|o|ni|,|però|sinó</token>
                <token postag="AQ0[FC][PN]0|VMP00PF.?" postag_regexp="yes"><exception postag="_GN_MP|NCMP.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"></wd></disambig>
        </rule>
        <!-- adjectius -->
        <!-- Encadena numerals -->
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
                </marker>
                <token regexp="yes">i|ni|o|,</token>
                <and>
                    <token postag="DN.[FC][PN]." postag_regexp="yes"></token>
                    <token postag="_GN_FP"/>
                </and>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
                </marker>
                <token regexp="yes">i|ni|o|,</token>
                <and>
                    <token postag="DN.[MC][PN]." postag_regexp="yes"></token>
                    <token postag="_GN_MP"/>
                </and>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="filtra_noms_masculins_femenins" name="filtra noms masculins i femenins">
        <rule>
            <pattern>
                <and>
                    <token postag="NCMS000|NCCS000|AQ0CS0" postag_regexp="yes"/>
                    <token postag="_GN_MS"/>
                    <token postag="NCFS000"><exception postag="_GN_FS"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCFS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCFS000|NCCS000|AQ0CS0" postag_regexp="yes"/>
                    <token postag="_GN_FS"/>
                    <token postag="NCMS000"><exception postag="_GN_MS"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCMP000|NCCP000|PX3MP0C0" postag_regexp="yes"/>
                    <token postag="_GN_MP"/>
                    <token postag="NCFP000"><exception postag="_GN_FP"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCFP000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCFP000|NCCP000" postag_regexp="yes"/>
                    <token postag="_GN_FP"/>
                    <token postag="NCMP000"><exception postag="_GN_MP"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCMP000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCFP000|NCCP000" postag_regexp="yes"/>
                    <token postag="_GN_FP"/>
                    <token postag="NCMS000"><exception postag="_GN_MS"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCMS000"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCMS000|NCCS000" postag_regexp="yes"/>
                    <token postag="_GN_MS"/>
                    <token postag="NCFP000"><exception postag="_GN_FP"/></token>
                </and>
            </pattern>
            <disambig action="remove"><wd pos="NCFP000"/></disambig>
        </rule>
    </rulegroup>
    <rule id="nou_adj" name="nou adjectiu">
        <pattern>
            <marker>
                <and>
                    <token postag="AQ.*" postag_regexp="yes">nou</token>
                    <token postag="_GN_MS" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="N.[MC][SN].*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="AQ.*|_GN_MS"/>
    </rule>
    <!-- <rule id="NomParticipiParticipi" name="nom + participi + participi, que no han concordat">
        <pattern>
        <token postag="NC.*" postag_regexp="yes"></token>
        <marker>
        <and>
        <token postag="N.*" postag_regexp="yes"><exception postag="_GN.*|SPS00" postag_regexp="yes" /></token>
        <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="V.[MIS].*|RG.*" postag_regexp="yes"/></token>
        </and>
        </marker>
        <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="V.[MIS].*" postag_regexp="yes" /></token>
        </pattern>
        <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
        </rule> -->
    <rule id="VERB_PREPOSICIO" name="verb + preposició">
        <!-- mogut per "haver acabat"; excepció: per tal d'aconseguir els seus fins; per a aconseguir fins dignes d'aconseguir-se-->
        <!-- mogut per "aconseguir fins dignes";-->
        <pattern>
            <token postag="V.[SING].*|_GV_" postag_regexp="yes"><exception postag="N.*|_GN_.*|RG.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="SPS00"><exception postag="_GN_.*|PI.*|DI.*" postag_regexp="yes"/></token>
            </marker>
            <token><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="SP.*|RG.*|CS|_obligacio"></disambig>
    </rule>
    <rule id="PARTICIPI_PREPOSICIO" name="verb compost (participi) + preposició">
        <pattern>
            <and>
                <token postag="V.P.*" postag_regexp="yes"><exception postag="N.*|_GN_.*" postag_regexp="yes"/></token>
                <token postag="_GV_"/>
            </and>
            <marker>
                <token postag="SPS00"><exception postag="_GN_.*|PI.*|DI.*" postag_regexp="yes"/></token>
            </marker>
            <token><exception postag="V.[MSI].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="SP.*|RG.*"></disambig>
    </rule>
    <rule id="sota" name="sota preposició">
        <pattern>
            <marker>
                <and>
                    <token postag="RG"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                    <token postag="SPS00"/>
                </and>
            </marker>
            <token postag="D.*" postag_regexp="yes"><exception inflected="yes">es</exception></token>
            <token postag="[AN].*|V.P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="S.*" />
    </rule>
    <rule id="PREP_VERBbis" name="no Verb conjugat darrere de preposició">
        <!-- "de sumes": "sumes" no és verb. Mogut per "En forma part". Mogut amunt per "d'escriptura comú" -->
        <pattern>
            <token postag="SP.*|.*LOC_PREP.*" postag_regexp="yes"><exception postag="PP.*|P0.*" postag_regexp="yes" /></token>
            <marker>
                <and>
                    <token postag="N.*|RG" postag_regexp="yes"></token>
                    <token postag="V.[^NGP].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="PREP_ART_VERBbis" name="no Verb conjugat darrere de preposició i article">
        <!-- "a l'esquerra": "esquerra" no és verb . Mogut per "De les dites baronies"-->
        <pattern>
            <token postag="SP.*" postag_regexp="yes"><exception postag="RG"/></token>
            <token postag="DA.*" postag_regexp="yes"><exception inflected="yes">es</exception></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="V.[^NGP].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rulegroup id="prep_participinom" name="prep + participi_nom">
        <rule> <!-- punt de vista, condemnat a mort -->
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                        <token postag="V.P.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="NC.*|_GN_.*"></disambig>
        </rule>
        <rule> <!-- en realitat funciona com a adjectiu -->
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"></token>
                        <token postag="V.P.*" postag_regexp="yes"/>
                        <token postag="_GN_.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token><exception postag="N.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="NC.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <!-- "en contacte" és verb o nom?  -->
    <rulegroup id="EN_VerbNom" name="verb/nom darrere de preposició en">
        <rule>
            <pattern>
                <token><exception>que</exception></token>
                <token>en</token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="V.[^NGP].*" postag_regexp="yes"><exception regexp="yes">surt|parla|paga|saps|pren|passa|trama|porta</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
    </rulegroup>
    <rule id="NoVerb" name="no verb si no és en grup verbal">
        <pattern>
            <token postag="_GN_.*" postag_regexp="yes" regexp="yes">diputats?|diputad(a|es)|negativa|negatives|brossa<exception postag="_GV_"/></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rule id="noVerbBalear0" name="es estiu (no balear)">
        <pattern>
            <token>es</token>
            <marker>
                <and>
                    <token postag="VMIP1S0B"/>
                    <token postag="[NAI].*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
    </rule>
    <rulegroup id="PP_VERB" name="pronom personal seguit de verb">
        <!-- pronom personal + verb. Mogut per "en obres properes" -->
        <!-- estudiar concordances de persona i nombre!!!!!! <exception postag="D.*" postag_regexp="yes"/> -->
        <!-- se sent sola; s'havia fet.. com tractar: el metges, es fan... -->
        <!--creat per "ens ensenya". Excep: en complexes perspectives-->
        <rule>
            <pattern>
                <marker>
                    <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">si|en|l'|el|la|els|les|['-].+</exception></token>
                </marker>
                <token postag="V.[^MNPG].*" postag_regexp="yes"><exception regexp="yes">\p{Lu}[\p{Ll}\-'·]+</exception></token>
            </pattern>
            <disambig action="filter" postag="P.*|_GV_"/>
        </rule>
        <rule>
            <pattern>
                <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">si|en|l'|el|la|els|les|['-].+</exception></token>
                <marker>
                    <token postag="V.[^MNPG].*" postag_regexp="yes"><exception regexp="yes">\p{Lu}[\p{Ll}\-'·]+</exception></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[^MNPG].*|_GV_|_perfet|_obligacio"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="&pronom_feble;" postag_regexp="yes"><exception regexp="yes">si|['-].+</exception></token>
                </marker>
                <token regexp="yes">ben|mig</token>
                <token postag="V.[^MNPG].*|_GV_|_perfet|_obligacio" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="P0.*|PP.*" postag_regexp="yes" regexp="yes">l'|el|la|els|les|en</token>
                    <token postag="V.[SI].*" postag_regexp="yes"></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_GV_"/><wd pos="_GV_"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="verbs_darrere_sino" name="neteja verbs darrere de 'sinó'">
        <rule>
            <pattern>
                <token>sinó</token>
                <marker>
                    <and>
                        <token postag="_GN_.*" postag_regexp="yes"/>
                        <token postag="V.[MSI].*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="_GN_.*|A.*|N.*|D.*|V.P.*|PX.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="3">sinó<exception scope="next" regexp="yes">que|perquè</exception></token>
                <marker>
                    <and>
                        <token postag="_GN_.*|N.*|A.*" postag_regexp="yes"/>
                        <token postag="V.[MSI].*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="_GN_.*|A.*|N.*|D.*|V.P.*|PX.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="3">sinó<exception scope="next" regexp="yes">que|perquè</exception></token>
                <marker>
                    <and>
                        <token postag="DA.*" postag_regexp="yes"/>
                        <token postag="_GV_"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="_GN_.*|A.*|N.*|D.*|V.P.*|PX.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="NoVerb2" name="no verb si no és en grup verbal">
        <pattern>
            <and>
                <token postag="V.[^P].*" postag_regexp="yes" regexp="yes">senzilles|senzilla|disperses|diputats?|diputad(a|es)|negativa|negatives|terminis?|brossa|ultra|rica|estesa|esteses<exception postag="_GV_"/></token>
                <token postag="[^V].*|V.P.*" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="filter" postag="[^V].*|V.P.*"/>
    </rule>
    <rulegroup id="Verb_adverbi" name="Verb i adverbi: encara sóc, sóc encara">
        <rule> <!--  ATENCIÓ: quan el verb és també substantiu, poden haver-hi problemes: encara es "troba". Les excepcions no són fiables
            Ens encara i ens destrueix. Ell encara ho creu.
        -->
            <pattern>
                <marker>
                    <and>
                        <token postag="V.*" postag_regexp="yes" skip="4"><exception postag="_GV_"/><exception scope="next" postag="DA.*|R.*|.*LOC_ADV.*|PP.*|P0.*|SENT_END|V.*|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                        <token postag="RG"/>
                    </and>
                </marker>
                <token postag="V.[MSI].*|_GV_" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.*" postag_regexp="yes" skip="3"><exception scope="next" postag="R.*|.*LOC_ADV.*|P0.*|PP.*|SENT_END|V.*|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <and>
                        <token postag="V.*" postag_regexp="yes"><exception postag="_GV_"/><exception>acabat</exception></token><!-- excep: S'havien acabat-->
                        <token postag="RG"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>encara</token>
                </marker>
                <token regexp="yes">que|bo|gràcies|sort</token>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="infinitiu_o_nom" name="infinitiu o nom">
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token>tot</token>
                <token regexp="yes">el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"/>
                        <token postag="NCMS.*" postag_regexp="yes"><exception regexp="yes">\p{Lu}.+</exception></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token regexp="yes">l|el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"/>
                        <token postag="NCMS.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token regexp="yes">que|on</token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token regexp="yes">l|el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"/>
                        <token postag="NCMS.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="A.0[MC][SN].|VMP00SM.?" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token regexp="yes">l|el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"/>
                        <token postag="NCMS.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="RG_anteposat"/>
                <token postag="A.0[MC][SN].|VMP00SM.?" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*" />
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes" skip="4"><exception scope="next" postag="R.*|.*LOC_ADV.*|PP.*|P0.*|SENT_END|V.*|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token postag="V.[SI].*|_GV_" postag_regexp="yes"></token>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token postag="V.[NGSI].*|_GV_" postag_regexp="yes" skip="3"><exception scope="next" postag="SPS00|R.*|.*LOC_ADV.*|PP.*|P0.*|SENT_END|DA.*|_GN_MS|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                <token regexp="yes">l|el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token postag="SPS00"></token>
                <token regexp="yes">l|el|l'</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token postag="SPS00"/>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <token regexp="yes">més|menys</token>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"><exception>ser</exception></token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule><!-- excepcions a la regla següent -->
            <pattern>
                <marker>
                    <and>
                        <token postag="_GN_.*" postag_regexp="yes">deure</token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                        <token postag="NCMS.*" postag_regexp="yes"><exception regexp="yes">\p{Lu}.+|ésser|militar|titular|boiar|metre</exception></token>
                    </and>
                </marker>
                <token postag="SPS00"/>
            </pattern>
            <disambig action="filter" postag="V.N.*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"></token>
                        <token postag="NCMS.*" postag_regexp="yes"><exception regexp="yes">\p{Lu}.+|ésser|militar|boiar|metre</exception></token>
                    </and>
                </marker>
                <token><exception postag="_PUNCT.*|CC|AQ0[MC][SN]0|V.P.*SM.|_GV_|&pronom_feble;" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="V.N.*" />
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="V.N.*" postag_regexp="yes"/>
                        <token postag="NCMS.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="PP3..A00" postag_regexp="yes"></token>
                <token><exception postag="V.[SI].*|_GV_|&pronom_feble;" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="V.N.*" />
        </rule>
    </rulegroup>
    <rule id="els_passa_igual" name="els passa igual">
        <!-- excep: la roba encara no està seca; la taca més negra; narracions en vers sota els arbres -->
        <pattern>
            <token postag="_GV_"><exception postag="_GN_.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="_GV_"></token>
            </marker>
            <token postag="RG.*|.*LOC_ADV.*" postag_regexp="yes"><exception regexp="yes">no|encara|que|més</exception></token>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_|_perfet"></disambig>
    </rule>
    <rule id="encara" name="encara">
        <pattern>
            <and>
                <token postag="RG">encara</token>
                <token postag="V.*" postag_regexp="yes"><exception postag="_GV_" postag_regexp="yes" /></token>
            </and>
        </pattern>
        <disambig action="filter" postag="RG.*"></disambig>
    </rule>
    <rule id="siVerbBalear" name="sí verb balear"> <!-- el calç-->
        <pattern>
            <token postag="_GV_"><exception>en</exception></token>
            <marker>
                <and>
                    <token postag="VMIP1S0B"/>
                    <token postag="N.*|A.*" postag_regexp="yes"><exception postag="_GN_.*|RG" postag_regexp="yes"/><exception>senyal</exception></token>
                    <token postag="_GV_" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_"></disambig>
        <example type="untouched">Va pensar que en cas que vingués ho faria.</example>
    </rule>
    <!--<exception regexp="yes">.+[oe]|faig|estic|dic|fenc|incloc|moc|predic|ric|sec|solc|coc|contradic|crec|duc|escórrec|hac|jac</exception>-->
    <rulegroup id="noVerbBalear" name="no verb balear">
        <!-- No és verb balear, si no hi ha res que ho hagi indicat prèviament -->
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="VMIP1S0B">van</token>
                        <token postag="VMIP1S0B" negate_pos="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd lemma="vanar"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="VMIP1S0B"/>
                        <token postag="[NAI].*" postag_regexp="yes"></token>
                        <!--<token postag="V...[^1].*" postag_regexp="yes" negate_pos="yes"></token>-->
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="VMIP1S0B"/>
                        <token postag="RG"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="VMIP1S0B">al</token>
                </marker>
                <token spacebefore="no">-</token>
                <token spacebefore="no"/>
            </pattern>
            <disambig action="remove"><wd pos="VMIP1S0B"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="no_GV" name="neteja GV">
        <rule>
            <pattern>
                <token postag="_GV_"><exception postag="P[P0].*|V.*" postag_regexp="yes"/><exception regexp="yes">falta|terme|origen|camí|corrent</exception></token>
            </pattern>
            <disambig action="remove"><wd pos="_GV_"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="_GV_"/></token>
                <marker>
                    <and>
                        <token postag="DA.*" postag_regexp="yes"></token>
                        <token postag="_GV_"></token>
                    </and>
                </marker>
                <token><exception postag="_GV_"/></token>
            </pattern>
            <disambig action="filter" postag="D.*|_GN_.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="verb_verbadj" name="verb + verb/adj">
        <pattern>
            <token postag="V.[MSI].*|_GV_" postag_regexp="yes"><exception postag="PP.*|P0.*|N.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /></token>
                    <token postag="V.[SI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*|V.P.*"></disambig>
    </rule>
    <rule id="verbadj_verb" name="verb/adj + verb">
        <pattern>
            <marker>
                <and>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
                    <token postag="V.[SI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
            <token postag="V.[MSI].*|_GV_" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes"/></token>
            <!-- <token postag="V.[MSI].*|PP.*|P0.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes"/><exception regexp="yes">jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</exception></token> -->
        </pattern>
        <disambig action="filter" postag="A.*|V.P.*"></disambig>
    </rule>
    <!--     <rule id="tant_nom_com_nom" name="desambigua tant+nom+com+nom">
        tant grecs com romans. És excep. de la regla següent
        <pattern>
        <token>tant</token>
        <token postag="NC.*" postag_regexp="yes"/>
        <token>com</token>
        <marker>
        <token postag="NC.*" postag_regexp="yes"/>
        </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        </rule> -->
    <rulegroup id="NomnoVerb_en_enumeracions" name="paraules que no són verb en enumeracions">
        <rule>
            <pattern>
                <token postag="NC.*|_GN_.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                <token regexp="yes">i|o|ni|,</token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                        <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                    </and>
                </marker>
                <token><exception postag="D.*|SPS.*|RG.*|AQ.*|V.P.*|NC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="remove" postag="V.[MSIG].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                        <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                    </and>
                </marker>
                <token regexp="yes">i|o|ni|,</token>
                <token postag="NC.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                <!-- <token><exception postag="D.*|SPS.*|RG.*|AQ.*|V.P.*|NC.*" postag_regexp="yes"/></token> -->
            </pattern>
            <disambig action="remove" postag="V.[MSIG].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                        <token postag="_GN_.*" postag_regexp="yes"/>
                        <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                    </and>
                </marker>
                <token regexp="yes">i|o|ni|,</token>
                <token postag="_GN_.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                <!-- <token><exception postag="D.*|SPS.*|RG.*|AQ.*|V.P.*|NC.*" postag_regexp="yes"/></token> -->
            </pattern>
            <disambig action="remove" postag="V.[MSIG].*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="AdjnoVerb_en_enumeracions" name="paraules que no són verb en enumeracions">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="A.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                    <token regexp="yes">i|o|ni|,</token>
                    <marker>
                        <and>
                            <token postag="A.*" postag_regexp="yes"/>
                            <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                        </and>
                    </marker>
                </unify>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <marker>
                        <and>
                            <token postag="A.*" postag_regexp="yes"/>
                            <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                        </and>
                    </marker>
                    <token regexp="yes">i|o|ni|,</token>
                    <token postag="A.*" postag_regexp="yes" regexp="yes">\p{Ll}.+</token>
                </unify>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="verb_adjectiu" name="verb + adjectiu">
        <!-- El riu passa engorjat. Viatges sola. Ronda amagat. -->
        <rule>
            <pattern>
                <token><exception postag="D[^R]..S." postag_regexp="yes"/></token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                        <token postag="VM[IS]..S.." postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="A...S.|V.P..S.." postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="NC.*"/>
            <example type="untouched">Allí brolla una deu càrstica.</example>
        </rule>
        <rule> <!-- hi ha cap cas? -->
            <pattern>
                <token><exception postag="D[^R]..P." postag_regexp="yes"/></token>
                <marker>
                    <and>
                        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                        <token postag="VM[IS]..P.." postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="A...P.|V.P..P.." postag_regexp="yes"/>
            </pattern>
            <disambig action="remove" postag="NC.*"/>
        </rule>
    </rulegroup>
    <rule id="tant_x_com_y" name="tant x com y: no verb. Ex: tant grecs com romans">
        <pattern>
            <token>tant</token>
            <token postag="A.*|NC.*" postag_regexp="yes"/>
            <token>com</token>
            <marker>
                <and>
                    <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
                    <token postag="V.[MSIG].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="A.*|N.*|V.P.*"/>
    </rule>
    <rulegroup id="mig_x_mig_y" name="mig x mig y. Ex: mig figa mig raïm">
        <rule>
            <pattern>
                <marker>
                    <token>mig</token>
                </marker>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
                <token regexp="yes">,|ni|i|o</token>
                <token>mig</token>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_allow_mig"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>mig</token>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
                <token regexp="yes">,|ni|i|o</token>
                <marker>
                    <token>mig</token>
                </marker>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_allow_mig"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>mig</token>
                </marker>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
                <token>mig</token>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_allow_mig"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>mig</token>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
                <marker>
                    <token>mig</token>
                </marker>
                <token postag="A.*|NC.*|V.P.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_allow_mig"/></disambig>
        </rule>
    </rulegroup>
    <rule id="VerbNom_noNom" name="paraules que no són verb sense pronom (verb reflexiu)">
        <pattern>
            <marker>
                <and>
                    <token postag="NC.*|AQ.*" postag_regexp="yes" regexp="yes">tinya|tinyes|esperit|salina|salines|persona|persones|olives|oliva|amiga|amigues|boira|boires|digna|dignes?</token>
                    <token postag="V.[MSI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="VerbNomAdj" name="verb i adjectiu i nom: verb">
        <pattern>
            <token postag="R.*|.*LOC_ADV.*" postag_regexp="yes" negate_pos="yes"><exception regexp="yes">["“«'‘-]</exception></token>
            <marker>
                <and>
                    <token postag="A.*|V.P.*" postag_regexp="yes"><exception postag="_GN_.*|RG.*" postag_regexp="yes" /><exception regexp="yes">\p{Lu}.*</exception><exception regexp="yes">[\p{Ll}·]+(e|[aei]sses|[ae]res|era)|oferta|ofertes</exception></token>
                    <token postag="V.[SI].*" postag_regexp="yes"><exception postag="_GV_" /><exception regexp="yes">empesa|viu|desperta|nous|buida|buides|composta|compostes</exception></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="DN.*" postag_regexp="yes" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.[^P].*"></disambig>
        <example type="untouched">Una peça per a piano sol composta per Chopin.</example>
    </rule>
    <rule id="VerbNomAdj_valencians1" name="verb (valencià) i nom que no ha concordat">
        <pattern>
            <token>que</token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era<exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbNomAdj_valencians2" name="verb (valencià) i nom que no ha concordat">
        <!-- després de totes les comprovacions, donem prioritat al nom o a l'adjectiu sobre la forma verbal valenciana -->
        <pattern>
            <token postag="N.*|A.*" postag_regexp="yes" negate_pos="yes"><exception postag="N.*|A.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era<exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <!--    <rule id="VerbNom_valencia" name="verb subjuntiu (valencià) i nom que no ha concordat: tema">
        després de totes les comprovacions, donem prioritat al nom o a l'adjectiu sobre la forma verbal valenciana
        <pattern>
        <token postag="N.*|A.*" postag_regexp="yes" negate_pos="yes"><exception postag="N.*|A.*" postag_regexp="yes"/></token>
        <marker>
        <and>
        <token postag="N.*" postag_regexp="yes"></token>
        <token postag="A.*" postag_regexp="yes"></token>
        <token postag="V.S.*" postag_regexp="yes" regexp="yes">.+a<exception postag="_GV_" /></token>
        </and>
        </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        </rule> -->
    <rule id="VerbAdverbi" name="verb (sense pronoms) i adverbi">
        <pattern>
            <token><exception postag="RN"/></token>
            <marker>
                <and>
                    <token postag="RG"/>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">gratis<exception postag="_GV_" /></token> <!--<exception regexp="yes">rebé|encara</exception>-->
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="enlaire" name="punys/mans/braços enlaire">
        <pattern>
            <token postag="NC.*|RG|_GN_.*|UNKNOWN|SPS.*" postag_regexp="yes"/>
            <!-- mà|braç|cama|cap|puny|peu|ventre|panxa|terra|pols|pedra|més -->
            <marker>
                <token postag="RG">enlaire</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"/>
    </rule>
    <rule id="darreres" name="darreres (adj. no nom)">
        <pattern>
            <token postag="_GN_FP">darreres</token>
        </pattern>
        <disambig action="filter" postag="[^N].*"/>
    </rule>
    <rule id="en_ma" name="en mà">
        <pattern>
            <marker>
                <token postag="NC.*" postag_regexp="yes"/>
            </marker>
            <token>en</token>
            <token>mà</token>
        </pattern>
        <disambig action="add"><wd pos="_loc_enma"/></disambig>
    </rule>
    <rule id="verbnom_andana" name="verb/nom -> nom: andana">
        <pattern>
            <marker>
                <and>
                    <token postag="VM[ISM].*" postag_regexp="yes" regexp="yes">andan(a|es)</token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="NC.*|_GN_.."></disambig>
    </rule>
    <rule id="VerbNom" name="verb i nom que no ha concordat"> <!-- Això fou estrany -->
        <pattern>
            <token><exception postag="V.[MSING].*|_GV_|R[GN]|.*LOC_ADV.*|C.*|_PUNCT.*" postag_regexp="yes"/><exception regexp="yes">["“«'‘(]</exception><exception inflected="yes" regexp="yes">mot|paraula|terme|expressió|vocable|nom|tipus</exception></token>
            <marker>
                <and>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /><exception regexp="yes">força|coma|cap|noms?|nous?|deu|viu</exception></token>
                    <token postag="V.[MSI].*" postag_regexp="yes"><exception postag="_GV_" /><exception regexp="yes">\p{Lu}.*</exception><exception regexp="yes">[\p{Ll}·]+(e|es|[aei]sses|[ae]res|era)</exception></token>
                    <!-- problema: els noms acabats en -e no tenen comprovació de concordança!!  -->
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbNom_valencians1" name="verb (valencià) i nom que no ha concordat">
        <pattern>
            <token>que</token>
            <marker>
                <and>
                    <token postag="NC.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era<exception postag="_GN_.*" postag_regexp="yes" /><exception regexp="yes">\p{Lu}.*</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_"></disambig>
    </rule>
    <rule id="VerbNom_valencians2" name="verb (valencià) i nom que no ha concordat">
        <!-- després de totes les comprovacions, donem prioritat al nom sobre la forma verbal valenciana -->
        <pattern>
            <token postag="N.*" postag_regexp="yes" negate_pos="yes"><exception postag="N.*|CS" postag_regexp="yes"/></token> <!-- quan impacte -->
            <marker>
                <and>
                    <token postag="NC.*" postag_regexp="yes"></token>
                    <token postag="V.[MS].*|VMIP1S0V" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era<exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="VerbAdjectiu" name="verb i adjectiu que no ha concordat"> <!-- fer exàmens. Excep: tan regular (adj) -->
        <pattern>
            <token><exception postag="RG_anteposat|.*LOC_ADV.*|_GV_|SPS00|CC|UNKNOWN|V.[SI].*|_PUNCT.*" postag_regexp="yes" /><exception postag="P.*" postag_regexp="yes" regexp="yes">['-].+</exception><exception inflected="yes" regexp="yes">ser|estar|semblar|parèixer|considerar</exception></token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /><exception regexp="yes">\p{Lu}+[\p{Ll}·]*</exception><exception regexp="yes">[\p{Ll}·]+(e|[aei]sses|[ae]res|era|às)</exception></token>
                    <token postag="V.*" postag_regexp="yes"><exception postag="_GV_|VMIP1S0.?|V.G.*" postag_regexp="yes" /><exception regexp="yes">viu|nous?|massissa|senzilla</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbAdjectiu2" name="verb i adjectiu que no ha concordat després de puntuació">
        <pattern>
            <token postag="_PUNCT.*" postag_regexp="yes" />
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /><exception regexp="yes">\p{Lu}+[\p{Ll}·]*</exception><exception regexp="yes">[\p{Ll}·]+(e|[aei]sses|[ae]res|era|às)</exception></token>
                    <token postag="V.*" postag_regexp="yes"><exception postag="_GV_|VMIP1S0.?|V.G.*" postag_regexp="yes" /><exception regexp="yes">viu|nous?|massissa|senzilla</exception></token>
                </and>
            </marker>
            <token postag="N.*|V.G.*|RG|_GN_.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbAdjectiu_tens" name="verb i adjectiu que no ha concordat: tens (verb habitual)"> <!-- si tens coneguts. Excep: tan regular (adj) -->
        <pattern>
            <token><exception postag="RG_anteposat|.*LOC_ADV.*|_GV_|SPS00" postag_regexp="yes" /><exception regexp="yes">["«'‘]</exception></token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
                    <token postag="V.*" postag_regexp="yes">tens</token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbAjectiu_valencians1" name="verb (valencià) i adjectiu que no ha concordat">
        <pattern>
            <token>que</token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era|.+às<exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="VerbAdj_valencians2" name="verb (valencià) i adjectiu que no ha concordat">
        <!-- després de totes les comprovacions, donem prioritat al nom sobre la forma verbal valenciana -->
        <pattern>
            <token><exception postag="N.*|A.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <token postag="V.[MSI].*" postag_regexp="yes" regexp="yes">.+e|.+[aei]sses|.+[ae]res|.+era|.+às<exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="encara_mes_VerbAdj" name="encara/molt més dures">
        <pattern>
            <token postag="RG.*" postag_regexp="yes"/>
            <token>més</token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"></token>
                    <token postag="V.IP.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="VerbAdj_present" name="verb (presendt d'indicatiu) i adj que no ha concordat: confesses">
        <pattern>
            <token><exception regexp="yes">["“«'‘(]</exception></token>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
                    <token postag="V.IP2S..?" postag_regexp="yes"><exception regexp="yes">estables|lliures|nous|paleses|concretes|complexes|dures|actives|fines|primes|baixes|justes</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
    </rule>
    <rule id="verbadj_lliure" name="verb/adj -> adj: lliure">
        <pattern>
            <marker>
                <and>
                    <token postag="A.*" postag_regexp="yes" regexp="yes">lliures?</token>
                    <token postag="V.[SI].*" postag_regexp="yes"><exception postag="_GV_" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="V.*"></disambig>
    </rule>
    <rule id="verbnom_dubte_compte" name="verb/nom -> verb: compte, dubte">
        <pattern>
            <marker>
                <and>
                    <token postag="VM[ISM].*" postag_regexp="yes" regexp="yes">comptes?|dubtes?|rest(a|es)</token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                    <token postag="_GV_"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.*|_GV_"></disambig>
    </rule>
    <rulegroup id="nParticipi" name="no participi si no ha concordat">
        <rule> <!--  paraules que habitualment no són participi si no han concordat (darrere de "de"?: base de dades, sistema de partits -->
            <pattern>
                <and>
                    <token postag="V.P.*" postag_regexp="yes" regexp="yes">vista|partida|dada|dades|partits?|estats?|beguda|begudes<exception postag="_GN_.*|_GV_" postag_regexp="yes"/></token>
                    <token postag="N.*" postag_regexp="yes"></token>
                </and>
            </pattern>
            <disambig action="filter" postag="[^V].*"/>
        </rule>
        <rule> <!--  A més, són nom si tenen un adjectiu al darrere que concorda -->
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <and>
                        <token postag="V.P.*" postag_regexp="yes" regexp="yes">partida|dada|dades|partits?|estats?|beguda|begudes</token>
                        <token postag="N.*" postag_regexp="yes"></token>
                    </and>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                </unify>
            </pattern>
            <disambig action="filter"  postag="[^V].*"/>
        </rule>
    </rulegroup>
    <!-- <rule id="sParticipi" name="Altrament sí que són participi">
        <pattern>
        <marker>
        <and>
        <token postag="V.P.*" postag_regexp="yes"></token>
        <token postag="NC.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
        </and>
        </marker>
        <token postag="N.*" postag_regexp="yes"><exception postag="V.[IS].*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
        </rule> -->
    <!-- verb + adj/verb  Havien estat ocultes. Mogut per: cap historiador reputat accepta aquesta teoria -->
    <rule id="verb_nom2" name="verb + adjectiu">
        <pattern>
            <token postag="V.*" postag_regexp="yes"><exception postag="N.*|_GN.*" postag_regexp="yes" /></token>
            <!-- les persones som consumidores -->
            <marker>
                <and>
                    <token postag="V.[^GNP].*" postag_regexp="yes"></token>
                    <!-- inclòs el gerundi?? -->
                    <token postag="A.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        <!-- s'incorporaren nou seminaristes-->
    </rule>
    <!-- Desactivat per: el conjunt porta el nom
        <rule id="verb_nom4c" name="verb + nom">
        <pattern>
        <and>
        <token postag="V.[IS].*|_GV_" postag_regexp="yes"><exception postag="PP.*|P0.*" postag_regexp="yes"/></token>
        <token postag="N.*|_GN.*" postag_regexp="yes" negate_pos="yes"></token>
        </and>
        <marker>
        <and>
        <token postag="V.[IS].*" postag_regexp="yes"></token>
        <token postag="N.*" postag_regexp="yes"></token>
        </and>
        </marker>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        </rule> -->
    <!-- nom + nom/verb  La comunitat fou. Canviat de lloc per: un dels membres deixa -->
    <rule id="verb_nom5a" name="verb + nom">
        <pattern>
            <token postag="N.*" postag_regexp="yes"><exception postag="[AD].*|_GV_" postag_regexp="yes"></exception></token>
            <marker>
                <and>
                    <token postag="V.P.*" postag_regexp="yes"></token>
                    <!--respostes per-->
                    <token postag="N.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
                </and>
            </marker>
            <token postag="SPS.*" postag_regexp="yes" negate_pos="yes"></token>
        </pattern>
        <disambig action="filter" postag="V.P.*"></disambig>
    </rule>
    <!-- <rule id="verb_nom5" name="verb + nom">
        <pattern>
        <token postag="N.*" postag_regexp="yes"><exception postag="[AD].*|V.N.*|RG.*" postag_regexp="yes"></exception><exception inflected="yes" regexp="yes">mot|paraula|terme|expressió|vocable|nom|tipus</exception></token>
        La gran taula
        <marker>
        <and>
        <token postag="V.[MSI].*" postag_regexp="yes"><exception regexp="yes">cap|força</exception></token>
        <token postag="N.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes" /></token>
        </and>
        </marker>
        </pattern>
        <disambig action="filter" postag="V.*"></disambig>
        </rule> -->
    <rulegroup id="nAdjectiu" name="no adjectiu si no ha concordat">
        <!--  paraules que habitualment no són adjectius si no han concordat: fer|segons|envolta-->
        <rule>
            <pattern>
                <token><exception postag="RG_anteposat"/></token>
                <marker>
                    <and>
                        <token postag="A.*" postag_regexp="yes" regexp="yes">manca|vius?|accepta|palesa|manifesta|ultra|vers|lluny|presta|som|sabeu|seré|fer|afecta|alterna|ciutadà|ciutadans|ciutadana|ciutadanes<exception postag="_GN_.*" postag_regexp="yes"/></token>
                        <token postag="A.*" postag_regexp="yes" negate_pos="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^A].*"/>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="RG_anteposat"/><exception>com</exception></token>
                <marker>
                    <and> <!--dret-->
                        <token postag="A.*" postag_regexp="yes" regexp="yes" inflected="yes">titular|redactor|directiu|carreter|mural|promotor|director|estranger|missatger|motiu|part|restaurant|parella<exception postag="_GN_.*" postag_regexp="yes"/></token>
                        <token postag="A.*" postag_regexp="yes" negate_pos="yes"></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^A].*"/>
        </rule>
    </rulegroup>
    <rule id="corrent_per_gerundi" name="corrent per (gerundi)">
        <pattern>
            <marker>
                <token postag="VMG00000">corrent<exception postag="_GN.*" postag_regexp="yes"/></token>
            </marker>
            <token inflected="yes">per</token>
        </pattern>
        <disambig action="filter" postag="VMG00000"/>
    </rule>
    <rulegroup id="Nom_AdjectiuNoConcorda" name="nom + adjectiu que no han concordat (comú)">
        <rule>
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="V.*|A.*|complement.*" postag_regexp="yes"/><exception inflected="yes" regexp="yes">mot|paraula|terme|expressió|vocable|nom|tipus|denominació</exception></token>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"><exception regexp="yes">\p{Lu}.+</exception></token>
                        <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="_GN.*|SPS00|V.[GMIS].*|CC|RG.*" postag_regexp="yes" /></token>
                        <!--  exc. just allà -->
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
        </rule>
        <rule> <!-- problema: poden crear de forma espontània parells electró-positró. -->
            <pattern>
                <and>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="_GN_.*" postag_regexp="yes"/>
                </and>
                <and>
                    <token postag="A.*" postag_regexp="yes"/>
                    <token postag="_GN_.*" postag_regexp="yes"/>
                </and>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"></token>
                        <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="_GN.*|SPS00|V.[GMIS].*|CC|RG.*" postag_regexp="yes" /></token>
                        <!--  exc. just allà -->
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="genere"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="RG_anteposat"/>
                    <token postag="A.*" postag_regexp="yes"/>
                </unify>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes"></token>
                        <token postag="V.P.*|AQ.*" postag_regexp="yes"><exception postag="_GN.*|SPS00|V.[GMIS].*|CC|RG.*" postag_regexp="yes" /></token>
                        <!--  exc. just allà -->
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.P.*|AQ.*"></disambig>
        </rule>
    </rulegroup>
    <!--<rule id="GN_verb" name="GN verb: el pare no hi és">
        <pattern>
        <token postag="_GN_.*" postag_regexp="yes"/>
        <marker>
        <and>
        <token postag="_GN_.*" postag_regexp="yes"/>
        <token postag="_GV_"/>
        </and>
        </marker>
        <token postag="V.[SI].*|&pronom_feble;|RN" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="_GN_.*|[AN].*"></disambig>
        </rule> -->
    <rule id="GV_GN" name="un cas concret d'ambiguitat GV/GN">
        <!-- "el parla gran quantitat de persones -->
        <pattern>
            <token postag="_GV_"><exception postag="_GN_.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="_GV_"/>
                    <token postag="_GN_.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="_GN_.*" postag_regexp="yes"/>
            <and>
                <token postag="NC.*|PX.*" postag_regexp="yes"><exception regexp="yes">col?p|vegada|volta</exception></token>
                <token postag="_GN_.*" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="filter" postag="_GV_|V.*"></disambig>
    </rule>
    <rule id="verbnom_GN" name="verb/nom + GN">
        <!-- a tots els toca la seva part -->
        <pattern>
            <and>
                <token postag="_GV_"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                <token postag="P.*" postag_regexp="yes"/>
            </and>
            <marker>
                <and>
                    <token postag="_GV_"/>
                    <token postag="N.*" postag_regexp="yes"/>
                </and>
            </marker>
            <token postag="_GN_.*" postag_regexp="yes"/>
            <and>
                <token postag="NC.*|PX.*|A.*" postag_regexp="yes"><exception regexp="yes">col?p|vegada|volta</exception></token>
                <token postag="_GN_.*" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="filter" postag="_GV_|V.[^M].*"></disambig>
        <example type="untouched">Hauria fet <marker>falta</marker> un coet.</example>
    </rule>
    <!-- nom + nom/prep  Enfrontament contra. Enfrontament sindical contra. Mogut per: "la gran via de" via (prep.)-->
    <rule id="nom_prep" name="nom + preposició">
        <pattern>
            <token postag="N.*|A.*" postag_regexp="yes"></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/></token>
                    <token postag="SPS00"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="haver_de" name="haver de + infinitiu">
        <pattern>
            <marker>
                <token postag="VA.*" postag_regexp="yes" inflected="yes">haver</token>
            </marker>
            <token regexp="yes">de|d'</token>
            <token postag="V.N.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="VA.*|_GV_|_obligacio"></disambig>
    </rule>
    <rule id="VerbAuxiliar" name="verb auxiliar i no auxiliar">
        <pattern>
            <marker>
                <and>
                    <token postag="VA.*" postag_regexp="yes"><exception postag="_GV_"/></token>
                    <token postag="VM.*" postag_regexp="yes" inflected="yes">anar</token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="VM.*"></disambig>
    </rule>
    <rule id="VerbPrep" name="verb i preposició: preposició"> <!-- cas: sense llevat. Quan entre en... -->
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes"><exception postag="_GV_"/><exception>salvat</exception></token>
                    <token postag="SPS.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token><exception postag="SPS.*" postag_regexp="yes"/></token>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="sobre" name="sobre no verb">
        <pattern>
            <marker>
                <and>
                    <token postag="V.*" postag_regexp="yes">sobre<exception postag="_GV_"/></token>
                    <token postag="SPS.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token postag="SPS00"/>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
    </rule>
    <rule id="GerAdj" name="gerundi i adj: gerundi">
        <pattern>
            <token><exception postag="SPS00|CC" postag_regexp="yes"/><exception inflected="yes" regexp="yes">ser|estar|semblar|parèixer|considerar</exception></token> <!-- en calent -->
            <marker>
                <and>
                    <token postag="V.G.*" postag_regexp="yes"><exception regexp="yes">arrogant|equivalent|important|corrent</exception></token> <!-- exception: tots els verbs reflexius -->
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="V.G.*"></disambig>
    </rule>
    <rule id="mal" name="mal (adv)">
        <pattern>
            <marker>
                <token postag="RG.*" postag_regexp="yes">mal<exception postag="_GN.*" postag_regexp="yes"/></token>
            </marker>
            <token postag="V.P.*|A.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="RG.*"></disambig>
    </rule>
    <rule id="Prep_NomAdv" name="prep + nom i adverbi">
        <!-- fins demà, de mal vestida-->
        <pattern>
            <token postag="SPS.*" postag_regexp="yes"></token>
            <marker>
                <and>
                    <token postag="R.*" postag_regexp="yes"><exception inflected="yes" regexp="yes">llarg|tot|infinit|lli</exception><exception postag="_GN.*" postag_regexp="yes" /></token>
                    <token postag="N.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token postag="AQ.*|V.P.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="Prep_NomAltres" name="preposició + nom i altres: nom">
        <!-- problema: de gran lirisme. A petita escala -->
        <pattern>
            <token postag="SPS.*" postag_regexp="yes"></token>
            <marker>
                <and>
                    <token postag="N.*|A.*|V.P.*" postag_regexp="yes" negate_pos="yes"><exception postag="DN.*|_GN.*|_GV_|(DI|DE|DT|PT).*|PI.*" postag_regexp="yes" /></token>
                    <token postag="N.*|A.*|V.P.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*|A.*|V.P.*"></disambig>
    </rule>
    <rule id="PrepNom_llevat" name="preposició o nom: llevat"> <!-- potser no és prep.: cap  -->
        <pattern>
            <marker>
                <and>
                    <token postag="SPS.*" postag_regexp="yes">llevat</token>
                    <token postag="N.*" postag_regexp="yes"></token>
                </and>
            </marker>
            <token><exception regexp="yes">això|de|d'</exception></token>
        </pattern>
        <disambig action="filter" postag="[^S].*"></disambig>
    </rule>
    <rule id="ates_el" name="atès el/atesa la">
        <pattern>
            <unify>
                <feature id="nombre"></feature>
                <feature id="genere"></feature>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes" regexp="yes">atesa|ateses</token>
                </marker>
                <token postag="D.*" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="remove" postag="N.*"></disambig>
    </rule>
    <rule id="PrepNom" name="preposició + nom: prep. Ex: contra"> <!-- potser no és prep.: cap  -->
        <pattern>
            <marker>
                <and>
                    <token postag="SPS.*" postag_regexp="yes"></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="InfGer_Nom" name="infinitiu o gerundi / nom que no ha concordat">
        <!-- ser, deixant, etc. excep: tan regular (adj)-->
        <pattern>
            <token><exception postag="RG.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="V.[NG].*" postag_regexp="yes" regexp="yes">\p{Ll}.*<exception>seient</exception></token>
                    <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rulegroup id="CAP2" name="cap: tractament especial (det, adj, nom, adv, verb...)">
        <!-- TODO: ampliar
            cap cabre VMIP1S0
            cap cabre VMIP3S0
            cap cabre VMM02S0
            cap cap DI0CS0
            cap cap NCCS000
            cap cap NCMS000
            cap cap PI0CS000
            cap cap SPS00
            cap capar VMIP1S0-->
        <rule>
            <pattern>
                <token postag="VM.*" postag_regexp="yes" regexp="yes" inflected="yes" skip="2">anar|córrer|traslladar|moure|avançar|caminar</token>
                <marker>
                    <token postag="SPS.*" postag_regexp="yes">cap</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="SPS.*"></disambig>
        </rule>
        <rule> <!-- cap d'aquells homes. Excep: el cap d'aquells homes-->
            <pattern>
                <marker>
                    <token postag="SPS.*" postag_regexp="yes">cap<exception postag="_GN_MS"/></token>
                </marker>
                <token regexp="yes">de|d'</token>
                <token postag="D[AD].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="PI.*"></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="FORCA2" name="força: tractament especial (det, adj, nom, adv, verb...)">
        <!-- TODO: ampliar -->
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">guanyar|perdre</token>
                <marker>
                    <token postag="NC.*" postag_regexp="yes">força</token>
                </marker>
                <token><exception postag="NC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="filter" postag="NC.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="DI.*" postag_regexp="yes">força</token>
                </marker>
                <token postag="NC.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="DI.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="V.N.*" postag_regexp="yes"/>
                <marker>
                    <token postag="V.*" postag_regexp="yes">força</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
        <rule> <!-- cobra més força -->
            <pattern>
                <token postag="V.*" postag_regexp="yes"/>
                <token postag="RG"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes">força</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="_GN_FS">força</token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*|V.*|_GV_"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="_GN_FS">força<exception postag="_GV_"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="N.*|_GN_.*"></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token postag="_GV_">força<exception postag="_GN_FS"/></token>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.*|_GV_"></disambig>
        </rule>
        <rule> <!-- nom+força+adj : Permet analitzar errors: era una dona força misteriós-->
            <pattern>
                <token postag="N.*" postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="N.*" postag_regexp="yes">força</token>
                        <token postag="RG_anteposat"/>
                        <token postag="V.*" postag_regexp="yes"/>
                        <token postag="DI.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="AQ.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="RG.*"></disambig>
        </rule>
    </rulegroup>
    <rule id="AdvNom" name="adverbi i nom: no nom">
        <!-- llavors company. Excepció: tant com, tant (de) mal com  -->
        <pattern>
            <token><exception regexp="yes">tant|com</exception><exception postag="DN.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="RG.*" postag_regexp="yes"><exception regexp="yes">força|total</exception></token>
                    <token postag="N.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
        <example type="untouched">Una obra per a dos piano.</example>
    </rule>
    <rule id="AdjAdv" name="adjectiu i adverbi"> <!-- correctament primer. Excep: tant (de) mal -->
        <pattern>
            <token><exception regexp="yes">tant|com</exception><exception postag="DA.*" postag_regexp="yes"/></token>
            <marker>
                <and>
                    <token postag="RG.*" postag_regexp="yes"><exception>total</exception></token>
                    <token postag="A.*" postag_regexp="yes"><exception postag="_GN.*|CC" postag_regexp="yes"/></token>
                </and>
            </marker>
        </pattern>
        <disambig action="remove" postag="A.*"></disambig>
    </rule>
    <rule id="PronomAltres" name="pronom i altres: altres"> <!-- en què, el gener -->
        <pattern>
            <marker>
                <and>
                    <token postag="PP.*|P0.*" postag_regexp="yes"><exception postag="_GV_" /></token>
                    <token postag="DA.*|SPS00" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^P].*"></disambig>
    </rule>
    <rule id="GRANS" name="grans de cereals...">
        <pattern>
            <marker>
                <token postag="NC.*" postag_regexp="yes">grans<exception scope="previous" postag="NC.P.*" postag_regexp="yes"/></token>
            </marker>
            <token regexp="yes">de|d'</token>
            <token postag="NC.*" postag_regexp="yes"/>
        </pattern>
        <disambig action="filter" postag="N.*"/>
        <example type="untouched">Són fragments grans de membrana.</example>
    </rule>
    <rulegroup id="DEU" name="no és numeral si no ha concordat...">
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="DN0CP0">deu</token>
                        <token postag="V.*" postag_regexp="yes"><exception postag="_GN_.*|V.P.PM." postag_regexp="yes"/></token>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
    </rulegroup>
    <rule id="nNom2" name="no nom si no ha concordat">
        <pattern>
            <and>
                <token postag="N.*" postag_regexp="yes" regexp="yes">passa|salva|faig|dic|jeia|estaria|estaries|grossa|ros|suau|sobre|publicà|allò|parla|parles|deixa|deixes|torna|tornes|sabeu|seré|joves?|caus?|meritoris?|meritòri(a|es)|seca|resulta|porta|fou|grans?|surt|era|verticals?<exception postag="_GN_.*" postag_regexp="yes"/></token>
                <token postag="[AVCP].*|SPS00" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="filter" postag="[^N].*"/>
    </rule>
    <rule id="el_no_article" name="el no article"> <!-- el feu cantar -->
        <pattern>
            <marker>
                <and>
                    <token postag="DA.*" postag_regexp="yes"/>
                    <token postag="_GV_"/>
                </and>
            </marker>
            <and>
                <token postag="V.[SI].*" postag_regexp="yes"/>
                <token postag="_GV_"><exception postag="_GN_.*|N.*" postag_regexp="yes"/></token>
            </and>
        </pattern>
        <disambig action="filter" postag="[^D].*"></disambig>
    </rule>
    <rule id="en_no_preposicio" name="en no preposició"> <!-- en porti -->
        <pattern>
            <marker>
                <and>
                    <token postag="P.*" postag_regexp="yes">en</token>
                    <token postag="_GV_"/>
                </and>
            </marker>
            <and>
                <token postag="V.[MSI].*" postag_regexp="yes"/>
                <token postag="_GV_"><exception postag="_GN_.*|N.*" postag_regexp="yes"/></token>
            </and>
        </pattern>
        <disambig action="remove"><wd pos="SPS00"/></disambig>
    </rule>
    <rule id="duc_verb" name="duc verb o nom">
        <pattern>
            <token>que</token>
            <marker>
                <token postag="V.*" postag_regexp="yes">duc</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^N].*"></disambig>
    </rule>
    <rule id="EL_MES_x_POSSIBLE" name="el més gran possible">
        <pattern>
            <token postag="DA.*" postag_regexp="yes"/>
            <token regexp="yes">més|menys</token>
            <token postag="AQ.*" postag_regexp="yes"/>
            <marker>
                <token postag="AQ.*" postag_regexp="yes" regexp="yes">possibles?</token>
            </marker>
        </pattern>
        <disambig action="filter"  postag="AQ.*"/>
    </rule>
    <rule id="adjectius_que_concorden" name="adjectius que concorden, però no hi ha nom">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <token postag="V.P.*|A.*" postag_regexp="yes"><exception postag="_GN_.*|_GV_" postag_regexp="yes"/></token>
                <token postag="V.P.*|A.*" postag_regexp="yes"><exception postag="_GN_.*|_GV_" postag_regexp="yes"/></token>
            </unify>
        </pattern>
        <disambig action="unify"/>
    </rule>
    <rule id="Nom_AdjectiuNoConcorda2" name="nom + adjectiu, que no han concordat (comú)">
        <!-- EXEMPLE D'UTILITAT:Dóna-hi l'últim ullada. Exception: recent (erroni com a adverbi), "recent casats"
            Problema: dos adjectius que concorden, però no són etiquetats amb _GN_ -->
        <pattern>
            <token><exception postag="N.*" postag_regexp="yes"/></token>
            <token postag="V.P.*|A.*" postag_regexp="yes"><exception postag="N.*" postag_regexp="yes"/><exception>recent</exception><exception inflected="yes" regexp="yes">poder|voler|saber</exception></token>
            <marker>
                <and>
                    <token postag="N.*" postag_regexp="yes"></token>
                    <token postag="V.P.*" postag_regexp="yes"><exception postag="_GN.*|SPS00|V.[GMIS].*|CC" postag_regexp="yes" /><exception inflected="yes">donar</exception></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="N.*"></disambig>
    </rule>
    <!-- *****????????? mides moderades construït, El feminisme d'arrel il·lustrada reclama -->
    <!--   <rule id="VerbNomVerb" name="verbnom + verb">
        <pattern>
        <marker>
        <and>
        <token postag="V.[IS].*" postag_regexp="yes"></token>
        <token postag="_GN.*" postag_regexp="yes"><exception postag="_GV_"/></token>
        </and>
        </marker>
        <and>
        <token postag="V.*" postag_regexp="yes"/>
        <token postag="N.*" postag_regexp="yes" negate_pos="yes"/>
        </and>
        </pattern>
        <disambig action="filter" postag="[^V].*"></disambig>
        </rule>
    -->
    <rule id="AiN" name="adjectiu i nom: adjectiu (algunes paraules?) comú">
        <pattern>
            <and>
                <token postag="A.*" postag_regexp="yes" inflected="yes">comú</token>
                <token postag="N.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /></token>
            </and>
        </pattern>
        <disambig action="filter" postag="A.*" />
    </rule>
    <rule id="en_article" name="En article">
        <pattern>
            <unify>
                <feature id="nombre"/>
                <feature id="genere"/>
                <marker>
                    <and>
                        <token postag="DA.*" postag_regexp="yes">en</token>
                        <token postag="SPS.*" postag_regexp="yes"></token>
                    </and>
                </marker>
                <token postag="NP..SP0" postag_regexp="yes"/>
            </unify>
        </pattern>
        <disambig action="filter" postag="DA.*|_GN.*"></disambig>
    </rule>
    <rule id="en_no_article" name="En no article">
        <pattern>
            <marker>
                <and>
                    <token postag="DA.*" postag_regexp="yes">en</token>
                    <token postag="SPS.*" postag_regexp="yes"></token>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="SPS.*"></disambig>
    </rule>
    <rulegroup id="interjeccio_nom" name="interjecció i nom">
        <rule>
            <pattern>
                <token>,</token>
                <marker>
                    <token postag="I"><exception postag="_GN.*|DA.*" postag_regexp="yes" /></token>
                </marker>
                <token postag="N.*" postag_regexp="yes" />
            </pattern>
            <disambig action="filter" postag="I" />
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" />
                <marker>
                    <token postag="I"><exception postag="_GN.*|DA.*" postag_regexp="yes" /></token>
                </marker>
                <token postag="N.*" postag_regexp="yes" />
            </pattern>
            <disambig action="filter" postag="I" />
        </rule>
    </rulegroup>
    <rulegroup id="interjeccio" name="interjeccions">
        <rule>
            <pattern>
                <token postag="SENT_START|CC|_PUNCT.*" postag_regexp="yes"/>
                <marker>
                    <token>vaja</token>
                </marker>
                <token postag="CC|_PUNCT.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="replace" postag="I" />
        </rule>
    </rulegroup>
    <rule id="PI_N" name="pronom indefinit i nom">
        <pattern>
            <and>
                <token postag="NC.*" postag_regexp="yes"><exception postag="_GN.*" postag_regexp="yes" /></token>
                <token postag="PI.*" postag_regexp="yes" />
            </and>
        </pattern>
        <disambig action="filter" postag="[^N].*" />
    </rule>
    <!-- paraules concretes-->
    <rule id="segons5" name="segons + verb">
        <pattern>
            <marker>
                <token postag="CS">segons</token>
            </marker>
            <token postag="V.[IS].*" postag_regexp="yes"></token>
        </pattern>
        <disambig action="filter" postag="CS"></disambig>
    </rule>
    <rule id="segons5b" name="segons + verb">
        <pattern>
            <marker>
                <token postag="CS">segons</token>
            </marker>
            <token postag="P0.*|PP.*" postag_regexp="yes"><exception postag="_GN_.*" postag_regexp="yes"/><exception regexp="yes">jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</exception></token>
        </pattern>
        <disambig action="filter" postag="CS"></disambig>
    </rule>
    <rule id="segons6" name="segons preposició">
        <pattern>
            <marker>
                <token postag="SPS00">segons</token>
            </marker>
        </pattern>
        <disambig action="filter" postag="SPS00"></disambig>
    </rule>
    <rule id="PronomNom2" name="nom i pronom">
        <!-- jo, mi, la, te, ens. Excepció: de te.  -->
        <pattern>
            <marker>
                <and>
                    <token postag="PP.*" postag_regexp="yes"/>
                    <token postag="N.*" postag_regexp="yes">te</token>
                    <token postag="_GN_.*" postag_regexp="yes"/>
                </and>
            </marker>
        </pattern>
        <disambig action="filter" postag="[^P].*"></disambig>
    </rule>
    <rulegroup id="fa_x_temps2" name="fa tres anys, molt de temps">
        <!--  segona passada de la regla: per a evitar les excepcions de Verbs
            TODO: Això va dir Fuster fa més de 35 anys.
            |NP..SP.*  PI0CS000| -->
        <rule>
            <pattern>
                <token><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception><exception regexp="yes">què|quant</exception></token>
                <marker>
                    <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="12">fer<exception postag=".*LOC_ADV.*" postag_regexp="yes"/><exception scope="next" regexp="yes">que|en</exception><exception scope="next" postag="_PUNCT.*" postag_regexp="yes">,</exception><exception postag="V.[MSI].*|_GV_|DA.*" postag_regexp="yes" scope="next"/></token>
                </marker>
                <token regexp="yes">segons?|minuts?|hor(a|es)|di(a|es)|setman(a|es)|mes|mesos|(tri|quadri|se)mestres?|anys?|lustres?|dècad(a|es)|segles?|mil·lennis?|moments?|instants?|temps|estona</token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
                <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="12">fer<exception scope="next" regexp="yes">que|en</exception><exception scope="next" postag="_PUNCT.*" postag_regexp="yes">,</exception><exception postag="V.[MSI].*|_GV_|DA.*" postag_regexp="yes" scope="next"/></token>
                <marker>
                    <token regexp="yes">segons?|minuts?|hor(a|es)|di(a|es)|setman(a|es)|mes|mesos|(tri|quadri|se)mestres?|anys?|lustres?|dècad(a|es)|segles?|mil·lennis?|moments?|instants?|temps|estona</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="&lt;/LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="NP..SP.*|&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
                <marker>
                    <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="1">fer<exception postag=".*LOC_ADV.*" postag_regexp="yes"/><exception scope="next" regexp="yes">,|que|en</exception><exception postag="V.[MSI].*|_GV_" postag_regexp="yes" scope="next"/></token>
                </marker>
                <token regexp="yes">molt|poc</token>
                <token><exception regexp="yes">difícil|fàcil</exception></token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="&pronom_feble;" postag_regexp="yes" regexp="yes">[^'-].+</exception></token>
                <token postag="V.I[PI]3S0.?" postag_regexp="yes" inflected="yes" skip="1">fer<exception scope="next" regexp="yes">,|que|en</exception><exception postag="V.[MSI].*|_GV_" postag_regexp="yes" scope="next"/></token>
                <marker>
                    <token regexp="yes">molt|poc</token>
                </marker>
                <token><exception regexp="yes">difícil|fàcil</exception></token>
            </pattern>
            <disambig action="add"><wd pos="&lt;/LOC_ADV&gt;"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>no</token>
                <token regexp="yes">fa|feia</token>
                <token>tant</token>
            </pattern>
            <disambig action="add"><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;LOC_ADV&gt;"/><wd pos="&lt;/LOC_ADV&gt;"/></disambig>
        </rule>
    </rulegroup>
    <rule id="car" name="car (si no ha concordat com a nom o adjectiu)">
        <pattern>
            <token><exception postag="RG.*" postag_regexp="yes"/></token>
            <marker>
                <token postag="CC">car<exception postag="_GN_.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="CC"></disambig>
    </rule>
    <rule id="cert" name="cert: no determinant si no ha concordat">
        <pattern>
            <!-- <token><exception postag="RG.*" postag_regexp="yes"/></token> -->
            <marker>
                <token postag="AQ.*" postag_regexp="yes" inflected="yes">cert<exception postag="_GN_.*" postag_regexp="yes"/></token>
            </marker>
        </pattern>
        <disambig action="filter" postag="AQ.*"/>
    </rule>
    <!--     <rule id="tant_x_com" name="tant + __ + com">
        <pattern>
        <marker>
        <token>tant</token>
        </marker>
        <token skip="-1"></token>
        <token>com</token>
        </pattern>
        <disambig>
        <match no="1" postag_regexp="yes" postag="RG"></match>
        </disambig>
        </rule> -->
    <rule id="elsuns_x_elsaltres" name=" (els) uns + prep + els altres">
        <pattern>
            <token skip="1">uns</token>
            <marker>
                <token postag="SP.*" postag_regexp="yes" skip="1"></token>
            </marker>
            <token>altres</token>
        </pattern>
        <disambig>
            <match no="1" postag_regexp="yes" postag="SP.*"></match>
        </disambig>
    </rule>
    <!--     <rule id="lun_x_laltre" name=" un __ l'altre">
        cal millorar-la
        <pattern>
        <token>un</token>
        <token skip="3"></token>
        <marker>
        <token>altre</token>
        </marker>
        </pattern>
        <disambig><match no="3" postag_regexp="yes" postag="P.*|_GN_MS"></match></disambig>
        </rule> -->
    <!--   <rule id="buidaGN" name="elimina etiquetes GN">
        <pattern>
        <token></token>
        </pattern>
        <disambig action="filter" postag="[^_].*"></disambig>
        </rule>
    -->
    <rule id="tant_no_determinant" name="tant no determinant">
        <pattern>
            <marker>
                <token postag="DI0MS0">tant<exception postag="_GN_MS"/></token>
            </marker>
            <token><exception postag="[NA].*" postag_regexp="yes"/><exception inflected="yes">de</exception></token>
        </pattern>
        <disambig action="filter" postag="[^D].*"></disambig>
    </rule>
    <rulegroup id="CASOS_CONCRETS" name="alguns casos concrets">
        <rule id="mostres" name="mostra/mostres de">   <!-- és generalitzable? -->
            <pattern>
                <marker>
                    <and>
                        <token postag="V.*" postag_regexp="yes" regexp="yes">mostres|mostra</token>
                        <token postag="NC.*" postag_regexp="yes"/>
                    </and>
                </marker>
                <token regexp="yes">de|d'</token>
            </pattern>
            <disambig action="filter" postag="NC.*"></disambig>
        </rule>
    </rulegroup>
    <!-- Útils per a algunes regles  -->
    <rulegroup id="diferent_del_del" name="diferent del del">
        <rule>
            <pattern>
                <token regexp="yes">diferents?|distint(s|a|es)?</token>
                <marker>
                    <token>de</token>
                </marker>
                <token postag="DA.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_repetition"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <token>diferència</token>
                <marker>
                    <token>de</token>
                </marker>
                <token postag="DA.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_repetition"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="genitiu_saxo" name="permet el genitiu saxó">
        <pattern>
            <token regexp="yes">\p{Lu}.+</token>
            <marker>
                <token spacebefore="no" regexp="yes">[’']s</token>
            </marker>
        </pattern>
        <disambig action="add"><wd pos="allow_saxon_genitive"></wd></disambig>
    </rule>
    <rulegroup id="nom_en_complement" name="nom en complement">
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <marker>
                    <token postag="N.*|PI.*|PD.*" postag_regexp="yes"><exception>molt</exception></token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
            <example type="untouched">S'estan convertint en molt extremistes</example>
        </rule>
        <rule>
            <pattern>
                <token>com</token>
                <marker>
                    <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="D[ADI].*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="DA.*" postag_regexp="yes"/>
                    <token postag="PX.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="D[ADI].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <!-- Durant el període medieval gremis d'artesans -->
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <and>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token>
                        <token postag="complement" postag_regexp="yes"/>
                    </and>
                    <marker>
                        <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <and>
                        <token postag="N.*|PI.*|PD.*" postag_regexp="yes"><exception postag="DI.*" postag_regexp="yes"/></token>
                        <token postag="complement" postag_regexp="yes"/>
                    </and>
                    <token postag="RG_anteposat"/>
                    <marker>
                        <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes"><exception>a</exception></token>
                <marker>
                    <token postag="PD0NS000"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement"></wd></disambig>
        </rule>
        <!--  complement regit per la preposició 'a' -->
        <rule>
            <pattern>
                <token>a</token>
                <marker>
                    <token postag="N.*|PI.*|PD.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <token postag="D[ADI].*" postag_regexp="yes"/>
                <marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="DA.*" postag_regexp="yes"/>
                    <token postag="PX.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="D[ADI].*" postag_regexp="yes"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="N.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <marker>
                    <token postag="PD0NS000"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="complement_a" postag_regexp="yes"/>
                    </and>
                    <marker>
                        <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <and>
                        <token postag="N.*" postag_regexp="yes"/>
                        <token postag="complement_a" postag_regexp="yes"/>
                    </and>
                    <token postag="RG_anteposat"/>
                    <marker>
                        <token postag="A.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="complement_a"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCF.*" postag_regexp="yes"/>
                    <token postag="complement.*" postag_regexp="yes"/>
                </and>
                <token>i</token>
                <marker>
                    <token>mitja</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="complement"/></disambig>
        </rule>
        <rule>
            <pattern>
                <and>
                    <token postag="NCM.*" postag_regexp="yes"/>
                    <token postag="complement.*" postag_regexp="yes"/>
                </and>
                <token>i</token>
                <marker>
                    <token>mig</token>
                </marker>
            </pattern>
            <disambig action="replace"><wd pos="complement"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>cada</token>
                <marker>
                    <token postag="N.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="complement_cada"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="adj_ignore_concordance" name="adjectiu que ja acomopanya un nom">
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    <marker>
                        <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    <token regexp="yes">i|o|ni|,</token>
                    <marker>
                        <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token postag="N.*" postag_regexp="yes"/>
                    <token postag="RG_anteposat" />
                    <marker>
                        <token postag="A.*|PX.*|V.P.*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <unify>
                    <feature id="genere"/>
                    <feature id="nombre"/>
                    <token regexp="yes">jo|mi|tu|ella?|nosaltres|vosaltres|elle?s|vost[èé]s?|vós</token>
                    <marker>
                        <token inflected="yes">mateix</token>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="tot_toponim" name="tot + topònim">
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">tot|mig</token>
                </marker>
                <token postag="NPFSG00"/>
            </pattern>
            <disambig action="add"><wd pos="allow_masculine"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="mon_ton_son" name="mon ton son: no són determinants si no han concordat">
        <rule>
            <pattern>
                <token postag="DP.MS.*" postag_regexp="yes"><exception postag="_GN_MS"/></token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="DP.FS.*" postag_regexp="yes"><exception postag="_GN_FS"/></token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="DP.MP.*" postag_regexp="yes"><exception postag="_GN_MP"/></token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="DP.FP.*" postag_regexp="yes"><exception postag="_GN_FP"/></token>
            </pattern>
            <disambig action="filter" postag="[^D].*"/>
        </rule>
    </rulegroup>
    <rulegroup id="una_vegada" name="locució una vegada/volta/cop">
        <rule>
            <pattern>
                <token>una</token>
                <marker>
                    <token regexp="yes" skip="2">vegada|volta</token>
                </marker>
                <token postag="_GN_.*|V.[PSI].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_loc_unavegada"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>un</token>
                <marker>
                    <token skip="2" regexp="yes">col?p</token>
                </marker>
                <token postag="_GN_.*|V.[PSI].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_loc_unavegada"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="tant_x_com" name="tant + __ + com + __">
        <rule>
            <!-- Dificultats: és tan(t) important com bonic -->
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="A.*|V.P.*|PX.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="A.*|V.P.*|PX.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token>no</token>
                <token postag="A.*|V.P.*|PX.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <!-- tant partidaris com opositors -->
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="N.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" skip="1">tant?|tantes|tants</token>
                <token postag="N.*" postag_regexp="yes" skip="20"/>
                <marker>
                    <token>com</token>
                </marker>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_com"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="N.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token>no</token>
                <token postag="N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <!-- Tant fora com dins del Japó -->
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="RG|.*LOC_ADV.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token postag="RG|.*LOC_ADV.*" postag_regexp="yes" />
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <!-- Tant jurídicament com en la realitat -->
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="RG" skip="20"/>
                <token>com</token>
                <token postag="SPS00"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <!--  coneixements tant científics com de les més variades disciplines-->
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="A.*|V.P.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token inflected="yes">de</token>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>tant</token>
                </marker>
                <token postag="SPS00|.*LOC_PREP.*" postag_regexp="yes" skip="20"/>
                <token>com</token>
                <token postag="SPS00|.*LOC_PREP.*|RG" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="allow_tant"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="com_més__més" name="com més __ + més +adj">
        <rule>
            <pattern>
                <token>com</token>
                <token skip="-1" regexp="yes">més|menys</token>
                <token regexp="yes">més|menys</token>
                <marker>
                    <token postag="AQ.*" postag_regexp="yes"/>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="ignore_concordance"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="QUE_COMPARATIU" name="'que' com a comparatiu">
        <!-- Excepcions amb "tenir, haver-hi, trobar..." ?? -->
        <!-- arriba un |moment|instant, tal punt
            no tenia cap altra missió que inculcar-li disciplina,
            no tenia cap altra missió que inculcar-li,
            cap altre objectiu...
            hi ha evidències que ingerir àcid palmític incrementa el risc
            hi ha evidències que considerar abans,
            d'acord que copiar-les
            de manera que situar-les /resolt
            La possibilitat teòrica i tècnica que viatjar en el temps ens permetés
            Després d'arribar a la conclusió que ser un músic i un artista era el mateix
            L'afer es complica pel fet que marcar o desmarcar-se d'un usuari com "amic"
        -->
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="5">tenir|trobar<exception scope="next" inflected="yes" regexp="yes">&exceptions_QUE_COMPARATIU;</exception></token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"><exception>haver</exception></token>
            </pattern>
            <disambig action="add"><wd pos="no_comparatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="1">hi</token>
                <token inflected="yes" skip="5">haver<exception scope="next" inflected="yes" regexp="yes">&exceptions_QUE_COMPARATIU;</exception></token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"><exception>haver</exception></token>
            </pattern>
            <disambig action="add"><wd pos="no_comparatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes">haver</token>
                <token skip="5">-hi<exception scope="next" inflected="yes" regexp="yes">&exceptions_QUE_COMPARATIU;</exception></token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"><exception>haver</exception></token>
            </pattern>
            <disambig action="add"><wd pos="no_comparatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="5" regexp="yes">arribar|des</token>
                <token regexp="yes">moments?|instants?|punts?</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="relatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">haver</token>
                <token>dubte</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="relatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1" regexp="yes">fer|donar</token>
                <token regexp="yes">efecte|impressió</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="relatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">fer</token>
                <token regexp="yes" inflected="yes">&unitats_temps;</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="relatiu" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="5" regexp="yes">fet|possibilitat|conclusió|evidència|prova|acord</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="conjuncio" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="10" regexp="yes">concloure|conclusió|evidència|pressentir|pressentiment|sensació|sospitar|sospita|dir|sostenir|afirmar|aclarir|explicar|contar|pensar|creure</token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="conjuncio" lemma="que"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="20">abans|més|menys|altre|mateix|igual|major|menor|tan|tant|pitjor|millor</token>
                <marker>
                    <token>que<exception postag="no_comparatiu"/></token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"></token>
            </pattern>
            <disambig action="add"><wd pos="comparatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>que<exception postag="no_comparatiu"/></token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes" skip="15"></token>
                <token inflected="yes" regexp="yes">més|menys|altre|mateix|igual|major|menor|tan|tant|pitjor|millor</token>
            </pattern>
            <disambig action="add"><wd pos="comparatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START" skip="-1"/>
                <token postag="V.N.*" postag_regexp="yes" skip="10"><exception scope="previous" postag="VA.*" postag_regexp="yes"/><exception>haver</exception></token>
                <marker>
                    <token>que</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="comparatiu"></wd></disambig>
        </rule>
    </rulegroup>
    <rule id="REPEATED_NEGATION" name="negació repetida">
        <pattern>
            <token skip="5">no<exception scope="next" postag="_PUNCT.*" postag_regexp="yes"/></token>
            <marker>
                <token>no</token>
            </marker>
        </pattern>
        <disambig action="add"><wd pos="repeated_negation"></wd></disambig>
    </rule>
    <rule id="REPEATED_QUAN" name="'quan' repetit">
        <pattern>
            <token skip="25">quan<exception scope="next" postag="_PUNCT.*" postag_regexp="yes"/></token>
            <marker>
                <token>quan</token>
            </marker>
        </pattern>
        <disambig action="add"><wd pos="repeated"></wd></disambig>
    </rule>
    <rulegroup id="meitat_meitat" name="meitat home meitat dona">
        <rule>
            <pattern>
                <marker>
                    <token skip="3">meitat</token>
                </marker>
                <token>meitat</token>
            </pattern>
            <disambig action="add"><wd pos="_loc_meitat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="3">meitat</token>
                <marker>
                    <token>meitat</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_loc_meitat"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="NO_RELATIU" name="no hi ha estructura de relatiu">
        <rule>
            <pattern>
                <token>d'</token>
                <token>acord</token>
                <marker>
                    <token regexp="yes">en|amb|sobre</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">desacord|compte</token>
                <marker>
                    <token regexp="yes">amb|sobre</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">en|per</token>
                <token>comparació</token>
                <marker>
                    <token regexp="yes">amb|de|d'|a</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">combinar|relacionar</token>
                <marker>
                    <token>amb</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">en|amb</token>
                <token>relació</token>
                <marker>
                    <token regexp="yes">amb|a</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">corresponent|invers|dret|referent|proper|pròxim|previ|oposar|contrari|igual|similar|semblant|anàleg|idèntic|equivalent|equiparable|alternatiu|superior|inferior|paral·lel|anterior|posterior</token>
                <marker>
                    <token>a</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes">donar|fer</token>
                <token regexp="yes">origen|front</token>
                <marker>
                    <token>a</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token inflected="yes" skip="1">fer</token>
                <token regexp="yes">cas|càrrec|esment</token>
                <marker>
                    <token regexp="yes">a|de|d'</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">.*%|abans|després|compliment|equivalent|part|comparació|diferents?|distint(s|a|es)?|nord|sud|oest|est|centre|doble|triple|precedent|millor|contraris?</token>
                <marker>
                    <token>de</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="4" regexp="yes" inflected="yes">distingir|diferenciar|separar|destriar</token>
                <marker>
                    <token>de</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token skip="1" inflected="yes">exemple</token>
                <marker>
                    <token>de</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" skip="5">més|menys</token>
                <marker>
                    <token>de</token>
                </marker>
                <token postag="DA.*" postag_regexp="yes"/>
                <token>que</token>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token>a</token>
                <token>tenor</token>
                <marker>
                    <token>de</token>
                </marker>
                <token postag="DA.*" postag_regexp="yes"/>
                <token>que</token>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>pe</token>
                </marker>
                <token>l</token>
                <token>que</token>
                <token regexp="yes">fa|feia</token>
                <token>a</token>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>excepte</token>
                </marker>
                <token postag="DA.*" postag_regexp="yes"></token>
                <token>que</token>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">sense?</token>
                <token regexp="yes">perjudici|perjuí</token>
                <marker>
                    <token>de</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_no_relatiu"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="de_complement_directe" name="de complement directe: mireu de trobar">
        <rule>
            <pattern>
                <token inflected="yes" regexp="yes" skip="5">mirar|intentar|permetre|decidir</token>
                <marker>
                    <token regexp="yes">de|d'</token>
                </marker>
                <token postag="V.N.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_complement_directe"></wd></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="INTERROGATIUS" name="pronoms interrogatius">
        <rule id="qui" name="els qui">
            <pattern>
                <token postag="D[DA].*" postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="PT.*" postag_regexp="yes">qui</token>
                        <token postag="PR.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="PR.*"/>
        </rule>
        <rule id="QUAN_INTERROGATIU" name="'quan' interrogatiu">
            <pattern>
                <marker>
                    <token>quan</token>
                </marker>
                <token postag="SENT_END|CC|_PUNCT.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="PT.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="SUBJUNTIU_IMPERATIU" name="subjuntiu/imperatiu">
        <rule id="subj_imp_valencia" name="verb subjuntiu (valencià) i imperatiu (general): digues, sigues">
            <pattern>
                <token postag="PR.*" postag_regexp="yes" skip="2"><exception scope="next" postag="&pronom_feble;|SENT_END|V.*|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <and>
                        <token postag="V.S.*" postag_regexp="yes"><exception postag="V.I.*" postag_regexp="yes"/></token>
                        <token postag="V.M.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.S.*"/>
        </rule>
        <rule id="no_subj_imp" name="no + subjuntiu/imperatiu">
            <pattern>
                <token skip="2">no<exception scope="next" postag="&pronom_feble;|SENT_END|V.*|_GV_" postag_regexp="yes" negate_pos="yes"/></token>
                <marker>
                    <and>
                        <token postag="V.S.*" postag_regexp="yes"/>
                        <token postag="V.M.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V.[^M].*"/>
        </rule>
        <rule>
            <pattern>
                <token postag="SENT_START"/>
                <marker>
                    <and>
                        <token postag="V.S.*" postag_regexp="yes"/>
                        <token postag="V.M.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.S.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">[;,\(]</token>
                <marker>
                    <and>
                        <token postag="V.S.*" postag_regexp="yes"/>
                        <token postag="V.M.*" postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="remove" postag="V.S.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="primera_tercera_persona" name="verb primera o tercera persona">
        <rule>
            <pattern>
                <token regexp="yes">es|se|s'|hom|ella?</token>
                <marker>
                    <and>
                        <token postag="V...1S.." postag_regexp="yes"/>
                        <token postag="V...3S.." postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V...[^1]...|_.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">se|s'|hom|ella?</token>
                <token postag="&pronom_feble;|PP[12]C[SP]000" postag_regexp="yes"/>
                <marker>
                    <and>
                        <token postag="V...1S.." postag_regexp="yes"/>
                        <token postag="V...3S.." postag_regexp="yes"/>
                    </and>
                </marker>
            </pattern>
            <disambig action="filter" postag="V...[^1]...|_.*"/>
        </rule>
    </rulegroup>
    <rulegroup id="HAC_ASPIRADA" name="hac aspirada inicial">
        <rule>
            <pattern>
                <token postag="NP.*" postag_regexp="yes" regexp="yes">(?-i)Han<exception postag="_GV_"/></token>
            </pattern>
            <disambig action="add"><wd pos="hac_aspirada"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token postag="I">ha<exception postag="_GV_"/></token>
            </pattern>
            <disambig action="add"><wd pos="hac_aspirada"/></disambig>
        </rule>
    </rulegroup>
    <!-- <rulegroup id="MOT_FORASTER" name="paraula no catalana">
        <rule>
        <pattern>
        <token postag="UNKNOWN" regexp="yes">.*ñ.*|.*á.*|.+ón|.+ía|.+íes|.+ch.+</token>
        </pattern>
        <disambig action="add"><wd pos="mot_foraster"></wd></disambig>
        </rule>
        <rule>
        <pattern>
        <token>agua</token>
        </pattern>
        <disambig action="add"><wd pos="mot_foraster"></wd></disambig>
        </rule>
        </rulegroup> -->
    <rulegroup id="verb_reflexiu" name="verb acompanyat de pronom reflexiu">
        <rule>
            <pattern>
                <unify>
                    <feature id="nombre"/>
                    <feature id="persona"/>
                    <token postag="P0.0.*" postag_regexp="yes" skip="1"><exception scope="next" negate_pos="yes" postag="V.[SI].*|PP3CN000|_GV_|_perfet|SENT_END" postag_regexp="yes"/></token>
                    <marker>
                        <token postag="V.[SI].*" postag_regexp="yes"/>
                    </marker>
                </unify>
            </pattern>
            <disambig action="add"><wd pos="_reflexiu"></wd></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <and>
                        <token postag="VM..1S0.?" postag_regexp="yes" inflected="yes" skip="3">caure</token>
                        <token postag="VM..3S0.?" postag_regexp="yes"/>
                    </and>
                </marker>
                <token postag="PD.*|PI.*|_GN.*" postag_regexp="yes"/>
            </pattern>
            <disambig action="filter" postag="V...[^1]...?|_reflexiu|_GV_"/>
        </rule>
        <rule>
            <pattern>
                <token><exception>jo</exception></token>
                <marker>
                    <and>
                        <token postag="VM..1S0.?" postag_regexp="yes" inflected="yes" skip="3" regexp="yes">caure|venir|anar</token>
                        <token postag="VM..3S0.?" postag_regexp="yes"/>
                    </and>
                </marker>
                <token>bé</token>
            </pattern>
            <disambig action="filter" postag="V...[^1]...?|_reflexiu|_GV_"/>
        </rule>
    </rulegroup>
    <rule id="endurar" name="endur/endurar">
        <pattern>
            <and>
                <token postag="_reflexiu"/>
                <token inflected="yes">endurar</token>
                <token inflected="yes">endur</token>
            </and>
        </pattern>
        <disambig action="remove"><wd lemma="endurar"/></disambig>
    </rule>
    <rulegroup id="femeni_inusual" name="femení inusual: amor, color...">
        <rule>
            <pattern>
                <token regexp="yes">&femeni_inusual;<exception postag=".*_GN_.*|.*LOC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GN_MS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes">(&femeni_inusual;)s<exception postag=".*_GN_.*|.*LOC.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GN_MP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="masculi_inusual" name="masculí inusual: policia, part, justícia...">
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes" postag="NC.S.*" postag_regexp="yes">&masculi_inusual;<exception postag=".*_GN_.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="remove" postag="NCM.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes" postag="NC.P.*" postag_regexp="yes">&masculi_inusual;<exception postag=".*_GN_.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="remove" postag="NCM.*"/>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes" postag="NC.S.*" postag_regexp="yes">&masculi_inusual;<exception postag=".*_GN_.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GN_FS"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes" postag="NC.P.*" postag_regexp="yes">&masculi_inusual;<exception postag=".*_GN_.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="_GN_FP"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="possible_nom_propi" name="possible nom propi">
        <rule>
            <pattern>
                <token><exception postag="SENT_START"/><exception regexp="yes">[—–\-]</exception><exception regexp="yes">[¿¡"'«»‘“:]</exception></token>
                <marker>
                    <token postag="AQ.*|DA.*|PP.*|P0.*|V.[GMSIP].*|N.*|RG|DP.*|SPS00" postag_regexp="yes" regexp="yes">\p{Lu}.*</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_possible_nompropi"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token><exception postag="SENT_START"/></token>
                <token spacebefore="no">-</token>
                <marker>
                    <token spacebefore="no" postag="AQ.*|DA.*|PP.*|P0.*|V.[GMSI].*|N.*|RG|DP.*|SPS00" postag_regexp="yes" regexp="yes">\p{Lu}.*</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_possible_nompropi"/></disambig>
        </rule>
    </rulegroup>
    <rule id="calen_foc" name="calen foc">
        <pattern>
            <marker><token>calen</token></marker>
            <token>foc</token>
        </pattern>
        <disambig action="remove"><wd lemma="caldre" pos="VMIP3P00"></wd></disambig>
    </rule>
    <rulegroup id="marca_passat" name="marca de passat (ahir, l'any passat...)">
        <rule>
            <pattern>
                <token regexp="yes" inflected="yes">any|mes|setmana|dècada</token>
                <marker>
                    <token postag="V.P.*" postag_regexp="yes" inflected="yes">passar</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_marca_passat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">(despús-|abans-d')?ahir</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_marca_passat"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="lo_admissible" name="Tirant lo Blanc">
        <rule>
            <pattern case_sensitive="yes">
                <token>Tirant</token>
                <marker>
                    <token>lo</token>
                </marker>
                <token regexp="yes">Blanch?</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token>Déu</token>
                <marker>
                    <token>lo</token>
                </marker>
                <token>guard</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>Lo</token>
                </marker>
                <token skip="1">Rat</token>
                <token>Penat</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
    </rulegroup>
    <rulegroup id="DEU_VOS_GUARD" name="Déu vos guard">
        <rule>
            <pattern>
                <token skip="2">Déu</token>
                <marker>
                    <token regexp="yes">(re)?guard</token>
                </marker>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>valga</token>
                </marker>
                <token regexp="yes">'ns|'m</token>
                <token>Déu</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern>
                <token>rock</token>
                <marker>
                    <token regexp="yes">['’]</token>
                    <token>n</token>
                    <token regexp="yes">['’]</token>
                </marker>
                <token>roll</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>
        <rule>
            <pattern>
                <token>rock</token>
                <marker>
                    <token regexp="yes">['’]n</token>
                    <token regexp="yes">['’]</token>
                </marker>
                <token>roll</token>
            </pattern>
            <disambig action="immunize"/>
        </rule>

    </rulegroup>
    <rulegroup id="allowed_repetitions" name="repeticions permeses">
        <!-- girar el cap cap a l’altra persona -->
        <rule>
            <pattern>
                <token>cada</token>
                <marker>
                    <token regexp="yes">una?</token>
                </marker>
                <token><match no="1"/></token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token regexp="yes">parlant|r[eo]dolant|adés|així|ai|Bío</token>
                </marker>
                <token><match no="0"/></token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>de</token>
                <marker>
                    <token>totes</token>
                </marker>
                <token>totes</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <!--<token>per</token>-->
                <marker>
                    <token>damunt</token>
                </marker>
                <token>damunt</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>de</token>
                <marker>
                    <token>de</token>
                </marker>
                <token>Gaulle</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token>de</token>
                <marker>
                    <token>De</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <token>en</token>
                <marker>
                    <token>en</token>
                </marker>
                <token regexp="yes">\p{Lu}.+</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern>
                <marker>
                    <token>els</token>
                </marker>
                <token>els</token>
                <token postag="V.[IS].*" postag_regexp="yes"/>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>I</token>
                </marker>
                <token>i</token>
                <!-- <token regexp="yes">[A-Z]|(?=.)M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})</token> -->
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <!-- <token regexp="yes">[A-Z]|(?=.)M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})</token> -->
                <marker>
                    <token>i</token>
                </marker>
                <token>I</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <!-- <rule> Maximilià I i Joan II.
            <pattern case_sensitive="yes">
            <token postag="NP..SP." postag_regexp="yes"/>
            <token regexp="yes">segle|\p{Lu}.+</token>
            <token>I</token>
            <marker>
            <token>i</token>
            </marker>
            </pattern>
            <disambig action="immunize"/>
            </rule> -->
        <rule>
            <pattern>
                <token>de</token>
                <token>la</token>
                <marker>
                    <token>a</token>
                </marker>
                <token>a</token>
                <token>la</token>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <token>Torres</token>
                <marker>
                    <token>Torres</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="_allow_repeat"/></disambig>
        </rule>
    </rulegroup>
    <rulegroup id="LOC_ADV_TEMPS" name="locacions adverbials de temps, sense filtrar">
        <rule id="uns__despres" name="uns ... després">
            <pattern>
                <marker>
                    <token postag="D[IN].*" postag_regexp="yes" skip="3"><exception postag="LOC_ADV_TEMP"/><exception scope="next" postag="_PUNCT.*" postag_regexp="yes"/></token>
                </marker>
                <token regexp="yes" inflected="yes" skip="2">&unitats_temps;</token>
                <token regexp="yes">després|abans|(en|ar|endar)(rer[ea])<exception scope="previous" postag="C.*" postag_regexp="yes"/></token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="uns__mestard" name="uns ... més tard">
            <pattern>
                <marker>
                    <token postag="D[IN].*" postag_regexp="yes" skip="3"><exception postag="LOC_ADV_TEMP"/><exception scope="next" postag="_PUNCT.*" postag_regexp="yes"/></token>
                </marker>
                <token regexp="yes" inflected="yes" skip="2">&unitats_temps;</token>
                <token>més</token>
                <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="anys_despres" name="anys/dies/hores/minuts... després">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <token regexp="yes" inflected="yes" postag="NC.P.*|[PD]I.MS.*" postag_regexp="yes">&unitats_temps;</token>
                    <token regexp="yes">després|abans|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="mes_tard" name="més tard">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/><exception regexp="yes" inflected="yes">&unitats_temps;</exception></token>
                <marker>
                    <token>més</token>
                    <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="prou_mes_tard" name="prou més tard">
            <pattern>
                <marker>
                    <token regexp="yes">prou|bastant|molt</token>
                    <token>més</token>
                    <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="anys_mes_tard" name="anys/dies/hores/minuts... més tard">
            <pattern>
                <token postag="N.*" postag_regexp="yes"><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <token regexp="yes" inflected="yes">&unitats_temps;</token>
                    <token>més</token>
                    <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="uns_anys_mes_tard" name="uns anys/dies/hores/minuts... més tard">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">&unitats_temps;</token>
                    </unify>
                    <token>més</token>
                    <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="uns_anys_despres" name="anys/dies/hores/minuts... més tard">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">&unitats_temps;</token>
                    </unify>
                    <token regexp="yes">després|abans|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="uns_quants_anys_mes_tard" name="anys/dies/hores/minuts... més tard">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">&unitats_temps;</token>
                    </unify>
                    <token>més</token>
                    <token regexp="yes">tard|avant|endavant|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="uns_quants_anys_despres" name="anys/dies/hores/minuts... més tard">
            <pattern>
                <token><exception postag="D[IN].*" postag_regexp="yes"/></token>
                <marker>
                    <unify>
                        <feature id="nombre"/>
                        <feature id="genere"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token postag="D[IN].*" postag_regexp="yes"/>
                        <token regexp="yes" inflected="yes">&unitats_temps;</token>
                    </unify>
                    <token regexp="yes">després|abans|(en|ar|endar)(rer[ea])</token>
                </marker>
            </pattern>
            <disambig action="add"><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/><wd pos="LOC_ADV_TEMP"/></disambig>
        </rule>
        <rule id="URL" name="url"> <!-- It excludes URLs from list of unkown words -->
            <pattern>
                <token regexp="yes">(https?|ftp)://.*</token>
            </pattern>
            <disambig action="add"><wd pos="IS_URL" lemma="IS_URL"/></disambig>
        </rule>
    </rulegroup>
    <rule id="llibres_biblia" name="abreviatures de llibres de la Bíblia">
        <pattern case_sensitive="yes">
            <marker>
                <token regexp="yes">Gn|Ex|Lv|Nm|Dt|Jos|Jt|Rt|1Sa|2Sa|1Re|2Re|1Cr|2Cr|Esd|Ne|Est|Jb|Sl|Pr|Coh|Ct|Is|Jr|Lm|Ez|Dn|Os|Jl|Am|Ab|Jon|Mi|Na|Ha|So|Ag|Za|Ml|Mt|Mc|Lc|Jn|Ac|Rm|1Co|2Co|Ga|Ef|Fl|Col|1Te|2Te|1Tm|2Tm|Tt|Flm|He|Jm|1Pe|2Pe|1Jn|2Jn|3Jn|Jud|Ap|Estgr|Jdt|Tb|1Ma|2Ma|Sv|Sir|Ba|EpJr|Dngr|Dngr3|Dngr13|Dngr14|Man|3Esr|4Esr|Sl151|Lao|SIH</token>
            </marker>
            <token regexp="yes">[0-9][0-9,.-]*</token>
        </pattern>
        <disambig action="add"><wd pos="_abrev_biblia" lemma="_abrev_biblia"/></disambig>
    </rule>
    <rulegroup id="carreteres" name="carreteres">
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>AP</token>
                </marker>
                <token spacebefore="no">-</token>
                <token spacebefore="no" regexp="yes">\d</token>
            </pattern>
            <disambig action="add"><wd pos="NCFS000" lemma="_carretera"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>N</token>
                </marker>
                <token spacebefore="no">-</token>
                <token spacebefore="no" regexp="yes">\d\d\d</token>
            </pattern>
            <disambig action="add"><wd pos="NCFS000" lemma="_carretera"/></disambig>
        </rule>
        <rule>
            <pattern case_sensitive="yes">
                <marker>
                    <token>C</token>
                </marker>
                <token spacebefore="no">-</token>
                <token spacebefore="no" regexp="yes">\d\d</token>
            </pattern>
            <disambig action="add"><wd pos="NCFS000" lemma="_carretera"/></disambig>
        </rule>
    </rulegroup>
    <rule id="expressio_guionet" name="expressió amb guionet">
         <pattern>
             <token regexp="yes" inflected="yes">traducció|interpretació|correció</token>
             <marker>
                 <token postag="N.*|A.*" postag_regexp="yes"/>
             </marker>
             <token spacebefore="no" regexp="yes">-|/</token>
             <token postag="N.*|A.*" postag_regexp="yes" spacebefore="no"/>
         </pattern>
         <disambig action="add"><wd pos="ignore_concordance"/></disambig>
    </rule>
    <rule id="OFERTA" name="oferta (ofertar)">
        <pattern>
            <and>
                <token postag="VM[^P].*" postag_regexp="yes" regexp="yes">ofert|oferta|ofertes</token>
                <token postag="V.P.*|NC.*" postag_regexp="yes"/>
            </and>
        </pattern>
        <disambig action="remove" postag="VM[^P].*"/>
    </rule>
    <rule name="Ignore spelling of file names" id="IGNORE_SPELLING_OF_FILE_NAMES">
        <pattern>
           <token/>
           <token spacebefore="no">.</token>
           <token spacebefore="no" regexp="yes">asp|aspx|avi|bak|bat|bmp|cab|cfg|cgi|com|css|csv|dat|db|dbf|dll|eps|exe|flv|gif|htm|html|ibooks|ico|ini|jar|jpg|js|jsp|lnk|md|mdb|mid|mov|mp3|mp4|mpa|mpg|pdf|php|pl|png|pps|ppt|pptx|ps|psd|py|rss|sh|sql|svg|sys|tar|tif|tiff|tmp|txt|wav|wma|xhtml|xls|xlsx|xsl|xml|zip|zipx</token><!-- For more extensions, refer to https://fileinfo.com -->
        </pattern>
        <disambig action="ignore_spelling"></disambig>
    </rule>
    <rule name="Ignore spelling of @user mentions" id="IGNORE_USER_MENTION">
        <pattern>
            <token regexp="yes">@.+</token>
        </pattern>
        <disambig action="ignore_spelling"></disambig>
    </rule>
    <rulegroup name="Ignore spelling of #hashtags" id="IGNORE_HASHTAG">
        <rule>
           <pattern>
            <token spacebefore="yes">#</token>
            <token spacebefore="no"></token>
          </pattern>
          <disambig action="ignore_spelling"></disambig>
        </rule>
        <rule>
          <pattern>
            <token postag="SENT_START"/>
            <token>#</token>
            <token spacebefore="no"></token>
          </pattern>
          <disambig action="ignore_spelling"></disambig>
        </rule>
    </rulegroup>
    <rule name="Ignore spelling of domain names" id="IGNORE_DOMAIN_NAMES">
      <pattern case_sensitive="yes">
        <token regexp="yes">[a-z0-9\-]+</token>
        <token spacebefore="no">.</token>
        <token spacebefore="no" regexp="yes">(cat|ae|ar|asia|at|au|be|bid|biz|br|ca|cc|cf|ch|cl|club|cn|co|com|cz|de|dk|edu|es|eu|fi|fr|ga|gdn|gov|gq|gr|hk|hu|id|ie|il|in|info|int|io|ir|it|jp|kiwi|kr|kz|life|link|loan|lt|me|men|mil|ml|mobi|mx|my|name|net|nl|no|nu|nz|online|org|party|pl|pro|pt|pw|racing|ro|ru|se|sg|shop|site|sk|space|store|su|tech|tk|top|tr|trade|tv|tw|ua|uk|us|vip|vn|wang|website|win|ws|xin|xyz|za)</token> <!-- the 100 most used + cat -->
      </pattern>
      <disambig action="ignore_spelling"></disambig>
    </rule>

</rules>
