Hello!
Thanks Daniel and Xavi!
I am very basic writing rules, so I didn't understand anything in Xavi's
e-mail.
I did try to adapt Daniel's suggestion with also some code I wrote weeks
ago but it gives lots of errors while testing it with "testrules pt".
This is what I did:
* <!-- CONCORDANCE O-OS using "o" when it should use "os" -->**
** <rule id="CORCORDANCE_O_OS" name="concordance_o_os">**
** <pattern case_sensitive="no">**
** <marker>**
** <token>o</token>**
** </marker>**
** <token
regexp="true">.*s<exception>Góis|Marcos|Camões|Magalhães|Deus|Satanás</exception></token>
**
** </pattern>**
** <message>Erro de concordância. Usar:
<suggestion>os</suggestion>.</message>**
** <example type="incorrect"><marker>O</marker> amigos vão
nadar.</example>**
** <example type="correct"><marker>Os</marker> amigos vão
nadar.</example>**
** </rule>*
As you can see, the exceptions are all names (starting with a capital
letter) and I am only checking if the words end with an "s" (used for
plural).
Is there a way of making this work and also use the exceptions begin
with capital letters?
Thanks once again!
Kind regards from your friend,
>Marco A.G.Pinto
-----------------------
--
------------------------------------------------------------------------------
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