Thanks Daniel. Problem solved.

Mike

-----Original Message-----
From: Daniel Naber [mailto:daniel.na...@languagetool.org] 
Sent: 04 February 2016 20:41
To: development discussion for LanguageTool
Subject: Re: EnglishPartialPosTagFilter: ise|wise problem

On 2016-02-03 17:44, Mike Unwalla wrote:

>         <token regexp="yes">(color)(?:ise|wise)</token>

This internally is matched as 'color' and 'wise', as expected.

>         <token regexp="yes">([a-z]+)(?:ise|wise)</token>

This instally is matched as 'colorw' and 'ise', and 'colorw' doesn't 
have a NN reading. The solution is, I think, to use 
"([a-z]+?)(?:ise|wise)" - the question mark makes the first part 
non-greedy.

Regards
  Daniel


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to