<?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" ?>
    <!--
  Galician Disambiguation Rules for LanguageTool
  Copyright © 2011 Susana Sotelo Docío
  Copyright © 2017 Tiago F. Santos (tiagofsantos81@sapo.pt)

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

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

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

  <!DOCTYPE rules [

    <!ENTITY hifen "[-‑]">

    <!ENTITY operadores_matematicos "[-x\.·\*\/\^\|~¬±×÷ϐϑϒϕϰϱϴϵ϶؆؇‖′″‴⁀⁄⁒⁺⁻⁼⁽⁾₊₋₌₍₎∀∁∂∃∄∅∆∇∈∉∊∋∌∍∎∏∐∑−∓∔∕∖∗∘∙√∛∜∝∞∟∠∡∢∣∤∥∦∧∨∩∪∫∬∭∮∯∰∱∲∳∴∵∶∷∸∹∺∻∼∽∾∿≀≁≂≃≄≅≆≇≈≉≊≋≌≍≎≏≐≑≒≓≔≕≖≗≘≙≚≛≜≝≞≟≠≡≢≣≤≥≦≧≨≩≪≫≬≭≮≯≰≱≲≳≴≵≶≷≸≹≺≻≼≽≾≿⊀⊁⊂⊃⊄⊅⊆⊇⊈⊉⊊⊋⊌⊍⊎⊏⊐⊑⊒⊓⊔⊕⊖⊗⊘⊙⊚⊛⊜⊝⊞⊟⊠⊡⊢⊣⊤⊥⊦⊧⊨⊩⊪⊫⊬⊭⊮⊯⊰⊱⊲⊳⊴⊵⊶⊷⊸⊹⊺⊻⊼⊽⊾⊿⋀⋁⋂⋃⋄⋅⋆⋇⋈⋉⋊⋋⋌⋍⋎⋏⋐⋑⋒⋓⋔⋕⋖⋗⋘⋙⋚⋛⋜⋝⋞⋟⋠⋡⋢⋣⋤⋥⋦⋧⋨⋩⋪⋫⋬⋭⋮⋯⋰⋱⋲⋳⋴⋵⋶⋷⋸⋹⋺⋻⋼⋽⋾⋿]|\=|\+">
    <!ENTITY alfabeto_grego "[ΑαΝνΒβΞξΓγΟοΔδΠπΕεΡρΖζΣσςΗηΤτΘθΥυΙιΦφΚκΧχΛλΨψΜμΩω]">
    <!ENTITY unidades_de_medida "(?:(?:[khdcmnµfYZEPTGM]|da)?(?:[gmlsJNWCVSFTHΩ]|Hz|cd|lm|mol|Pa|Wb|rad|sr|lx|Bq|Gy|Sv|kat|Np|eV)(?:⁻)?[23¹²³]?|º[CFK]|cv|k?cal|mmHg|atm|ton|kWh|GWa|MWd|MWh|mAh|min)">

    <!ENTITY numero_por_extenso_CP "tres|catro|cinco|seis|sete|oito|nove|dez|once|doce|trece|catorce|quince|dezaseis|dezasete|dezaoito|dezanove|vinte|trinta|corenta|cincuenta|sesenta|setenta|oitenta|noventa|cen|mil">
    <!ENTITY numero_por_extenso_MS "un|(mi|bi|tri|cuadri)llón">
    <!ENTITY numero_por_extenso_FS "unha|decena">
    <!ENTITY numero_por_extenso_MP "uns|dous|centos?|(douscent|trescent|catrocent|cincocent|seiscent|setecent|oitocent|novecent)os|(mi|bi|tri|cuadri)ll?óne?s">
    <!ENTITY numero_por_extenso_FP "unhas|dúas|decenas|ducias|centenares|(duzent|trezent|quatrocent|quinhent|seiscent|setecent|oitocent|novecent)as">

    <!ENTITY extensoes_de_ficheiros "aspx?|avi|bak|bat|bmp|cab|cfg|cgi|com|css|csv|dat|db|dbf|dll|docx?|eps|exe|flv|gif|html?|ibooks|ico|ini|jar|jpe?g|js|jsp|lnk|md|mdb|mid|mov|mp3|mp4|mpa|mpg|o[dt][tspfg]|pdf|php|pl|png|pps|pptx?|ps|psd|py|rss|sh|sql|svg|sys|tar|tif|tiff|tmp|txt|wav|wma|xhtml|xlsx?|xsl|xml|zipx?|7z">
    <!ENTITY dominios_internet "(?: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)"><!-- the 100 most used + cat -->
]>

