Back to LanguageTool Homepage - Privacy - Imprint

Highlighting


(Aafreen) #1

Is there any way to highlight a token before a specific token without using marker tag.

<rule id='chk' name='chk'>
<pattern>
<marker>
<token>nice</token>
<token min='0'>person</token>
</marker>
</pattern>
<message>chk</message>
</rule>

This rule highlights the first sentence but not the second sentence.

  1. I see a nice person.
  2. I see a nice girl. (not highlighted even I denoted the word person may or may not appear)