Words near RPQ in the dictionary