NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

wordnet.antonym()

Syntax

antonym(query)

Description

Returns the opposite of query as a list containing elements that are lists of related synonyms themselves.

Example

I would have expected life here!

wordnet = ximport("wordnet")
print wordnet.antonym("death")
>>>[['birth', 'nativity', 'nascency', 'nascence']]