Separated bigram analysis from the code that generates the all-text file