Tidying up

Found a more accurate way to search speech hypotheses for word
categories