我想知道动词的“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')
这是NodeBox英语语言学附带的功能,在你给出的链接中有记录。在
相关问题 更多 >
编程相关推荐