title: All synonyms for word in python?
body: <p>The code to get the synonyms of a word in python is say:</p>
  
  <pre><code>from nltk.corpus import wordnet
  
  dog = wordnet.synset('dog.n.01')
  print dog.lemma_names
  
  &gt;&gt;['dog', 'domestic_dog', 'Canis_familiaris']
  </code></pre>
  
  <p>However dog.n.02 gives different words. For any words i can't know how many words there may be. How can i return all of the synonyms for a word?</p>