Group Abstract Group Abstract

Message Boards Message Boards

Joke generator: pool of words applied to text formula

Posted 11 years ago
POSTED BY: Jesse Friedman
10 Replies

Here's another way to get rhyming words:

WolframAlpha["word", {{"Rhyme:WordData", 1}, "ComputableData"}]

You can get lexically similar words with:

WolframAlpha["word", {{"LexicallyCloseWords:WordData", 1}, 
  "ComputableData"}]

And, for puns, may want a supply of homophones:

WolframAlpha["where", {{"Homophones:WordData", 1}, "ComputableData"}]

With some words, to get this to work, you need to specify that the input is a word:

WolframAlpha["see", {{"Homophones:WordData", 1}, "ComputableData"}, 
 InputAssumptions -> {"*C.see-_*Word-"}]
POSTED BY: Kathryn Cramer

I like this one for its sheer surreality:

What do you call a flame nettle hammer? A coleus malleus.

POSTED BY: Kathryn Cramer

Q. What do you call a gator bowdlerizer? A. An alligator expurgator.

(Joke Type 2 works now, with the correction.)

POSTED BY: Kathryn Cramer

By the way @Jesse Friedman your post collected 6K views in a single day with most of the traffic coming from Reddit-programming channel where it still occupies the front page with about a 100 votes already. Congratulations!

POSTED BY: Vitaliy Kaurov

@Jesse Friedman we were playing with friends with your code and I think in this piece:

words = # -> {WordData[#, "Hyphenation"], 
      Flatten[WordData[#, "Synonyms"][[All, 2]]]} & /@  WordData[All, part];

the symbol part is undefined. Could you add the missing part - forgive the pun ;) ?

POSTED BY: Vitaliy Kaurov
POSTED BY: Jesse Friedman
POSTED BY: Kathryn Cramer
POSTED BY: EDITORIAL BOARD

Very nicely done!

POSTED BY: Sander Huisman

Hi Jesse,

well done! That's a great post. Thanks for sharing.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard