345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
|
return True
return False
def switchGender (sFlex, bPlur=None):
"return feminine or masculine form(s) of <sFlex>"
aSugg = set()
if bPlur == None:
for sMorph in _oSpellChecker.getMorph(sFlex):
if ":f" in sMorph:
if ":s" in sMorph:
aSugg.add(suggMasSing(sFlex))
elif ":p" in sMorph:
aSugg.add(suggMasPlur(sFlex))
elif ":m" in sMorph:
|
|
|
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
|
return True
return False
def switchGender (sFlex, bPlur=None):
"return feminine or masculine form(s) of <sFlex>"
aSugg = set()
if bPlur is None:
for sMorph in _oSpellChecker.getMorph(sFlex):
if ":f" in sMorph:
if ":s" in sMorph:
aSugg.add(suggMasSing(sFlex))
elif ":p" in sMorph:
aSugg.add(suggMasPlur(sFlex))
elif ":m" in sMorph:
|