script to extract ngrams from jstor files