title: NLTK - WordNet: list of long words
body: <p>I would like to find words in WordNet that are at least 18 character long. I tried the following code:</p>
  
  <pre><code>from nltk.corpus import wordnet as wn
  sorted(w for w in wn.synset().name() if len(w)&gt;18)
  </code></pre>
  
  <p>I get the following error message:</p>
  
  <blockquote>
  <pre><code>sorted(w for w in wn.synset().name() if len(w)&gt;18)
  </code></pre>
    
    <p>TypeError: synset() missing 1 required positional argument: 'name'</p>
  </blockquote>
  
  <p>I am using Python 3.4.3.</p>
  
  <p>How can I fix my code?</p>