Words near DOM implementation in the dictionary