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:
to|“SENT_END”

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

<or>
  <token>to</token>
  <token postag="SENT_END"/>
</or>

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>