Back to LanguageTool Homepage - Privacy - Imprint

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


(Kumara) #1

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?


(Mike Unwalla) #2
<or>
  <token>to</token>
  <token postag="SENT_END"/>
</or>

Refer to http://wiki.languagetool.org/development-overview#toc15


(Kumara) #3

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


(Tiago F. Santos) #4

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

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