def detect_missing_verb(sentence):
    """Return True if the sentence appears to be missing a main verb"""
    # TODO: should this be relocated?
    doc = nlp(sentence)
    for w in doc:
        if w.tag_.startswith('VB') and w.dep_ == 'ROOT':
            return False # looks like there is at least 1 main verb
    return True
def detect_missing_verb ( sentence ) : doc = nlp ( sentence ) for w in doc : if w . tag_ . startswith ( 'VB' ) and w . dep_ == 'ROOT' : return False return True
Return True if the sentence appears to be missing a main verb