def test_declension_nouns(self): noun_sumar = decl_utils.DeclinableOneGender("sumar", decl_utils.Gender.neuter) noun_sumar.set_declension(nouns.sumar) self.assertEqual( noun_sumar.get_declined(decl_utils.Case.nominative, decl_utils.Number.plural), "sumur")
"""Noun declensions""" import cltk.inflection.utils as decl_utils __author__ = [ "Clément Besnier <*****@*****.**>", ] sumar = [["sumar", "sumar", "sumri", "sumars"], ["sumur", "sumur", "sumrum", "sumra"]] noun_sumar = decl_utils.DeclinableOneGender("sumar", decl_utils.Gender.neuter) noun_sumar.set_declension(sumar)