Words near q-code in the dictionary