Words near ruled surface in the dictionary