Description
Hi,
I am using a ruta rule like
Token{REGEXP(Token.tag.value, "AtPl")} // An article Token{REGEXP(Token.tag.value, "NoPl")} // A noun in plural Token?{REGEXP(Token.tag.value, "PnDmPl")} // An optional demonstrative pronoun in plural Token.tag.value=="VbSg"{REGEXP("aVerb", true)-> Token.tag.value="VbPl"} ; // A verb that is ambiguous as far as number is concerned (Sg-Pl)
to match and modify input like both
anArt|AtPl aNoun|NoPl aVerb|VbSg
and
anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbSg
However, the rule matches only the second case:
anArt|AtPl aNoun|NoPl aVerb|VbSg anArt|AtPl aNoun|NoPl aPronoun|PnDmPl aVerb|VbPl
i.e. the optional quantifier seems not to be working.
Thanks for looking into this.