Analyses text for n-graphs.