Given a stop word list, one can apply the algorithm given in the text to generate code for a FSM that will recognize stop words.