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.
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.
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.
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.
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.
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?
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.
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...
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).
93 comments
[ 3.3 ms ] story [ 163 ms ] threadStill, I love when small people silly personal projects get promoted in HN. We should have more of these.
I pun for mental stimulation, and to make everyone around me cringe.
> YOU PUT THE OOOHS IN DEPOSE
"You put the foo in bar?"
Fun lark, I laughed at some. Wondered at some others.
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.
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...
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.
Put the romance in necromancer and
Put the fun in dysfunctional.
Get outta here!
"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 WHICHEVER IN WHICHEVER.
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.
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").
This is a nice one.