/tsimapiak/parsenum.py |
---|
65,7 → 65,7 |
def parse(numin): |
if u"mm" in numin: |
return None |
if (numin[0] == u"a") and (numin[len(numin)-1] == u"a"): |
if (numin == u"") or ((numin[0] == u"a") and (numin[len(numin)-1] == u"a")): |
return None |
prefs = [] |
posts = [] |
/tsimapiak/parse.py |
---|
47,7 → 47,7 |
for word in wordlist: |
if brokenword[1] == word["navi"]: |
tempid = word["id"] |
temptype = word["partOfSpeech"] |
temptype = word["type"] |
return {"word": {"id": tempid, "navi": brokenword[1], "infix": u"", "type": temptype}, "pref": brokenword[5], "post": brokenword[6], "len": brokenword[7], "inf": (brokenword[2], brokenword[3], brokenword[4]) } |
ret = {"word": {"id": 0, "navi": u"[" + wordin[0] + u"]", "infix": u"", "type": u""}} |
for word in wordlist: |