Words near Fermat's last theorem in the dictionary