Added calculate_word_probabilities function.