Words near ribbon-representation in the dictionary