Dear Daniel,

I wrote the e-mail at near 7am and I was half asleep, then I returned to bed at 8pm and got up moments ago.

It was not a gender rule but a singular/plural rule.

For example:
o=singular (male)
os=plural (male)

the same for
a=singular (female)
as=plural (female)

What I am trying to code is to check if someone uses the wrong singular/plural before a word.

For example:
amigo=male singular
if it ends with an "s" or "os" it is plural with the exception of a few male names: "Satanás", "Marcos" and "Deus", the ones that come to mind right now.

After I create this singular/plural rule, then I want to check the gender to go even further.

Is this still done with the code you mentioned?

I just need to do some university work and then I will try to add rules to the pt_PT.

PS->I am currently on vacation from the supermarket job but I am still working for university and on my PhD. In my last day at the supermarket I attempted to buy the huge 2014 Portuguese post-agreement dictionary but it still wasn't there for sale. What I did was to buy a pocket one just to get me started with some new compound rules. Should I start adding compound rules to the post-reform-compounds.txt file? Maybe they will only work on the stand-alone tool since OpenOffice and LibreOffice don't allow to choose between post and pre?

Thanks!

Kind regards from your friend,
       >Marco A.G.Pinto
         -----------------------



On 02/07/2014 11:12, Daniel Naber wrote:
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

Reply via email to