On 2014-07-02 07:42, Marco A.G.Pinto wrote: > I wanted to create this rule suggested in the forum by Ronaldo: > "O AMIGO vão nadar" > "OS AMIGO vão caminhar" > > How do I check if after the "O" the next word ends with an "o" or > "os" ("amigo"/"amigos") and also add an exception for at least the > names "Marcos", "Satanás" and "Deus" which are always masculine and > singular?
Do you means that "O ...os" is the error? Then something like this should work: <pattern> <token>O</token> <token regexp="true">.*os?<exception>Marcos</exception></token> </pattern> Regards Daniel ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel