W dniu 2014-05-29 06:26, Kumara Bhikkhu pisze:
> I need help on this:
>
> <rule id="ID"
> name="These|Those + Singular Noun">
>   <pattern>
>    <token regexp='yes'>these|those</token>
>    <token postag='NN|NN:UN' postag_regexp='yes'><exception
> postag='IN|VBP' postag_regexp='yes'/></token>
>   </pattern>
>   <message><suggestion><match
> no="1"/></suggestion> should be followed by a singular
> noun.</message>
>   <short>Grammar</short>
>   <example type='incorrect'>I find <marker>these
> translation</marker> misleading.</example>
>   <example type='correct'>I find these translations
> misleading.</example>
>   <example type='correct'>I find this translation
> misleading.</example>
> </rule>
>
> I get one false alarm:
> 113 of _these mollusk_ species have never been collected outside of the
> state
>
> So, I tried adding this to token 2:
>
> <exception
> chunk="E-NP-singular"/>
>
> But got an error message.

Hm, there's already THIS_NNS[2] rule that finds these|those + singular 
noun. Is there any mistake that it does not find? It definitely detects 
the mistake as specified in your example above.

Regards,
Marcin


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
Languagetool-devel mailing list
Languagetool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/languagetool-devel

Reply via email to