예제 #1
0
 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"
예제 #2
0
 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"
예제 #3
0
def test_makfa():
    assert selmaho("u'i")[1] == ["UI1"]
    assert selmaho("coi")[1] == ['COI', 'DOhU']