def _normalize_word_vowel_ending_dravidian(self, word): """ for Dravidian - consonant ending: add 'a' ki maatra - halant ending: no change - 'a' ki maatra: no change """ if len(word) > 0 and langinfo.is_consonant(word[-1], self.lang): return word + langinfo.offset_to_char(0x3e, self.lang) else: return word
def _normalize_word_vowel_ending_ie(self, word): """ for IE - consonant ending: add halant - halant ending: no change - 'a' ki maatra: no change """ if len(word) > 0 and langinfo.is_consonant(word[-1], self.lang): return word + langinfo.offset_to_char(langinfo.HALANTA_OFFSET, self.lang) else: return word