http://shoorick.ru/2018/10/05/inflect-006/
Склоняем точнее