Dominique, my dear friend! It worked!
Thank you very much! LanguageTool's mailing list is just like a brotherhood :-P Kind regards, >Marco A.G.Pinto ------------------------ On 04/02/2014 23:08, Dominique Pellé wrote: > Marco A.G.Pinto <marcoagpi...@mail.telepac.pt> wrote: > >> Hello! >> >> I was trying to create a rule based on the book I purchased: >> "Como é os tomates?" >> "Como é as peras?" >> >> ("What is the price of blah blah" asking in a store/fair) >> >> The rule would check for the words: >> 1) como >> 2) é >> 3) os/as (I used a regexp="yes") >> >> and suggest to change the 2) "é" (singular) with "são" (plural) >> >> >> <!-- A COMO É AS/OS a como são as/os --> >> <rule id="A_COMO_É_AS_OS" name="a como são as/os"> >> <pattern> >> <marker> >> <token>a</token> >> <token>como</token> >> <token>é</token> >> <token regexp="yes">os|as</token> >> </marker> >> </pattern> >> <message>Substituir «a como é» por <suggestion>a como >> são</suggestion>.</message> >> <example type="incorrect"><marker>A como é os >> tomates</marker>?</example> >> <example type="correct"><marker>A como são os >> tomates</marker>?</example> >> </rule> >> >> When I type: testrules pt it gives errors :( >> >> I am still facing difficulties creating more complex rules :( >> >> Can someone suggest how to fix this rule? > > I did not try, but I think that the position of <marker>...</marker> > is inconsistent between the pattern and the example. > > Instead of ... > > <example type="incorrect"><marker>A como é os tomates</marker>?</example> > > ... it should be... > > <example type="incorrect"><marker>A como é os</marker> tomates?</example> > > Regards > Dominique ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel