Add ngram methods.