They're written out in the "faux lexer".

* in word
* not in word 
* word character
* not word character

It's not terribly obvious. I thought about writing it out and also about abstracting it altogether, but ... didn't.