added to old extract_ngrams to have it in the repo