Words near p-frames in the dictionary