original_docstring: 
      Check if a message is in the imperative tense
      
docstring: Check if a message is in the imperative tense
docstring_tokens: Check if a message is in the imperative tense
code: def is_imperative(msg):
      '''
      Check if a message is in the imperative tense
      '''
      nlp = spacy.load('en_core_web_sm')
      out = nlp(msg)
  
      if out[0].tag_ != 'VB':
          print('%s is not a simple verb' % out[0].text)
          return 0
  
      # check if there is a word that breaks imperative tense
      for word in out:
          if word.text.lower() in non_imperative_words:
              return 0
  
      return 1
code_tokens: def is_imperative ( msg ) : nlp = spacy . load ( 'en_core_web_sm' ) out = nlp ( msg ) if out [ 0 ] . tag_ != 'VB' : print ( '%s is not a simple verb' % out [ 0 ] . text ) return 0 for word in out : if word . text . lower ( ) in non_imperative_words : return 0 return 1
short_docstring: Check if a message is in the imperative tense
short_docstring_tokens: Check if a message is in the imperative tense
comment: '''
      Check if a message is in the imperative tense
      '''$SEP$# check if there is a word that breaks imperative tense