Back to LanguageTool Homepage - Privacy - Imprint

Rule should not apply when token is followed by a noun


(Michael) #1

Hello,
I wrote a rule that should find "the Blueprint" (or "Studio) but not when followed by a noun e.g. "the Blueprint components". My rule is as follows:



the|The

Studio|Blueprint

Nevertheless, it founds "the Blueprint" in the sentence:

"In order to be able to explore the Blueprint features, ..."

Is my rule wrong or do I have to enable postags? I use the Java API and not the standalone program.

Best regards,
Michael


(Daniel Naber) #2

It's indeed complicated because "features" can be both a noun and a verb. I think this will work for the last token:

The non-negated case is described here: http://wiki.languagetool.org/tips-and-tricks#toc10


(Michael) #3

I don't know why but it seems to work :wink:
Thank you!