python - How to generate the Present Continuous Tense - The ING Form Of The Verbs? -
i wan to 'ing' form of verb.
currently using method depends on nodebox english linguistics library. , code fails in cases.
from libs.en import * def get_contineous_tense(i_verb): i_verb = verb.infinitive(i_verb) #make sure verb 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 print get_contineous_tense('played')
verb.present_participle(word)
this functionality comes nodebox english linguistics, documented right in link gave.
Comments
Post a Comment