Words near Boyer-Moore algorithm in the dictionary