This is the old version of PyWordNet. PyWordNet was contributed to the NLTK project in 2006. Refer to that software for a more recent implementation of Python/WordNet that has been updated to Wordnet 2.1 and extended with some of the Wordnet similarity scoring algorithms.

PyWordNet is a Python interface to the WordNet database of word meanings and lexical relationships[1].

PyWordNet presents a concise interface to WordNet, that allows the user to type expressions such as N['dog'], hyponyms(N['dog'][0]), and closure(ADJ['red'], SYNONYM) to query the database.

>>> N['dog']
>>> N['dog'].getSenses()
('dog' in {noun: dog, domestic dog, Canis familiaris},
 'dog' in {noun: frump, dog}, 'dog' in {noun: dog},
 'dog' in {noun: cad, bounder, blackguard, dog, hound, heel},
 'dog' in {noun: pawl, detent, click, dog},
 'dog' in {noun: andiron, firedog, dog, dogiron})

Files hosted by SourceForge.

[1] A lexical relationship is a relationship between words, such as synonym, antonym, hypernym (“poodle” → “dog”), and hyponym (“poodle” → “dog”)