public static int IndexWithAnimate(this Case @case, Gender gender) { var i = 0; switch (@case) { case Case.Nominative: i = 0; break; case Case.Genitive: i = 1; break; case Case.Dative: i = 2; break; case Case.Accusative: i = gender.Animacy() == LingvoNET.Animacy.Animate ? 4 : 3; break; case Case.Instrumental: i = 5; break; case Case.Locative: i = 6; break; case Case.Short: i = 7; break; } return(i); }