def punc_entry(punc_lex, next_index): type, = punc_lex syn_val = SynValue("PuncLex", True) syn_val["type"] = type return syn_val, [], {}, [], next_index
def pron_entry(next_index): syn_val = SynValue("PronLex", True) relspec = Relspec("PronRel", {}) root, next_index = add_role(next_index, relspec, "PRON") return syn_val, relspec, {"root": root}, [], next_index
def copula_verb_entry(verb_lex, next_index): vform, = verb_lex syn_val = SynValue("VerbLex", True) syn_val["vform"] = vform syn_val["copula"] = "+" if vform == "bare": syn_val["irrPlu"] = "+" syn_val["irr1st"] = "+" syn_val["irr3ps"] = "+" syn_val["irrPast"] = "+" syn_val["irrPerf"] = "+" return syn_val, [], {}, [], next_index
def verb_syn_val(vform, irr): syn_val = SynValue("VerbLex", True) syn_val["vform"] = vform if vform == "bare": syn_val["irrPlu"] = "-" syn_val["irr1st"] = "-" syn_val["irr3ps"] = "-" if irr: syn_val["irrPast"] = "+" syn_val["irrPerf"] = "+" else: syn_val["irrPast"] = "-" syn_val["irrPerf"] = "-" return syn_val
def prep_syn_val(): syn_val = SynValue("PrepLex", True) return syn_val
def noun_syn_val(): syn_val = SynValue("NounLex", True) syn_val["regPlu"] = True return syn_val
def suff_syn_value(suff_type, orth_form): syn_val = SynValue("SuffLex", True) syn_val["suffType"] = suff_type syn_val["rootForm"] = orth_form return syn_val
def det_syn_val(sg, plu): syn_val = SynValue("DetLex", True) syn_val["agr"] = {"sg": sg, "plu": plu} return syn_val