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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -