changed name to more meaningful 'extract_ngrams'