Word senses, Wordnet synsets (synonym sets)
>>> from nltk.corpus import wordnet
>>> SUIT = wordnet.synsets('suit')
[Synset('suit.n.01'), Synset('lawsuit.n.01'), ..., Synset('befit.v.01'), Synset('become.v.04')]
>>> for s in SUIT: print s.definition
a set of garments (usually including a jacket and trousers or skirt) for outerwear all of the same fabric and color
a comprehensive term for any proceeding in a court of law whereby an individual seeks a legal remedy
(slang) a businessman dressed in a business suit
a man's courting of a woman; seeking the affections of a woman (usually with the hope of marriage)
a petition or appeal made to a person of superior status or rank
playing card in any of four sets of 13 cards in a pack; each set has its own symbol and color
be agreeable or acceptable to
be agreeable or acceptable
accord or comport with
enhance the appearance of
>>> SUIT[0].hypernyms()
[Synset('garment.n.01')]
>>> SUIT[0].hyponyms()
[Synset('double-breasted_suit.n.01'), Synset('zoot_suit.n.01'), Synset('single-breasted_suit.n.01'),
Synset('slack_suit.n.01'), Synset('pinstripe.n.01'), Synset('business_suit.n.01')]
>>> SUIT_LEMMAS = [s.lemmas for s in SUIT]
>>> for lem in SUIT_LEMMAS[-1]: print lem.frame_strings
['Something become somebody']
['Something suit somebody']