PyWordNet

## PyWordNet

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']
    dog(n.)
    >>> 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”)