Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
returns the final form of the verb => a list with one element       
Input=sentence, main verb and the tense                Output=verb               

        def return_verb(phrase, main_verb, tense):
    """
    returns the final form of the verb => a list with one element       
    Input=sentence, main verb and the tense                Output=verb               
    """

    #To have the infinitive form
    verb = infinitive(main_verb, tense)

    #If the main verb is not on the end of the sentence
    if phrase[len(phrase) - 1] != main_verb[0]:

        #We will recover the proposal of the verb
        for i in ResourcePool().preposition_verbs:
            if verb[0] == i[0] and phrase[phrase.index(main_verb[0]) + 1] == i[1]:
                return verb + [phrase[phrase.index(main_verb[0]) + 1]]

    #Default case : we return the main verb in infinitive form
    return verb
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
        #We process the verb
        verb = analyse_verb.find_verb_question(sentence, aux, vg.vrb_tense)
        verb_main = analyse_verb.return_verb(sentence, verb, vg.vrb_tense)
        vg.vrb_main = [other_functions.convert_to_string(verb_main)]
 
 
        verb = analyse_verb.find_verb_statement(sentence, vg.vrb_tense)
        verb_main = analyse_verb.return_verb(sentence, verb, vg.vrb_tense)
        vg.vrb_main = [other_functions.convert_to_string(verb_main)]
 
        #We process the verb
        verb = [sentence[0]]
        verb_main = analyse_verb.return_verb(sentence, verb, vg.vrb_tense)
        vg.vrb_main = [other_functions.convert_to_string(verb_main)]
 

src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_verbal_structure.py   Dialogs(Download)
    #We process the verb
    if scd_sentence[0] == 'not':
        scd_verb = [other_functions.convert_to_string(analyse_verb.return_verb(scd_sentence, [scd_sentence[1]], ''))]
        vg.sv_sec = vg.sv_sec + [Verbal_Group(scd_verb, [], '', [], [], [], [], Verbal_Group.negative, [])]
        #We delete the verb
        scd_sentence = scd_sentence[phrase.index(scd_sentence[1]) + 1:]
    else:
        scd_verb = [other_functions.convert_to_string(analyse_verb.return_verb(scd_sentence, [scd_sentence[0]], ''))]