ending of a word — The part that changes in a predicate or predicative particle '이다' (be) when it undergoes an conjugation.
'먹다', '먹으며', '먹고'에서 '-다', '-으며', '-고'가 어미이다.