Dear Daniel and friends,
Sorry for being a pest...
Daniel, thanks for your reply sent yesterday but which only today it
arrived (probably some issue with the mail server?).
I have been able to make the rule work but, I created an "o"->"os" and
now I want also to create the opposite "os"->"o" (to suggest "o" if the
next word doesn't end with an "s".
How do I do it?
This is what I have done for the first part:
* <!-- 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="yes">.*s<exception
regexp="yes">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>**
*
I have been meditating and I won't create a female rule "a"->"as" and
"as"->"a" since both a/as can be used in many different contexts and
there will be a multitude of possible conditions.
Thanks once again!
Kind regards from your friend,
>Marco A.G.Pinto
-----------------------
On 02/07/2014 18:09, Daniel Naber wrote:
On 2014-07-02 17:17, Marco A.G.Pinto wrote:
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).
Your <exception> element is missing the regexp="yes" attribute.
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