Words near trajectories in the dictionary