title: Get truth values out of repeating adjectives
body: <p>I have an array with different texts. Some of them have repeating adjectives. Now I want to make an array out of this, that contanes truth values with 1 = text contains a repeating adjective and 0 = text does not contain a repeating adjective. This is a sample of my text:</p>
  
  <pre class="lang-py prettyprint-override"><code>text = (['When someone who is extremely selfish dramatically
   wonders why people are so selfish !', 'I asked God to 
  protect me from my enemies .. shortly after I started losing friends'])
  </code></pre>
  
  <p>So far I tried to get the type of a word with wordnet</p>
  
  <pre class="lang-py prettyprint-override"><code>from nltk.corpus import wordnet as wn
  
  my_list = []
  for synset in list(wn.all_synsets('a')):
      my_list.append(synset)
  my_list
  
  truth_values = []
  for sentence in text:
      for word in sentence:
          if word in my_list:
              truth_values.append(1)
  from nltk.corpus import wordnet as wn
  
  </code></pre>
  
  <p>This code gives me the following error:</p>
  
  <pre><code>'str' object has no attribute '_name'
  </code></pre>
  
  <p>For the dublicate condition I thougt of a counter like</p>
  
  <pre><code>if counter &gt;=1:
      truth_value.append(1)
  </code></pre>