getSuffixYinUnU static method
YIN comes after a vowel, UN comes after a consonant, U comes after N.
Implementation
static String getSuffixYinUnU(
Gender previousWordGender, int previousWordLastChar) {
if (MongolCode.isVowel(previousWordLastChar)) {
return Suffix.YIN;
} else if (previousWordLastChar == Unicode.NA) {
if (previousWordGender == Gender.MASCULINE) {
return Suffix.U;
} else {
return Suffix.UE;
}
} else {
if (previousWordGender == Gender.MASCULINE) {
return Suffix.UN;
} else {
return Suffix.UEN;
}
}
}