Hello @jaumeortola
I am trying to improve the rule I created yesterday of confusion between “e” and “é”.
I have made it a group rule, however this isn’t working for the sentence:
“A literatura do Esperanto é já imensa e com enorme rapidez cresce a cada dia e hora.”
<rule>
<pattern>
<token negate_pos="yes" postag='V.+' postag_regexp='yes'/>
<token min="1" max="3" postag='RG' postag_regexp='no'>
<exception postag_regexp='yes' postag='NC.+|AQ0.+'/>
</token>
<marker>
<token regexp='no'>e</token>
</marker>
<token postag='NC.S.+|AQ0.S.+' postag_regexp='yes'>
<exception postag_regexp='yes' postag='V.+|PI.+|I|RG|SPS.+|RN|NP.'/>
</token>
<token negate_pos="yes" postag='SPS.+|CS|PP.+' postag_regexp='yes'/>
</pattern>
<message>Substitua por <suggestion>é</suggestion>.</message>
<example correction="é">Isso nunca <marker>e</marker> possível.</example>
</rule>
I can’t find what is wrong.
Could you give a tip?
Thanks!