Hello!

After an e-mail from Daniel Naber, I am trying to fix most false positives in the concordance rules I created a couple of days ago.

Here is what I have done, but it generates several errors when I use: TESTRULES PT

I want it to check if words end with:
1) ás *(ananás, gás, etc.)*
2) ês *(português, francês, inglês, etc.)*
3) ís *(país, Luís, etc.)*

and some exceptions added in the conditions.

This should fixed part of the false positives.

How do I make the two rules work?:
*
**    <!-- CONCORDANCE O-OS finds "o" and suggests "os" -->**
**    <rule id="CORCORDANCE_O_OS" name="concordance_o_os">**
**      <pattern case_sensitive="no">**
**         <marker>**
**            <token>o</token>**
**         </marker>**
** <token regexp="yes">.*s|.*ás|.*ês|*.ís<exception regexp="yes">mais|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>**
**
**
**
**    <!-- CONCORDANCE OS-O finds "os" and suggests "o" -->**
**    <rule id="CORCORDANCE_OS_O" name="concordance_os_o">**
**      <pattern case_sensitive="no">**
**         <marker>**
**            <token>os</token>**
**         </marker>**
** <token regexp="yes" negate="yes">.*s|.*ás|.*ês|*.ís<exception regexp="yes">mais|que|de|EUA</exception></token>**
**      </pattern>**
** <message>Erro de concordância. Usar: <suggestion>o</suggestion>.</message>** ** <example type="incorrect"><marker>Os</marker> amigo vai nadar.</example>** ** <example type="correct"><marker>O</marker> amigo vai nadar.</example>**
**    </rule>*

Thanks!

Kind regards,
       >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

Reply via email to