Remove postag_regexp="yes"  

The postag VMIP1P0 is not a regular expression.

Regards,

Mike Unwalla
Contact: www.techscribe.co.uk/techw/contact.htm 

-----Original Message-----
From: Marco A.G.Pinto [mailto:marcoagpi...@mail.telepac.pt] 
Sent: 03 December 2015 12:51
To: Mailing List - LanguageTool
Subject: Error creating a pt_PT rule

Hello!

I tried to create the following rule:
    <!-- NOS + VERB - nós + verb -->
    <rule id="NOS_VERBO" name="nós + verbo">
      <pattern>
        <marker>
            <token>nos</token>      
        </marker>
        <token postag_regexp="yes"  postag="VMIP1P0"></token>     
     </pattern>          
     <message>Substituir «nos» por <suggestion>nós</suggestion>.</message>
     <example correction="nós">Todos <marker>nos</marker> sabemos.</example>    
      
    </rule> 

But when I type: "testrules pt" on Windows CLI it says:
"blah blah The Portuguese rule: NOS_VERBO[1] (POS tag), token [2], contains 
"VMIP1P0" that is marked as regular expression but probably is not."

How do I fix this?

Thanks!

Kind regards,
      >Marco A.G.Pinto
        ------------------------



-- 



------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to