Rule Making: How to mix postag and word in a token?

I want to make a rule with a token that has this (theoretical) form:

LT doesn’t recognise it. How can I make this work?

  <token postag="SENT_END"/>

Refer to Development Overview - LanguageTool Wiki

1 Like

Ah, right. Thanks, Mike!
This can’t be done with Rule Editor, right?

When you say | means ‘or’. This is might have caused a confusion.

Try instead <token postag='SENT_END'>to</token>