Words near q-codes in the dictionary