state machine used to find words in an input text
final StateMachine<WordState, String> stateMachine;