Words near calculus of variations in the dictionary