Re:Every possible pun of the form ‘You put the X in Y’
by asdfman123 on Friday November 06, 2020 @03:44PM
(#25010962)
Oh lordy, I've got a thing to say about your Javascript.
You could keep the word pairs server side and retrieve them as the page is accessed... or at the very least if you're going to store all your data in a static file you could store them in an array to save space, instead of the whole links. You could get real fancy and make some kind of soundex map thing.
Question: did you just break each word into syllables, and find soundex matches?
No worries, though, I like the compulsive punning. I just like talking about things on the internet.
Re:Every possible pun of the form ‘You put the X in Y’
by Xevi on Friday November 06, 2020 @04:26PM
(#25011337)
What the...
Is that a function with a 560000+ lines long comment inside of it, that gets turned into a string, then sliced, and split on newlines, then assigned to a global variable that gets used in another global function?
It took a minute just to open the source code in my browser. Chrome used 5.2GB of RAM while viewing the source code, just for that tab.
Re:Every possible pun of the form ‘You put the X in Y’
by Gene_Parmesan on Friday November 06, 2020 @06:13PM
(#25012026)
This is one of those things I would have just assumed was impossible, so never would have tried. Not that I should try something like this, mind, but it is a good reminder not to underestimate these machines we have.
Re:Every possible pun of the form ‘You put the X in Y’
by umvi on Friday November 06, 2020 @04:43PM
(#25011472)
Yeah! Just goes to show you can make a cool thing that is really quick and dirty under the hood.
You could make this page load instantly by making the random selection happen in the backend instead of in the browser, but then I guess it would no longer just be a static file.
You could also just have a compact array of pairs and then generate the sentences in the browser instead of having half a million pre-generated strings.
Re:Every possible pun of the form ‘You put the X in Y’
by mabbo on Friday November 06, 2020 @04:20PM
(#25011293)
I feel that to really make this work you would need to filter words with common origins. Like, if one word appears in the dictionary definition of the other word, they likely aren't going to be funny.
Examples:
YOU PUT THE REFINE IN REFINERY.
YOU PUT THE DETECT IN DETECTS.
YOU PUT THE POLYTECHNOLOGY IN POLYTECHNOLOGIES.
But words with no commonality at all and a good rhyme are brilliant.
Re:Every possible pun of the form ‘You put the X in Y’
by default-kramer on Friday November 06, 2020 @04:58PM
(#25011572)
Hmm, rhymes don't really do it for me. I might even filter out rhymes if I built this. I've heard humans use this format often enough, and I don't think I've ever heard someone use a rhyme. It's just too easy. Putting "the cologne in colonialism" is significantly better.
Re:Every possible pun of the form ‘You put the X in Y’
by cwkoss on Friday November 06, 2020 @05:57PM
(#25011933)
Yeah, I think the currently allows 1-phoneme differences. I think it would be better if it only allowed 2-3+ phoneme differences when at the end of the word. -s -ies -y arent interesting suffixes.
Re:Every possible pun of the form ‘You put the X in Y’
by WilTimSon on Friday November 06, 2020 @05:34PM
(#25011791)
There are also some that are just nonsensical but when you read a dozen of these in a row, they feel actually kind of funny. Just tunes your brain to a different wavelength.
Re:Every possible pun of the form ‘You put the X in Y’
by matsemann on Friday November 06, 2020 @04:18PM
(#25011275)
> YOU PUT THE DICKS IN DICTIONARIES
This is great! Just wish it was possible to filter out uncommon words. I have no idea what half of them means or how they're supposed to be pronounced (non-native).
Re:Every possible pun of the form ‘You put the X in Y’
by nullsense on Friday November 06, 2020 @06:19PM
(#25012063)
Maybe they should do a You Can't Spell X without Y snowclone generator next.
Detractors of the popular genre of music often trot out the old adage "you can't spell crap without rap", but what most people fail to realize is that you can't spell fish and chip shop without hip hop.
Re:Every possible pun of the form ‘You put the X in Y’
by wnissen on Friday November 06, 2020 @03:49PM
(#25010992)
This reminds me of the time I needed to generate some names for testing, and I simply combined the Social Security list of most common first and last names at random. It turns out that the vast majority of possible name combinations are terrible. Not quite "Sleve McDichael" from the notorious Super Famicon game, but close.
Like this, I could read through a whole page of names before finding one that scans. Bennett Takeshita, e.g., is effectively unpronounceable.
Re:Every possible pun of the form ‘You put the X in Y’
by saghm on Friday November 06, 2020 @04:06PM
(#25011139)
"YOU PUT THE RHEAULT IN CROSSNO"
"YOU PUT THE OUGHT IN REAUTHORIZE"
I'm not positive what's going on here, but it seems like it's incorrectly detecting syllable divisions? If it thinks that the division is between "o" and "s" in the first and between "t" and "h" in the second, those results would make sense. I don't think anyone actually pronounces "reauthorize" like "warthog", though...
Re:Every possible pun of the form ‘You put the X in Y’
by daotoad on Friday November 06, 2020 @04:26PM
(#25011345)
I got YOU PUT THE SWAYZE IN SWAYZE.
There really needs to be a filter to block these kinds of results.
I wish the word links would let me navigate the set of puns rather than going to google. X links should let me see all the combos that have the same word in the X position. Y links should do the same thing, mutatis mutandis.
Re:Every possible pun of the form ‘You put the X in Y’
by arthurjj on Friday November 06, 2020 @05:41PM
(#25011831)
Looks pretty great. If someone is looking to do something similar the NLTK has a library with mappings to the pronunciation or you can use soundex. I used the NLTK library for answering "How many rhymes are there in English"[1] but the phonemes were in a different format than IPA.
I don't know if there is something similar to the NLTK library with the mappings but for IPA
Re:Every possible pun of the form ‘You put the X in Y’
by rflrob on Friday November 06, 2020 @03:49PM
(#25011000)
I noticed there's a few cases where a th sound puns with a t sound. For example, you put the OUGHT in ROTHMEYER. Intentional due to loose matching? Uncertainty in pronunciations? Or is this a bug where the θ phoneme is represented as the digraph th?
Re:Every possible pun of the form ‘You put the X in Y’
by Asraelite on Friday November 06, 2020 @03:56PM
(#25011047)
What pronunciation dictionary did you use?
I've been looking for a good one that 1. includes variant pronunciations, and 2. distinguishes all phonemes, e.g. considers Rosa's and roses distinct. So far I haven't found any that fulfill these criteria.
Re:Every possible pun of the form ‘You put the X in Y’
by djbeadle on Friday November 06, 2020 @04:22PM
(#25011310)
I love it, but I don't know a lot of these words!
If the author is reading I think a nice small improvement would be to prefix the Google search with "define" (as in: "define ${word}") to invoke Google's dictionary function.
Welp, I have to say it's a resounding success.
You could keep the word pairs server side and retrieve them as the page is accessed... or at the very least if you're going to store all your data in a static file you could store them in an array to save space, instead of the whole links. You could get real fancy and make some kind of soundex map thing.
Question: did you just break each word into syllables, and find soundex matches?
No worries, though, I like the compulsive punning. I just like talking about things on the internet.
Is that a function with a 560000+ lines long comment inside of it, that gets turned into a string, then sliced, and split on newlines, then assigned to a global variable that gets used in another global function?
It took a minute just to open the source code in my browser. Chrome used 5.2GB of RAM while viewing the source code, just for that tab.
You could make this page load instantly by making the random selection happen in the backend instead of in the browser, but then I guess it would no longer just be a static file.
You could also just have a compact array of pairs and then generate the sentences in the browser instead of having half a million pre-generated strings.
Examples:
YOU PUT THE REFINE IN REFINERY.
YOU PUT THE DETECT IN DETECTS.
YOU PUT THE POLYTECHNOLOGY IN POLYTECHNOLOGIES.
But words with no commonality at all and a good rhyme are brilliant.
YOU PUT THE RUDENESS IN SHREWDNESS.
Put the romance in necromancer and
Put the fun in dysfunctional.
Faves:
> YOU PUT THE OUGHT IN WATERCOLORS.
> YOU PUT THE REITAN IN FRIGHTENED.
> YOU PUT THE EFFICIENTLY IN INEFFICIENTLY . > YOU PUT THE BORED IN DEBORD.
> YOU PUT THE FARAH IN PHEROMONES. (!!?)
This is great! Just wish it was possible to filter out uncommon words. I have no idea what half of them means or how they're supposed to be pronounced (non-native).
"Farah" and "phero-" are both pronounced ˈfɛrə ("fair-ruh").
--Walter Bagehot, "The First Edinburgh Reviewers", an essay of 1855. You can find the essay at https://babel.hathitrust.org/cgi/pt?id=njp.32101068581279&vi... .
[Edit: removed stray colon.]
This also ties in to the other thing locserendipity.com does. It is a corpus of all pre-1918 books. Just use site:locserendipity.com in Google.
Ooooh. Topical.
Edit: also YOU PUT THE ERICA IN AMERICA. That's adorable.
Detractors of the popular genre of music often trot out the old adage "you can't spell crap without rap", but what most people fail to realize is that you can't spell fish and chip shop without hip hop.
If the opposite of pro is con then the opposite is progress is...
Like this, I could read through a whole page of names before finding one that scans. Bennett Takeshita, e.g., is effectively unpronounceable.
https://www.avclub.com/check-out-these-wonderful-american-na...
"YOU PUT THE OUGHT IN REAUTHORIZE"
I'm not positive what's going on here, but it seems like it's incorrectly detecting syllable divisions? If it thinks that the division is between "o" and "s" in the first and between "t" and "h" in the second, those results would make sense. I don't think anyone actually pronounces "reauthorize" like "warthog", though...
You put the SCENES in Francine's.
You put the DORIS in Maquiladoras.
You put the UNDER in underwriting.
You put the SOMETHING in Twentysomethings.
And the two actual puns:
You put the RACY in Gracie.
You put the BROAD in Broadway.
Get outta here!
There really needs to be a filter to block these kinds of results.
I wish the word links would let me navigate the set of puns rather than going to google. X links should let me see all the combos that have the same word in the X position. Y links should do the same thing, mutatis mutandis.
> YOU PUT THE OOOHS IN DEPOSE
You put the 'b' in subtle.
I don't know if there is something similar to the NLTK library with the mappings but for IPA
[1] https://medium.com/@the_ajohnston/how-many-rhymes-are-there-...
> YOU PUT THE WHICHEVER IN WHICHEVER.
You put the PYHRRIC in EMPIRICALLY.
You put the ALLAH in CLIMATOLOGIST.
You put the ICING in ENTICING.
You put the SCENT in DISINCENTIVE.
It includes names though, which are almost never interesting:
You put the REECE in RECENTLY.
nice
Also,
YOU PUT THE NATION IN EXTERMINATION.
YOU PUT THE SEWER IN PURSUER.
YOU PUT THE SIGH IN UNDECIDED.
YOU PUT THE ARREST IN OVERESTIMATE.
YOU PUT THE TROLL IN UNCONTROLLED.
YOU PUT THE GODLESS IN IRREGARDLESS. (Kinda need a Boston accent for this one)
I pun for mental stimulation, and to make everyone around me cringe.
2 people could sit in front of the screen, and the first person to guess how the nouns are similar would win the point.
http://peterburk.github.io/programs/nounIsLikeANoun/index.ht...
I'd also like to make a pun dictionary of similar-sounding words in English & Chinese, using the data I already gathered for Pingtype.
I've been looking for a good one that 1. includes variant pronunciations, and 2. distinguishes all phonemes, e.g. considers Rosa's and roses distinct. So far I haven't found any that fulfill these criteria.
If the author is reading I think a nice small improvement would be to prefix the Google search with "define" (as in: "define ${word}") to invoke Google's dictionary function.
Still, I love when small people silly personal projects get promoted in HN. We should have more of these.
YOU PUT THE DICK IN DIXIELAND
"You put the foo in bar?"
Fun lark, I laughed at some. Wondered at some others.
Please tell me this one is in there...
I probably screwed that up. Oops, I just made that up.
(mutters to self) another project I did not complete.
This is a nice one.
Might want to exclude this kind of trivial case.