yamp\'s ground type judgment