def __init__(self, typ, word): if typ.startswith(("gismu", "lujvo", "fu'ivla")): self.typ = "BRIVLA" elif typ == "cmavo(s)": self.typ = camxes.selmaho(word)[1][0] else: self.typ = typ self.word = word if not word: self.typ = "EOF"
def test_makfa(): assert selmaho("u'i")[1] == ["UI1"] assert selmaho("coi")[1] == ['COI', 'DOhU']