<rules lang="gl" xsi:noNamespaceSchemaLocation="../../../../../../../../../languagetool-core/src/main/resources/org/languagetool/resource/disambiguation.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <unification feature="number">
    <equivalence type="singular">
          <token postag="(N..|[ADP]...|V....)S.*" postag_regexp="yes"/>
    </equivalence>

    <equivalence type="plural">
          <token postag="(N..|[ADP]...|V....)P.*" postag_regexp="yes"/>
    </equivalence>
  </unification>

  <unification feature="gender">
    <equivalence type="masc">
          <token postag="(N.|[ADP]..|V...)[MC].*" postag_regexp="yes"/>
    </equivalence>

    <equivalence type="fem">
          <token postag="(N.|[ADP]..|V...)[FC].*" postag_regexp="yes"/>
    </equivalence>
  </unification>

  <unification feature="person">
    <equivalence type="first">
          <token postag="(V...|PP)1.*" postag_regexp="yes"/>
    </equivalence>
    <equivalence type="second">
          <token postag="(V...|PP)2.*" postag_regexp="yes"/>
    </equivalence>
    <equivalence type="third">
          <token postag="(V...|PP)3.*" postag_regexp="yes"/>
    </equivalence>
  </unification>

  <rulegroup id="nomes_proprios_multiword" name="nomes proprios em multiwords">
    <!-- 	Rulegroup retrieved from Catalan grammar.xml	-->
    <rule id="nomeproprio2palavras_filtra_MS" name="nome proprio 2 palavras - MS">
      <pattern>
          <token postag="&lt;NPMS.+&gt;" postag_regexp="yes"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NPMS000_"/><wd pos="NPMS000_"/></disambig>
    </rule>
    <rule id="nomeproprio2palavras_filtra_MP" name="nome proprio 2 palavras - MP">
      <pattern>
          <token postag="&lt;NPMP.+&gt;" postag_regexp="yes"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NPMP000_"/><wd pos="NPMP000_"/></disambig>
    </rule>
    <rule id="nomeproprio2palavras_filtra_FS" name="nome proprio 2 palavras - FS">
      <pattern>
          <token postag="&lt;NPFS.+&gt;" postag_regexp="yes"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NPFS000_"/><wd pos="NPFS000_"/></disambig>
    </rule>
    <rule id="nomeproprio2palavras_filtra_FP" name="nome proprio 2 palavras - FP">
      <pattern>
          <token postag="&lt;NPFP.+&gt;" postag_regexp="yes"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NPFP000_"/><wd pos="NPFP000_"/></disambig>
    </rule>
    <rule id="nomeproprio2palavras_filtra_CN" name="nome proprio 2 palavras - CN">
      <pattern>
          <token postag="&lt;NPCN.+&gt;" postag_regexp="yes"/>
          <token postag="&lt;/NPCN.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NPCN000_"/><wd pos="NPCN000_"/></disambig>
    </rule>
    <rule id="nomeproprio3palavras" name="nome proprio 3 palavras">
      <pattern>
          <token postag="&lt;NP.+&gt;" postag_regexp="yes"/>
          <token/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="add"><wd pos="NP00000_"/><wd lemma="NP" pos="NP00000_"/><wd pos="NP00000_"/></disambig>
    </rule>
    <rule id="nomeproprio4palavras" name="nome proprio 4 palavras">
      <pattern>
          <token postag="&lt;NP.+&gt;" postag_regexp="yes"/>
          <token/>
          <token/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="add"><wd pos="NP00000_"/><wd lemma="NP" pos="NP00000_"/><wd lemma="NP" pos="NP00000_"/><wd pos="NP00000_"/></disambig>
    </rule>
    <rule id="nomeproprio3palavras_filtra" name="nome proprio 3 palavras">
      <pattern>
          <token postag="&lt;NP.+&gt;" postag_regexp="yes"/>
          <token postag="NP00000"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NP00000_"/><wd pos="NP00000_"/><wd pos="NP00000_"/></disambig>
    </rule>
    <rule id="nomeproprio4palavras-filtra" name="nome proprio 4 palavras">
      <pattern>
          <token postag="&lt;NP.+&gt;" postag_regexp="yes"/>
          <token postag="NP00000"/>
          <token postag="NP00000"/>
          <token postag="&lt;/NP.+&gt;" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="NP00000_"/><wd pos="NP00000_"/><wd pos="NP00000_"/><wd pos="NP00000_"/></disambig>
    </rule>
  </rulegroup>
  <rulegroup id="nome_comúm_multiword" name="nomes comuns em multiwords">
    <!-- 	Rulegroup based on Catalan grammar.xml	-->
    <rule id="nomecomum2palavras" name="nome comúm 2 palavras">
      <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;NCFP000&gt;"/>
          <token postag="&lt;/NCFP000&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="NCFP000_"/><wd pos="AQ0FP0_"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;NCMP000&gt;"/>
          <token postag="&lt;/NCMP000&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="NCMP000_"/><wd pos="AQ0MP0_"/></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;RN&gt;"/>
          <token postag="&lt;/RN&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="RN"/><wd pos="RN"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;RN&gt;"/>
          <token/>
          <token postag="&lt;/RN&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="RN"/><wd pos="RN"/><wd pos="RN"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;RN&gt;"/>
          <token/>
          <token/>
          <token postag="&lt;/RN&gt;"/>
      </pattern>
      <disambig action="replace"><wd pos="RN"/><wd pos="RN"/><wd pos="RN"/><wd pos="RN"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;RG&gt;"/>
          <token postag="&lt;/RG&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="RG"/><wd pos="RG"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;RG&gt;"/>
          <token/>
          <token postag="&lt;/RG&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="RG"/><wd pos="RG"/><wd pos="RG"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;RG&gt;"/>
          <token/>
          <token/>
          <token postag="&lt;/RG&gt;"/>
      </pattern>
      <disambig action="replace"><wd pos="RG"/><wd pos="RG"/><wd pos="RG"/><wd pos="RG"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;SP000&gt;"/>
          <token postag="&lt;/SP000&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="SP000"/><wd pos="SP000"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;SP000&gt;"/>
          <token/>
          <token postag="&lt;/SP000&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="SP000"/><wd pos="SP000"/><wd pos="SP000"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;SP000&gt;"/>
          <token/>
          <token/>
          <token postag="&lt;/SP000&gt;"/>
      </pattern>
      <disambig action="replace"><wd pos="SP000"/><wd pos="SP000"/><wd pos="SP000"/><wd pos="SP000"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;CS&gt;"/>
          <token postag="&lt;/CS&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="CS"/><wd pos="CS"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;CS&gt;"/>
          <token/>
          <token postag="&lt;/CS&gt;"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="CS"/><wd pos="CS"/><wd pos="CS"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;CS&gt;"/>
          <token/>
          <token/>
          <token postag="&lt;/CS&gt;"/>
      </pattern>
      <disambig action="replace"><wd pos="CS"/><wd pos="CS"/><wd pos="CS"/><wd pos="CS"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;I&gt;"/>
          <token postag="&lt;/I&gt;"/>
      </pattern>
      <disambig action="add"><wd pos="I"/><wd pos="I"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;I&gt;"/>
          <token/>
          <token postag="&lt;/I&gt;"/>
      </pattern>
      <disambig action="add"><wd pos="I"/><wd pos="I"/><wd pos="I"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;I&gt;"/>
          <token/>
          <token/>
          <token postag="&lt;/I&gt;"/>
      </pattern>
      <disambig action="add"><wd pos="I"/><wd pos="I"/><wd pos="I"/><wd pos="I"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;(_GN_|L_).*" postag_regexp="yes"/>
          <token postag="&lt;/(_GN_|L_).*" postag_regexp="yes"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="_GN_"/><wd pos="_GN_"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag="&lt;(_GN_|L_).*" postag_regexp="yes"/>
          <token/>
          <token postag="&lt;/(_GN_|L_).*" postag_regexp="yes"/>
        </marker>
      </pattern>
      <disambig action="replace"><wd pos="_GN_"/><wd pos="_GN_"/><wd pos="_GN_"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag="&lt;(_GN_|L_).*" postag_regexp="yes"/>
        <marker>
          <token/>
        </marker>
          <token postag="&lt;/(_GN_|L_).*" postag_regexp="yes"/>
      </pattern>
      <disambig action="replace"><wd pos="_GN_"/></disambig>
    </rule>
  </rulegroup>

    <rule id="DET_SUBST_ADX" name="det + subst + adx (unify)">
      <pattern>
          <unify>
            <feature id="gender"/>
            <feature id="number"/>

          <token postag="D.*" postag_regexp="yes"/>
          <token postag="N.*" postag_regexp="yes">
            <exception regexp="yes">gran|grande</exception></token>
          <token postag="A.*" postag_regexp="yes"/>
          </unify>
      </pattern>
      <disambig action="filterall"/>
    </rule>

    <rule id="DET_SUBST" name="det|pron + subst|adx (det + subst|adx)">
      <pattern>
          <token>
            <exception postag="V.*" postag_regexp="yes"/></token>
        <marker>
          <token postag="D.*" postag_regexp="yes"/>
        </marker>
          <token postag="[NA].*" postag_regexp="yes">
            <exception postag="V.*" postag_regexp="yes"/></token>
      </pattern>
      <disambig action="filter" postag="D.*"/>
    </rule>

    <rule id="DET_CANS" name="det + can(s)">
    <!-- XXX remove after more general disambiguation -->
      <pattern>
          <token postag="D.*" postag_regexp="yes"/>
        <marker>
          <token regexp="yes">cans?</token>
        </marker>
      </pattern>
      <disambig action="filter" postag="N.*"/>
    </rule>

    <rule id="TANTO_COMO" name="Tanto ... como ...">
    <!-- Created by Tiago F. Santos, Portuguese rule, 2017-11-15  	-->
      <pattern>
        <marker>
          <token regexp="yes">tan|tanto</token>
        </marker>
          <token max='2'/>
          <token>como</token>
      </pattern>
      <disambig action="replace" postag="RG"/>
    </rule>

  <rulegroup id="CONTRACAO_L" name="Contracción l'">
    <!-- Created by Tiago F. Santos, Galician rule, 2017-11-09  	-->
    <rule>
      <pattern>
        <marker>
          <token>l</token>
          <token regexp="yes" spacebefore='no'>['’]</token>
        </marker>
          <token postag="(?:[NZ].|[ADP]..|V.....)M.+" postag_regexp="yes"></token>
      </pattern>
      <disambig action="replace"><wd pos="DA0MS0"/><wd pos="DA0MS0"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token>l</token>
          <token regexp="yes" spacebefore='no'>['’]</token>
        </marker>
          <token postag="(?:[NZ].|[ADP]..|V.....)F.+" postag_regexp="yes"></token>
      </pattern>
      <disambig action="replace"><wd pos="DA0FS0"/><wd pos="DA0FS0"/></disambig>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token>l</token>
          <token regexp="yes" spacebefore='no'>['’]</token>
        </marker>
          <token postag="(?:[NZ].|[ADP]..|V.....)C.+|UNKNOWN" postag_regexp="yes"></token>
      </pattern>
      <disambig action="replace"><wd pos="DA0NS0"/><wd pos="DA0NS0"/></disambig>
    </rule>
  </rulegroup>

    <rule id="VOGAIS" name="[^o|letra] e[subst|conx] (e[subst])">
      <pattern>
          <token>
            <exception regexp="yes">o|letra|vogal</exception></token>
        <marker>
          <token regexp="yes">[aeo]</token>
        </marker>
      </pattern>
      <disambig action="remove"><wd pos="NCMS000"/></disambig>
    </rule>

  <rulegroup id="PERIFRASES" name="perífrases de infinitivo">
    <rule>
      <pattern>
          <token inflected="yes" regexp="yes">haber|ter</token>
          <token>que</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes" regexp="yes">estar|andar|levar|continuar|seguir|ser|botar|comezar|pegar|vir|chegar|voltar|tornar|romper|pór|poñer</token>
          <token>a</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes" regexp="yes">deber|haber|deixar|parar|acabar|rematar|terminar|vir|ter</token>
          <token>de</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes">acabar</token>
          <token>por</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes">estar</token>
          <token>para</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes">dar</token>
          <token>en</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
    <rule>
      <pattern>
          <token inflected="yes" regexp="yes">querer|ir|deber|haber|poder|volver|adoitar|acostumar</token>
        <marker>
          <token postag="VMN0000">
            <exception negate_pos="yes" postag="V.*" postag_regexp="yes"/></token>
        </marker>
      </pattern>
      <disambig postag="VMN0000"/>
    </rule>
  </rulegroup>

  <rulegroup  id="NUMBER" name="number">
    <!-- Created by Tiago F. Santos, Portuguese rule, 2016-11-15  	-->
    <rule>
      <pattern>
          <token regexp="yes">[1234567890]+</token>
      </pattern>
      <disambig postag="Z0CN0"/>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">[1234567890][1234567890., ]+[1234567890]</token>
      </pattern>
      <disambig action="replace"><wd pos="Z0CN0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">&numero_por_extenso_CP;</token>
      </pattern>
      <disambig action="replace"><wd pos="Z0CP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">&numero_por_extenso_MP;
            <exception>uns</exception></token>
      </pattern>
      <disambig action="replace"><wd pos="Z0MP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">&numero_por_extenso_FP;
            <exception>unhas</exception></token>
      </pattern>
      <disambig action="replace"><wd pos="Z0FP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">&numero_por_extenso_MS;
            <exception>un</exception></token>
      </pattern>
      <disambig action="replace"><wd pos="Z0MS0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token>un</token>
      </pattern>
      <disambig action="add"><wd pos="Z0MS0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">&numero_por_extenso_FS;
            <exception>unha</exception></token>
      </pattern>
      <disambig action="replace"><wd pos="Z0FS0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token>unha</token>
      </pattern>
      <disambig action="add"><wd pos="Z0FS0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0M[SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token postag_regexp="yes" postag='Z0[MC][SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0MP0"/><wd pos="Z0MP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0[CM][SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token postag_regexp="yes" postag='Z0M[SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0MP0"/><wd pos="Z0MP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0F[SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token postag_regexp="yes" postag='Z0[CF][SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0FP0"/><wd pos="Z0FP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0[CF][SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token postag_regexp="yes" postag='Z0F[SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0FP0"/><wd pos="Z0FP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0M[SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token regexp='yes'>e|-</token>
          <token postag_regexp="yes" postag='Z0[MC][SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0MP0"/><wd pos="Z0MP0"/><wd pos="Z0MP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0[CM][SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token regexp='yes'>e|-</token>
          <token postag_regexp="yes" postag='Z0M[SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0MP0"/><wd pos="Z0MP0"/><wd pos="Z0MP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0F[SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token regexp='yes'>e|-</token>
          <token postag_regexp="yes" postag='Z0[CF][SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0FP0"/><wd pos="Z0FP0"/><wd pos="Z0FP0"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token postag_regexp="yes" postag='Z0[CF][SPN]0'>
            <exception regexp='yes'>\d+</exception></token>
          <token regexp='yes'>e|-</token>
          <token postag_regexp="yes" postag='Z0F[SPN]0'/>
      </pattern>
      <disambig action="replace"><wd pos="Z0FP0"/><wd pos="Z0FP0"/><wd pos="Z0FP0"/></disambig>
    </rule>
  </rulegroup>

  <rulegroup id="PERCENTAGES" name="Porcentaxes">
    <!-- Created by Tiago F. Santos, Portuguese rule, 2016-11-15  	-->
    <rule>
      <pattern>
          <token regexp="yes">[\d,. ]+[&#37;&#8240;&#8241;]
            <exception regexp='yes'>1[&#37;&#8240;&#8241;]</exception></token>
      </pattern>
      <disambig action="replace"><wd pos="NCMP000"/></disambig>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">1 ?[&#37;&#8240;&#8241;]</token>
      </pattern>
      <disambig action="replace"><wd pos="NCMC000"/></disambig>
    </rule>
  </rulegroup>

    <rule id="PUNCT" name="pontuacción">
    <!-- 		l18n from Spanish disambiguation.xml by Tiago F. Santos		-->
      <pattern>
          <token regexp="yes">[.,;:!?…()\[\]&#8209;&#8210;&#8211;&#8212;&#8213;«»”“‘’\-]|[\*×∗·\+\/÷:=]</token>
      </pattern>
      <disambig action="add"><wd pos="_PUNCT"/></disambig>
    </rule>

  <rulegroup name="Quotation marks" id="QUOT">
    <!-- 		l18n from English disambiguation.xml by Tiago F. Santos		-->
    <rule>
      <pattern>
          <token postag="SENT_START"/>
        <marker>
          <token>&quot;</token>
        </marker>
      </pattern>
      <disambig postag="``"/>
      <example type="untouched">Examplo 'a'</example>
      <example type="untouched">Examplo &quot;a</example>
      <example type="ambiguous" inputform="&quot;[&quot;/'',&quot;/``]" outputform="&quot;[&quot;/``]"><marker>&quot;</marker>Um teste.</example>
    </rule>
    <rule>
      <pattern>
          <token>
            <exception regexp="yes">\p{Ps}</exception></token>
        <marker>
        <and>
          <token postag="``" spacebefore="no">&quot;</token>
          <token postag="''" spacebefore="no">&quot;</token>
        </and>
        </marker>
      </pattern>
      <disambig postag="''"/>
      <example type="untouched">Examplo 'a'</example>
      <example type="untouched">Examplo &quot;a</example>
      <example type="untouched">Examplo (&quot;a</example>
      <example type="ambiguous" inputform="&quot;[&quot;/'',&quot;/``]" outputform="&quot;[&quot;/'']">Um &quot;teste<marker>&quot;</marker>.</example>
    </rule>
    <rule>
      <pattern>
        <marker>
        <and>
          <token postag="''" spacebefore="yes">&quot;</token>
          <token postag="``" spacebefore="yes">&quot;</token>
        </and>
        </marker>
      </pattern>
      <disambig postag="``"/>
      <example type="untouched">Examplo 'a'</example>
      <example type="untouched">Examplo a&quot;</example>
      <example type="ambiguous" inputform="&quot;[&quot;/'',&quot;/``]" outputform="&quot;[&quot;/``]">Um <marker>&quot;</marker>teste&quot;.</example>
    </rule>
    <rule>
      <pattern>
          <token regexp="yes">\p{Ps}</token>
        <marker>
        <and>
          <token postag="``" spacebefore="no">&quot;</token>
          <token postag="''" spacebefore="no">&quot;</token>
        </and>
        </marker>
      </pattern>
      <disambig postag="``"/>
      <example type="untouched">Examplo 'a'</example>
      <example type="untouched">Examplo &quot;a</example>
      <example type="untouched">Examplo a&quot;</example>
      <example type="ambiguous" inputform="&quot;[&quot;/'',&quot;/``]" outputform="&quot;[&quot;/``]">Um (<marker>&quot;</marker>teste&quot;.</example>
    </rule>
  </rulegroup>

    <!-- XXX Ignore Spelling Rules XXX -->
    <rule name="en vogue" id="EN_VOGUE">
      <pattern>
          <token>en</token>
          <token regexp="yes">vogue|gros|masse|passant|détail</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Côte d'Azur" id="COTE_DAZUR">
      <pattern>
          <token>Côte</token>
          <token>d</token>
          <token regexp="yes">['’]</token>
          <token>Azur</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Los Angeles" id="LOS_ANGELES">
      <pattern>
          <token>Los</token>
          <token regexp="yes">Alamos|Angeles</token>
      </pattern>
      <disambig action="immunize"/>
    </rule>
    <rule name="Las Vegas" id="LAS_VEGAS">
      <pattern case_sensitive="yes">
          <token>Las</token>
          <token>Vegas</token>
      </pattern>
      <disambig action="immunize"/>
    </rule>
    <rule name="Valleys" id="VALLEYS">
      <pattern case_sensitive="yes">
          <token regexp="yes">Death|Silicon</token>
          <token>Valley</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Oak Ridge" id="OAK_RIDGE">
      <pattern case_sensitive="yes">
          <token>Oak</token>
          <token>Ridge</token>
      </pattern>
      <disambig action="immunize"/>
    </rule>
    <rule name="Mise en scène" id="MISE_EN_SCENE">
      <pattern>
          <token>Mise</token>
          <token>en</token>
          <token>scène</token>
      </pattern>
      <disambig action="immunize"/>
    </rule>
    <rule name="Rhythm and Blues" id="RHYTHM_AND_BLUES">
      <pattern>
          <token>Rhythm</token>
          <token>and</token>
          <token>Blues</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Rock and Roll" id="ROCK_AND_ROLL">
      <pattern>
          <token>Rock</token>
          <token>and</token>
          <token>Roll</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Alexius Meinong" id="ALEXIUS_MEINONG">
      <pattern>
          <token>Alexius</token>
          <token regexp="yes">Meinongs?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Alfred Nobel" id="ALFRED_NOBEL">
      <pattern>
          <token>Alfred</token>
          <token>Nobel</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Addis Abeba" id="ADDIS_ABEBA">
      <pattern>
          <token>Addis</token>
          <token>Abeba</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="La Paz" id="LA_PAZ">
      <pattern>
          <token>La</token>
          <token>Paz</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Santo Domingo" id="SANTO_DOMINGO">
      <pattern>
          <token>Santo</token>
          <token>Domingo</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Le Havre/Le Mans" id="LE_HAVRE">
      <pattern>
          <token>Le</token>
          <token regexp='yes'>Havre|Mans</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Phnom Penh" id="PHNOM_PENH">
      <pattern>
          <token>Phnom</token>
          <token>Penh</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Open Source" id="OPEN_SOURCE">
      <pattern>
          <token>Open</token>
          <token>Source</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Open-Source-Software" id="OPEN_SOURCE_SOFTWARE">
      <pattern>
          <token>Open-Source-Software</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Jungle World" id="JUNGLE_WORLD">
      <pattern>
          <token>Jungle</token>
          <token>World</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Rolling Stones" id="STONES">
      <pattern>
          <token>Rolling</token>
          <token regexp='yes'>Stones?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="à la carte" id="A_LA_CARTE">
      <pattern>
          <token>à</token>
          <token>la</token>
          <token>carte</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Big Ben" id="BIG_BEN">
      <pattern>
          <token>Big</token>
          <token regexp="yes">Ben|Data|Bang</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="peu à peu" id="PEU_A_PEU">
      <pattern>
          <token>peu</token>
          <token>à</token>
          <token>peu</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="avant la lettre" id="AVANT_LA_LETTRE">
      <pattern>
          <token>avant</token>
          <token>la</token>
          <token>lettre</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Coq au Vin" id="COQ_AU_VIN">
      <pattern>
          <token>Coq</token>
          <token>au</token>
          <token>Vin</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Air Force" id="AIR_FORCE">
      <pattern>
          <token>Air</token>
          <token>Force</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="cui bono" id="CUI_BONO">
      <pattern>
          <token>Cui</token>
          <token>Bono</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Memento mori" id="MEMENTO_MORI">
      <pattern>
          <token>Memento</token>
          <token>mori</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="salva veritate" id="SALVA_VERITATE">
      <pattern>
          <token>salva</token>
          <token>veritate</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Persona non grata" id="PERSONA_NON_GRATA">
      <pattern>
          <token>Persona</token>
          <token min="0">non</token>
          <token regexp="yes">(in)?grata</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Enfant terrible" id="ENFANT_TERRIBLE">
      <pattern>
          <token>Enfant</token>
          <token>terrible</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Fair Play" id="FAIR_PLAY">
      <pattern case_sensitive="yes">
          <token>Fair</token>
          <token>Play</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="University of" id="UNIVERSITY_OF">
      <pattern case_sensitive="yes">
          <token>University</token>
          <token>of</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Yad Vashem" id="YAD_VASHEM">
      <pattern>
          <token>Yad</token>
          <token>Vashem</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="El Niño" id="EL_NINO">
      <pattern>
          <token>El</token>
          <token>Niño</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="in medias res" id="IN_MEDIAS_RES">
      <pattern>
          <token>in</token>
          <token>medias</token>
          <token>res</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Facultas Docendi" id="FACULTAS_DOCENDI">
      <pattern>
          <token>Facultas</token>
          <token>Docendi</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Venia Legendi" id="VENIA_LEGENDI">
      <pattern>
          <token>Venia</token>
          <token>Legendi</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Grand Canyon" id="GRAND_CANYON">
      <pattern>
          <token>Grand</token>
          <token regexp='yes'>Canyon|Prix|Slam</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="horribile dictu" id="HORRIBILE_DICTU">
      <pattern>
          <token>horribile</token>
          <token>dictu</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Diabetes mellitus" id="DIABETES_MELLITUS">
      <pattern>
          <token>Diabetes</token>
          <token regexp="yes">mellitus|renalis|insipidus</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="O Blitz" id="O_BLITZ">
      <pattern>
          <token regexp="yes">[dn]?o</token>
          <token regexp="yes">Blitz|Donner</token>
          <token min='0'>Kebab</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Wall Street" id="WALL_STREET">
      <pattern>
          <token regexp="yes">Wall|Downing|Baker</token>
          <token>Street</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Fifth Avenue" id="FIFTH_AVENUE">
      <pattern>
          <token>Fifth</token>
          <token>Avenue</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="per se" id="PER_SE">
      <pattern>
          <token>per</token>
          <token regexp="yes">capita|procura|rectum|saldo|se</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Pour le Mérite" id="POUR_LE_MERITE">
      <pattern>
          <token>Pour</token>
          <token>le</token>
          <token>Mérite</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="sui" id="SUI_GENERIS">
      <pattern>
          <token>sui</token>
          <token>generis</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="pacta" id="PACTA_SUNT_SERVANDA">
      <pattern>
          <token>pacta</token>
          <token>sunt</token>
          <token>servanda</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="virtual" id="VIRTUAL_REALITY">
      <pattern>
          <token>Virtual</token>
          <token regexp="yes">Reality|Environments?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Fethullah Gülen" id="GUELEN">
      <pattern>
          <token>Fethullah</token>
          <token regexp='yes'>Gülens?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Recep Tayyip Erdoğan" id="ERDOGAN">
      <pattern>
          <token>Recep</token>
          <token>Tayyip</token>
          <token regexp='yes'>Erdoğans?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Hillary Clinton" id="HILLARY_CLINTON">
      <pattern>
          <token regexp='yes'>Hillary|Bill</token>
          <token regexp='yes'>Clintons?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Abu" id="ABU_DHABI">
      <pattern>
          <token>Abu</token>
          <token>Dhabi</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Rocky Mountains" id="ROCKY_MOUNTAINS">
      <pattern>
          <token>Rocky</token>
          <token>Mountains</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Cordon bleu" id="CORDON_BLEU">
      <pattern>
          <token>Cordon</token>
          <token>bleu</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Jour fixe" id="JOUR_FIXE">
      <pattern>
          <token regexp="yes">Blanc|Jour|Idée</token>
          <token>fixe</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Pearl Harbor" id="PEARL_HARBOR">
      <pattern>
          <token>Pearl</token>
          <token>Harbor</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Isle of Man" id="ISLE_OF_MAN">
      <pattern>
          <token>Isle</token>
          <token>of</token>
          <token regexp="yes">Man|Wight|Arran|Mull</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Human Rights Watch" id="HUMAN_RIGHTS_WATCH">
      <pattern>
          <token>Human</token>
          <token>Rights</token>
          <token>Watch</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="pater familias" id="PATER_FAMILIAS">
      <pattern>
          <token>pater</token>
          <token>familias</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="con Carne" id="CON_CARNE">
      <pattern case_sensitive="yes">
          <token>con</token>
          <token>Carne</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Scotland Yard" id="SCOTLAND_YARD">
      <pattern case_sensitive="yes">
          <token>Scotland</token>
          <token>Yard</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Buckingham Palace" id="BUCKINGHAM_PALACE">
      <pattern>
          <token>Palácio</token>
          <token>de</token>
          <token>Buckingham</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Parks" id="PARKS">
      <pattern case_sensitive="yes">
          <token regexp="yes">Central|Hyde</token>
          <token>Park</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Terra incognita" id="TERRA_INCOGNITA">
      <pattern>
          <token>Terra</token>
          <token>incognita</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="non sequitur" id="NON_SEQUITUR">
      <pattern>
          <token>non</token>
          <token>sequitur</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="reductio ad absurdum" id="REDUCTIO_AD_ABSURDUM">
      <pattern>
          <token>reductio</token>
          <token>ad</token>
          <token>absurdum</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Tertium non datur" id="TERTIUM_NON_DATUR">
      <pattern>
          <token>Tertium</token>
          <token>non</token>
          <token>datur</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="ex nihilo" id="EX_NIHILO">
      <pattern>
          <token>ex</token>
          <token>nihilo</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="suum cuique" id="SUUM_CUIQUE">
      <pattern>
          <token>suum</token>
          <token>cuique</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Urbi et orbi" id="URBI_ORBI">
      <pattern>
          <token>Urbi</token>
          <token>et</token>
          <token>orbi</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Spiritus Rector" id="SPIRITUS_RECTOR">
      <pattern>
          <token>Spiritus</token>
          <token>Rector</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="in vino veritas" id="VINO_VERITAS">
      <pattern>
          <token>in</token>
          <token>vino</token>
          <token>veritas</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="sit venia verbo" id="VENIA_VERBO">
      <pattern>
          <token>sit</token>
          <token>venia</token>
          <token>verbo</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Sex and the City" id="SEX_CITY">
      <pattern>
          <token>Sex</token>
          <token>and</token>
          <token>the</token>
          <token>City</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Breaking Bad" id="BREAKING_BAD">
      <pattern>
          <token>Breaking</token>
          <token>Bad</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Visual Studio/Basic" id="VISUAL_STUDIO">
      <pattern case_sensitive="yes">
          <token>Visual</token>
          <token regexp="yes">Studio|Basic</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Google Maps" id="GOOGLE_MAPS">
      <pattern case_sensitive="yes">
          <token>Google</token>
          <token regexp="yes">Ad|Alerts|Analytics|APIs|App|Apps|Art|Attribution|Authenticator|Bookmarks|Business|Calendar|Charts|Checkout|Classroom|Cloud|Compute|Contacts|Cultural|Current|Data|Developers|Docs|Drive|Fit|Flights|Fonts|for|Fusion|Get|Groups|Home|Maps|Mobile|Moderator|My|Ngram|One|Opinion|Photos|Play|Plugin|Primer|Public|Questions|Schemer|Scholar|Search|Search‎|Shopping|Sites|Spaces|Store|Street|Surveys|Sync|Tez|Translate|Translator|URL|Videos|Wallet|Website|WiFi</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="AMPERSANDS" id="Ampersands">
      <pattern>
          <token regexp='yes'>C&amp;A|I&amp;D|S&amp;P</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="low cost" id="LOW_COST">
      <pattern>
          <token>low</token>
          <token regexp="yes" spacebefore='no' min='0'>&hifen;</token>
          <token regexp="yes">costs?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="T-shirts" id="T-SHIRT">
      <pattern>
          <token>t</token>
          <token regexp="yes" spacebefore='no'>&hifen;</token>
          <token regexp="yes" spacebefore='no'>shirts?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>

  <rulegroup id='LOOSE_UPPERCASES' name='Maiúsculas soltas'>
    <!-- Created by Tiago F. Santos, Portuguese rule, 2017-10-10  	-->
    <rule>
      <pattern>
          <token regexp='yes'>(categoría|paso|grupo|turma|vitamina)s?</token>
          <token case_sensitive='yes' regexp='yes'>\p{Lu}</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule id='SIZES' name='Tamaños de roupa'>
      <pattern>
          <token regexp='yes'>tamaños?</token>
          <token case_sensitive='yes' regexp='yes'>X{0,2}[SLM]|GG?|PP?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
  </rulegroup>

    <rule id='WORDS_WITH_NUMBERS' name='Palavras com números'>
    <!-- Created by Tiago F. Santos, Portuguese rule, 2017-10-10  	-->
    <!-- XXX TV dimensions|3D|networks|4Chan|G20|G7|hypothesis|intel CPUs|P2P|number of rooms|highways -->
      <pattern>
          <token case_sensitive='yes' regexp='yes'>[248]K|[2345][DG]|4Chan|G(20|7)|H[₁₂₃₄₅₆₇₈₉₀]|i[357]|P2P|T[1234560]|(?:A|EN|IC)\d{1,3}</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>

  <rulegroup name="Ignore spellings rule" id="SPELLING_IGNORE_RULE">
    <!-- Created by Tiago F. Santos, Portuguese rule, 2017-06-XX  	-->
    <rule>
      <pattern>
        <marker>
          <token postag_regexp="yes" postag=".+_"/>
        </marker>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag_regexp="yes" postag="I"/>
        </marker>
          <token regexp='yes'>[\!\?]</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token postag_regexp="yes" postag="I"/>
        </marker>
          <token postag_regexp="yes" postag="I"/>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern>
        <marker>
          <token case_sensitive="yes" regexp="yes">\p{Lu}</token>
        </marker>
          <token spacebefore='no'>.</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule><!-- separators -->
      <pattern>
          <token>-</token>
          <token>-</token>
          <token>-</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern>
          <token regexp='yes'>\d+.[ºª][sˢ]?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule><!-- loose letters used in some time formats -->
      <pattern>
          <token regexp='yes'>\d{1,2}h(\d{2}m)?(\d{2})?s?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule> <!-- variable in formulas -->
      <pattern>
          <token regexp='yes'>\w|&alfabeto_grego;</token><!-- XXX here μ is ok. it can't be micro -->
          <token regexp='yes'>&operadores_matematicos;</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule><!-- variable in formulas -->
      <pattern>
          <token regexp='yes'>&operadores_matematicos;</token>
          <token regexp='yes'>\w|&alfabeto_grego;
            <exception>μ</exception></token><!-- XXX don't add μ - possible confusion with loose micro -->
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule><!-- variable in formulas -->
      <pattern>
          <token postag_regexp='yes' postag='Z.+'/>
        <marker>
          <token regexp='yes'>\w|&alfabeto_grego;
            <exception>μ</exception></token><!-- XXX don't add μ - possible confusion with loose micro -->
        </marker>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <!--rule>< ignore abbreviations >
     XXX uncomment after localizing entity
      <pattern>
        <marker>
          <token regexp='yes'>&abreviaturas;</token>
        </marker>
          <token spacebefore='no'>.</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule-->
    <rule><!-- ignore abbreviations -->
      <pattern>
          <token>n</token>
          <token spacebefore='no'>.</token>
          <token spacebefore='no' regexp='yes'>[ºª]ˢ?</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
    <!-- Based on English disambiguation.xml -->
      <pattern case_sensitive="yes">
          <token regexp="yes">\/|[\.·\/]|[\d\., ]*\d+</token>
          <token regexp="yes">&unidades_de_medida;</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern case_sensitive="yes">
          <token regexp="yes">\d[\d ]*[\.,]?\d*(&unidades_de_medida;)</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
  </rulegroup>
    <rule name="Ignore spelling of file names" id="IGNORE_SPELLING_OF_FILE_NAMES">
    <!-- Localized from English by Tiago F. Santos, 2018-09-15  -->
      <pattern>
          <token/>
          <token spacebefore="no">.</token>
          <token spacebefore="no" regexp="yes">&extensoes_de_ficheiros;</token><!-- For more extensions, refer to https://fileinfo.com -->
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule name="Ignore spelling of @user mentions" id="IGNORE_USER_MENTION">
      <pattern>
          <token regexp="yes">@.+</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
  <rulegroup name="Ignore spelling of #hashtags" id="IGNORE_HASHTAG">
    <rule>
      <pattern>
          <token spacebefore="yes">#</token>
          <token spacebefore="no"/>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
    <rule>
      <pattern>
          <token postag="SENT_START"/>
          <token>#</token>
          <token spacebefore="no"/>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
  </rulegroup>
    <rule name="Ignore spelling of domain names" id="IGNORE_DOMAIN_NAMES">
      <pattern case_sensitive="yes">
          <token regexp="yes">[A-Za-z0-9\-]+</token>
          <token spacebefore="no">.</token>
          <token spacebefore="no" regexp="yes">&dominios_internet;</token>
      </pattern>
      <disambig action="ignore_spelling"/>
    </rule>
</rules>
