adds ngram functionality, allowing phrases of longer length