Group Abstract Group Abstract

Message Boards Message Boards

Joke generator: pool of words applied to text formula

Posted 10 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

Thanks for pointing that out! It looks like I missed some of the line when I copied it. It should be:

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

I fixed it in the original post too.

POSTED BY: Jesse Friedman

A poem derived from the first. (Arranging and sequencing in a certain way changes the emotional valence from funny to something else.)

My Conviction

I like my birth like I like my medication: giving.

I like my breakfast like I like my divide: continental.

I like my coffee like I like my tea: iced.

I like my cat like I like my twin: Siamese.

I like my map like I like my pitcher: relief.

I like my machine like I like my region: infernal.

I like my life like I like my world: phantasy.

I like my correlation like I like my distortion: nonlinear.

I like my fever like I like my stroke: haemorrhagic.

I like my disorder like I like my psychosis: schizophrenic.

I like my intelligence like I like my schizophrenia: borderline.

I like my pronoun like I like my verb: reflexive.

I like my balance like I like my cubism: analytical.

I like my error like I like my language: programming.

I like my file like I like my trauma: blunt.

I like my charge like I like my conviction: murder.

POSTED BY: Kathryn Cramer

enter image description here - you earned "Featured Contributor" badge, congratulations !

Dear @Jesse Friedman, this is a great post and it has been selected for the curated Staff Picks group. Many people will receive a monthly digest featuring you post. Your profile is now distinguished by a "Featured Contributor" badge and displayed on the "Featured Contributor" board.

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