NodeBox

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

wordnet.wit()

Syntax

wit(query)

Description

Attempts to simulate humor: takes an abstract interpretation of the given query word, and takes random examples of that abstract; one of these it assumes to be the meaning of the word.

Example

wordnet = ximport("wordnet")
print wordnet.wit("hamburger")
>>>any very successful means of achieving a result

print wordnet.wit("hamburger")
>>>food that God gave the Israelites during the exodus

print wordnet.wit("hamburger")
>>>a white nutritious liquid secreted by mammals 
>>>and used as food by human beings

print wordnet.wit("hamburger")
>>>a military aircraft that drops bombs during flight