If adjective ends in -y, then this changes to -i- when -ness is suffixed. This occurs both when the -y is the suffix -y (“having the quality of”), as in mess → messy → messiness (hence -y → -i-), but also in other cases, as in comely → comeliness.