May-24-2017, 08:05 AM
Oh yeah, you're right
Thanks for your remark.
Now, this wokrs:
Thanks for your remark.
Now, this wokrs:
try: if noun[-2:] == "st": poss_verb = noun.lower() + "eln" if gn.synsets(poss_verb, pos='v') == []: poss_verb = noun.lower() + "ern" if gn.synsets(poss_verb, pos='v') == []: poss_verb = noun.lower().replace('u', 'ü') + "eln" if gn.synsets(poss_verb, pos='v') == []: poss_verb = noun.lower().replace('a', 'ä') + "igen" return poss_verb except: return []But question: Is it possible to write this a bit nicer / smoother, or is there no other way?