getMispellingWordsProbabilities function

fixing bug