ngram arbitrary size fix, tldr logic fix