title: How can I detect if it is a negation with a verb in a sentence using spacy(or other library)?
body: <p>..Hello Everybody! I'm working on an NLP project, and I want to detect if there is a negation with a given verb in a sentence </p>
  
  <p>For example : the function "Is_there_negation" should return "True" with the following parameters :</p>
  
  <pre><code>text:"I don't want to eat right now"
  verb:"eat"
  </code></pre>
  
  <p>How can I complete this function(I'm really beginner in NLP)</p>
  
  <pre><code>import spacy
  nlp = spacy.load("en_core_web_sm")
  
  
  def Is_there_negation(doc,verb):
      for token in doc :
          if(token.dep_=="neg" and token.head.text==verb):
              return True
  
          elif(token.text==verb):
              for tk in token.subtree:
                  .
                  .
                  .
  
      return False    
  </code></pre>
  
  <p>Thanks in advance </p>