Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
returns the time of conjugation of the verb in a question          
We have to know the list of adverbs before the verb                              
Input=sentence, auxiliary and the adverb bound to the verb       Output=tense     

        def find_tense_question(phrase, aux):
    """
    returns the time of conjugation of the verb in a question          
    We have to know the list of adverbs before the verb                              
    Input=sentence, auxiliary and the adverb bound to the verb       Output=tense     
    """

    if phrase[0] == 'be':
        if find_tense_statement(phrase) == 'present passive':
            #For using modal
            if aux == 'should' or aux == 'might' or aux == 'could':
                return 'passive conditional'
            else:
                return 'present passive'

    #Processing for the future simple
    if aux == 'will':
        return 'future simple'

    #Duality between progressive, passive and present simple
    elif aux == 'is' or aux == 'are' or aux == 'am':

        if phrase[0].endswith('ing') and not (phrase[0].endswith('thing')):
            return 'present progressive'
        elif phrase[0].endswith('ed'):
            #If there is an adjective and not a verb
            if phrase[1] in ResourcePool().adjective_verb:
                return 'present simple'
            return 'present passive'
        for i in ResourcePool().irregular_verbs_past:
            if phrase[0] == i[2]:
                return 'present passive'
        else:
            return 'present simple'

    #Duality between progressive, passive and past simple
    elif aux == 'was' or aux == 'were':
        if phrase[0].endswith('ing') and not (phrase[0].endswith('thing')):
            return 'past progressive'
        elif phrase[0].endswith('ed'):
            #If there is an adjective and not a verb
            if phrase[1] in ResourcePool().adjective_verb:
                return 'past simple'
            return 'past passive'
        for i in ResourcePool().irregular_verbs_past:
            if phrase[0] == i[2]:
                return 'past passive'
            else:
                return 'past simple'

    #Processing for the present perfect
    elif aux == 'have' or aux == 'has':
        if phrase[0].endswith('ed'):
            return 'present perfect'
        for i in ResourcePool().irregular_verbs_past:
            if phrase[0] == i[2]:
                return 'present perfect'

    #Processing for the past perfect
    elif aux == 'had':
        if phrase[0].endswith('ed'):
            return 'past perfect'
        for i in ResourcePool().irregular_verbs_past:
            if phrase[0] == i[2]:
                return 'past perfect'

    #Processing for the past perfect
    elif aux == 'would':
        return find_tense_statement(['would'] + phrase)

    #For using modal
    elif aux == 'should' or aux == 'might' or aux == 'could':
        return 'present conditional'

    #Default case
    else:
        return find_tense_statement([aux])
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
        sentence = analyse_verbal_structure.delete_unusable_word(sentence)
        sentence = analyse_verbal_structure.find_vrb_adv(sentence, vg)
        vg.vrb_tense = analyse_verb.find_tense_question(sentence, aux)
 
        #We process the verb