92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
if mbSg(l1) and not mbSg(l2):
return False
if mbPl(l1) and not mbPl(l2):
return False
# check gender agreement
if mbEpi(l1) or mbEpi(l2):
return True
if mbMas(l1) and not mbMas(l2):
return False
if mbFem(l1) and not mbFem(l2):
return False
return True
def checkConjVerb (lMorph, sReqConj):
"returns True if <sReqConj> in <lMorph>"
return any(sReqConj in s for s in lMorph)
|
|
|
|
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
if mbSg(l1) and not mbSg(l2):
return False
if mbPl(l1) and not mbPl(l2):
return False
# check gender agreement
if mbEpi(l1) or mbEpi(l2):
return True
if isMas(l1) and not mbMas(l2):
return False
if isFem(l1) and not mbFem(l2):
return False
return True
def checkConjVerb (lMorph, sReqConj):
"returns True if <sReqConj> in <lMorph>"
return any(sReqConj in s for s in lMorph)
|