title: Detect words in quotation in a list
body: <p>I have a list that corresponds to a question like this:</p>
  
  <pre><code>my_list = ["What", "language", "does", "the", "word", "«", "vibrato", "»", "come", "from", "?"]
  </code></pre>
  
  <p>And my program detects if there is a negation in this question (by detecting the words <em>"not", "don't"</em>...).</p>
  
  <p>The problem is that it also detects these words when they are in a quotation, which is undesired e.g. if it's the name of a movie.</p>
  
  <p>How can I detect negation words in my sentence only when they do not occur between quotation marks?</p>
  
  <hr>
  
  <p>Example: suppose my list is: </p>
  
  <pre><code>my_list = ["who", "is", "not", "an", "animal", "?"]
  </code></pre>
  
  <p>It's a negative question but if I have:</p>
  
  <pre><code>my_list = ["who", "is", "James Bond", "in", "the", "movie", "«", "kill", "is", "not", "a", "game", "»", "?"]
  </code></pre>
  
  <p>It's not a negative question because the only negation is in a quote.</p>
  
  <hr>
  
  <p>Currently, my program to detect negation is:</p>
  
  <pre><code>for words in my_list:
      for nword in negative_words:
          if words == nword:
              nega = True
              my_list.remove(words)
  </code></pre>