Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
This function return the possibility to have an imperative
Input=sentence        Output=0 can be imperative and 1 no

        def can_be_imperative(sentence):
    """
    This function return the possibility to have an imperative
    Input=sentence        Output=0 can be imperative and 1 no
    """

    if not sentence:
        return False
    if sentence[0] in ResourcePool().adverbs + ResourcePool().proposals:
        return False
    if sentence[0] == '.' or sentence[0] == '?' or sentence[0] == '!':
        return False

    return True
        


src/d/i/Dialogs-0.13/src/dialogs/parsing/analyse_sentence.py   Dialogs(Download)
        sentence = analyse_nominal_structure.recover_ns(sentence, analysis, 0)
 
    if aux == 'do' and not analyse_verbal_structure.can_be_imperative(sentence):
        return other_sentence('', '', stc)