我想得到动词的“ing”形式。
目前我正在使用这种方法,它依赖于Nodebox English Linguistics library。而且我的代码在大多数情况下都会失败。
from libs.en import *
def get_contineous_tense(i_verb):
i_verb = verb.infinitive(i_verb) #Make sure that the verb is in infinfinitive form
temp = i_verb + 'ing'
if verb.infinitive(temp) == i_verb:
return temp
temp = i_verb + i_verb[-1:] + 'ing'
if verb.infinitive(temp) == i_verb:
return temp
#......... Continues like This
print get_contineous_tense('played')