Why doesn't this work in the disambiguator?

Heya,

Why doesn’t this work?:


  <!-- Used ChatGPT 4o for enhancements and extra accuracy -->
  <rulegroup id="SUBSTANTIVO_CHAVE" name="Join words: substativo -chave, -base, -alvo, -guia, -padrão, -tipo, -teste">
    <!-- Plural -->
    <rule>
      <pattern>
        <marker>
            <token postag='NCMP000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCMP000_"/>
    </rule>
    <rule>
      <pattern>
        <marker>
            <token postag='NCFP000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCFP000_"/>
    </rule>
    <rule>
      <pattern>
        <marker>
            <token postag='NCCP000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCCP000_"/>
    </rule>

    <!-- Singular -->
    <rule>
      <pattern>
        <marker>
            <token postag='NCMS000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCMS000_"/>
    </rule>
    <rule>
      <pattern>
        <marker>
            <token postag='NCFS000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCFS000_"/>
    </rule>
    <rule>
      <pattern>
        <marker>
            <token postag='NCCS000' postag_regexp='no'/>
            <token regexp='yes' spacebefore='no'>&tracos_de_separacao;</token>
            <token regexp='yes' spacebefore='no'>chave|base|alvo|guia|padrão|tipo|teste</token>
        </marker>
      </pattern>
      <disambig action="replace" postag="NCCS000_"/>
    </rule>
  </rulegroup>

Also, is there an easier way of doing it?

Thanks!