Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
find the verb in a question                                        
Input=sentence, tense, auxiliary and the adverb bound to the verb                 
Output=main verb                                                                

        def find_verb_question(phrase, aux, tense):
    """
    find the verb in a question                                        
    Input=sentence, tense, auxiliary and the adverb bound to the verb                 
    Output=main verb                                                                
    """

    #Phrase is empty
    if len(phrase) == 0:
        return []

    #If it is in the present with a verb state
    if aux == 'is' or aux == 'are' or aux == 'am':
        if tense == 'present simple':
            return [aux]

    #If it is in the past with a verb state
    if aux == 'was' or aux == 'were':
        if tense == 'past simple':
            return [aux]

    if tense == 'past conditional' or tense == 'passive conditional':
        return [phrase[1]]

    if tense == 'present passive' and phrase[0] == 'be':
        return [phrase[1]]

    #When others
    return [phrase[0]]
        


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)]