Hi Marco,

This should get you started:
<rule id="CONFUSION_OF_VESTIR_CALCAR" name="confusion of vestir/calcar">  
<pattern> <token>vestir</token> <token regexp="yes">os|o|a|as</token> <token 
regexp="yes">sapatos|sapato|chinelo|chinelos|meias|meia</token> </pattern> 
<message>Use calçar</message> <example type="incorrect"><marker>Vestir os 
sapatos</marker></example> <example type="correct">Calçar os sapatos</example> 
</rule>

Complete the regexp tokens with all the needed words and translate the messages.

Ciao!

Paolo

> On 10/ott/2013, at 23:07, "Marco A.G.Pinto" <[email protected]> 
> wrote:
> 
> Hello!
> 
> I want to create a XML rule to deal with the fact that some people use 
> incorrectly the "vestir" and "calçar" (dress/wear) in Portuguese.
> 
> Basically, I only have to check if people used "vestir" instead of "calçar". 
> In objects worn in the feet/hands we must use "calçar" and in the other cases 
> "vestir".
> 
> I tried to think about all the possible objects and I think they are just 
> these five.
> 
> I have added the words in plural and singular.
> 
> These are the correct sentences:
> 
> - calçar os sapatos
> - calçar o sapato
> 
> - calçar os chinelos
> - calçar o chinelo
> 
> - calçar as meias
> - calçar a meia
> 
> - calçar as luvas
> - calçar a luva
> 
> - calçar as botas
> - calçar a bota
> 
> Could someone give a hand?
> 
> Thanks!
> 
> PS-> Sorry for not being much active lately but I now have two part-time 
> jobs. In the supermarket one I work as a cashier on weekends and, in my new 
> one, I am a Moodle administrator of a university. They said I would only have 
> to be physically present once a week and work from home, but last Tuesday 
> they told me that next week four courses begin and that I needed to have 
> everything ready until tomorrow. I have been working 10-12 hours/day and a 
> couple of hours ago I finished inserting the teachers and students and 
> tomorrow I am going to rest.
> 
> Kind regards,
>       >Marco A.G.Pinto
>         -----------------------
> 
> -- 
> <emails_signature2013e.png>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
> _______________________________________________
> Languagetool-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/languagetool-devel
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to