add maxLength Ngram