Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
returns the infinitive form of the verb                             
'verb' is the base so it is just the first element of Verb (list of one element) 
Input=main verb and the tense           Output=main verb in infinitive form      

        def infinitive(verb, tense):
    """
    returns the infinitive form of the verb                             
    'verb' is the base so it is just the first element of Verb (list of one element) 
    Input=main verb and the tense           Output=main verb in infinitive form      
    """

    #processing for the future simple
    if tense == 'future simple':
        return verb

    #processing for the present simple
    elif tense == 'present simple':
        for i in ResourcePool().irregular_verbs_present:
            if i[1] == verb[0] or i[0] == verb[0]:
                return [i[0]]

        if verb[0].endswith('s'):
            return [verb[0][0:len(verb[0]) - 1]]

    #processing for the past simple, present perfect, past perfect, present passive and past passive
    elif tense == 'present perfect' or tense == 'past perfect' or tense == 'present passive' or tense == 'past passive' or tense == 'passive conditional':
        for i in ResourcePool().irregular_verbs_past:
            if i[2] == verb[0]:
                return [i[0]]
        if verb[0].endswith('ed'):
            return [verb[0][0:len(verb[0]) - 2]]

    #processing for the past simple, present perfect, past perfect, present passive and past passive
    elif tense == 'past simple':
        for i in ResourcePool().irregular_verbs_past:
            if i[1] == verb[0]:
                return [i[0]]
        if verb[0].endswith('ed'):
            return [verb[0][0:len(verb[0]) - 2]]

    #processing for the progressive forms
    elif tense == 'present progressive' or tense == 'past progressive':
        for i in ResourcePool().irregular_verbs_present:
            if i[2] == verb[0]:
                return [i[0]]
        if verb[0].endswith('ing'):
            return [verb[0][0:len(verb[0]) - 3]]

    #processing for the conditional forms
    elif tense == 'present conditional':
        return infinitive(verb, 'present simple')
    elif tense == 'past conditional':
        return infinitive(verb, 'present perfect')

    #Default case
    return verb
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
 
    #We have to separate the case using these, this or there
    if sentence[0] in ResourcePool().demonstrative_det and analyse_verb.infinitive([aux], 'present simple') == ['be']:
        #If we have a verb or an adverb just after (if not, we have a noun)
        if sentence[0].endswith('ed') or sentence[0].endswith('ing') or sentence[0].endswith('ly') or sentence[
 
        #We have to separate the case using these, this or there
        if sentence[0] in ResourcePool().demonstrative_det and analyse_verb.infinitive([sentence[1]],
                                                                                       'present simple') == ['be']:
            #We recover this information and remove it