Generate ngrams and calculate fitness of texts for use in cryptanalysis.