Thanks, it worked and I have committed the rules.
On 31/07/2015 09:11, Mike Unwalla wrote:
Hi Marco, Can you do what you want with: <token min="0" max="1"/> Refer to http://wiki.languagetool.org/development-overview#toc13 Regards, Mike Unwalla Contact: www.techscribe.co.uk/techw/contact.htm -----Original Message----- From: Marco A.G.Pinto [mailto:marcoagpi...@mail.telepac.pt] Sent: 31 July 2015 08:21 To: Mailing List - LanguageTool Subject: Question about creating a rule (Portuguese) Hello! I want to create the rule: CAPTURAR imagens -> CAPTAR imagens (capture images) But I wanted to allow to a word to be placed or not between both words. "CAPTURAR AS imagens" "CAPTURAR VÁRIAS imagens" etc. How do I create it? I have written: <!-- CAPTURAR IMAGENS captar imagens --> <rule id="CAPTURAR_IMAGENS" name="captar imagens"> <pattern> <marker> <token>capturar</token> </marker> <token></token> <token>imagens</token> </pattern> <message>Substituir «capturar» por <suggestion>captar</suggestion>.</message> <example correction="captar">Vamos <marker>capturar</marker> imagens.</example> </rule> Thanks! Kind regards, >Marco A.G.Pinto -----------------------
--
------------------------------------------------------------------------------
_______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel