Marco,
You can write:
<rule id="AS_A-OS_O" name="Erro de concordância do plural">
<pattern>
<marker>
<token postag='DA0FP0'></token>
</marker>
<token postag='NCFS000'></token>
</pattern>
<message>Erro de concordância do plural.</message>
<suggestion>a</suggestion>
<example correction='A'><marker>As</marker> vaca está no
pasto.</example>
<example>A vaca está no pasto.</example>
</rule>
But if you want to go ahead and write properly more rules like this, you
will need to use synthensis and disambiguation.
I can enable the synthesizer for Portuguese (the synthesis dictionary is
already there), and I can also point out some strategies for
disambiguation, that will be similar to the ones used in Catalan, I guess.
But it can become quite complicated.
Regards,
Jaume
2015-04-21 14:26 GMT+02:00 Marco A.G.Pinto <marcoagpi...@mail.telepac.pt>:
> Thanks, Jaume!
>
> It works without suggestions.
>
> What if I want to suggest "a" to replace "as"?
>
> I tried:
> <!-- Concordance error plural - BRAZILIAN USER-->
> <rule id="AS_A-OS_O" name="Erro de concordância do plural">
> <pattern>
> <token postag='DA0FP0'></token>
> <token postag='NCFS000'></token>
> </pattern>
> <message>Erro de concordância do plural.</message>
> *<example correction='a'><marker>As</marker> vaca está no
> pasto.</example>*
> <example>A vaca está no pasto.</example>
> </rule>
>
> But it gives errors in TESTRULES PT.
>
> I have to leave to university soon... At night, if you reply, I will try
> again after I am back home.
>
> Thanks!
>
> PS->We are in the good path!
>
> Kind regards,
> >Marco A.G.Pinto
> ----------------------
>
> On 21/04/2015 13:13, Jaume Ortolà i Font wrote:
>
> Hi,
>
> You have a problem in the example correction. The rule should look like
> this:
>
> <rule id="AS_A-OS_O" name="Erro de concordância do plural">
> <pattern>
> <token postag='DA0FP0'></token>
> <token postag='NCFS000'></token>
> </pattern>
> <message>Erro de concordância do plural.</message>
> <example correction=''><marker>As vaca</marker> está no pasto.</example>
> <example>A vaca está no pasto.</example>
> </rule>
>
> If there is no suggestion, the correction field has to be empty.
>
> Regards,
> Jaume Ortolà
>
>
>
> 2015-04-21 13:57 GMT+02:00 Marco A.G.Pinto <marcoagpi...@mail.telepac.pt>:
>
>> Hello!
>>
>> I have tried to use an example posted in the forum by a Brazilian user:
>> * <!-- Concordance error plural - BRAZILIAN USER-->*
>> * <rule id="AS_A-OS_O" name="Erro de concordância do plural">*
>> * <pattern>*
>> * <token postag='DA0FP0'></token>*
>> * <token postag='NCFS000'></token>*
>> * </pattern>*
>> * <message>Erro de concordância do plural.</message>*
>> * <example correction="TESTE"><marker>As vaca</marker> está no
>> pasto.</example>*
>> * <example>A vaca está no pasto.</example>*
>> * </rule> *
>>
>> For example: using plural/singular incorrectly.
>>
>> But, this gives errors when I use TESTRULES PT in the command line.
>>
>> How can I fix it?
>>
>> Thanks!
>>
>> Kind regards,
>> >Marco A.G.Pinto
>> ----------------------
>>
>
>
> --
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Languagetool-devel mailing list
> Languagetool-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
>
>
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel