Tools for analyzing ngrams