Live data from Hacker News

I found the best anagram in English (2017)

blog.plover.com

81–90 of 236 posts

Re: I found the best anagram in English (2017)

#81

I thought integrals / triangles was much more interesting, despite the shorter length. None of the other long pairs have any meaningful relationship, except for maybe excitation / intoxicate

It seemed to me that integral/triangle (singular) should really get the same score.

Re: I found the best anagram in English (2017)

#82
post #40

Earlier quoted context omitted.

You don't _need_ to hash anything. The simplest way to do it, is to convert all the words to (normal_form, orig_word) pairs, write the list to a file, then sort it. It will be trivial to find the words with common normal form after the sort. (Of course, you wouldn't catch me trying to implement that with C if perl is an option...)

But the normal form as defined by the article is an hash, even if you then use sorting instead of bucketing

The point is that you don’t need a hash table implementation. And the normalization that is used as the sorting key doesn’t otherwise have good hash-like qualities (like constant size and a good distribution) and thus doesn’t especially deserve to be called a hash.

Re: I found the best anagram in English (2017)

#84

My favorite has always been: A man a plan a canal Panama

That's a palindrome, not an anagram. If you'd like to see the director's cut of that palindrome, it's available here: http://www.fun-with-words.com/palin_panama.html I've always been partial to pangrams: sentences that use every letter in the alphabet at least once, typically shooting for a short sentence. My favorite is "Pack my box with five dozen liquor jugs". Not minimal, but delightful and uses only words that m…

My favourite is that the 49 word one was found by Guy Steele.

Yes, this Guy Steele: https://en.wikipedia.org/wiki/Guy_L._Steele_Jr.

Re: I found the best anagram in English (2017)

#85
post #6

That was pretty good for a one-word anagram. Back in the 1990s I wrote a program that generated anagrams for longer phrases and I was surprised to find these prescient ones: Saddam Hussein = He damns Saudis Charles Manson = Slasher con man David Letterman = Dead mitral vent Mary Jo Kopechne = My joke chaperon * Benito Mussolini = So, I bout Leninism Lee Harvey Oswald = Oe, why ever Dallas? * * "Chaperon" is a valid a…

The most remarkable name anagram for me remains that of 1990s UK conservative Health Secretary and government minister Virginia Bottomley (now Baroness Bottomley of Nettlestone), whose name rearranges to “I’m an evil Tory bigot”.

In terms of this ‘chunk scoring’ method this scores very high (15 I think?), which definitely confirms its value as a way of rating anagram quality.

Re: I found the best anagram in English (2017)

#87
post #36

Earlier quoted context omitted.

Ummm, the author used awk for the first version in the 1990s. > This was easy to do, even at the time, when the word list itself, at 2.5 megabytes, was a file of significant size. Perl and its cousins were not yet common; in those days I used Awk. But the task is not very different in any reasonable language:

I know. I’m talking about Perl. Try to keep up.

Do pay attention.

You wrote "Prior to Perl doing this was painful.".

I highlighted how you contradicted the author's claim that it was easy to do using awk. Awk existed long before Perl.

Re: I found the best anagram in English (2017)

#88

While I personally agree with the end result - cinematographer megachiropteran possibly being the best anagram, its worth exploring other scoring mechanisms I suppose - some kind of alliteration / cadence score to quantify how the words roll in succession. Maybe throw in semantic distance as well using clip embeddings probably to quantify the surprise element (or closeness for that matter). Gonna play around with thi…

Sounds like fun -- here's a try at alliteration scoring for a start: https://github.com/darius/alliterate

Re: I found the best anagram in English (2017)

#89
post #33

> I wouldn't have mentioned this, but someone on StackExchange actually asked this question. I wonder if the author realizes how condescending this is.

I'm listening. Please explain.

You basically said, “Can you believe someone actually was so stupid as to ask this question on stackexchange? I didn’t believe anyone could actually be that stupid, so I wasn’t go to address it, but it turns out there actually are people that stupid, and they actually outed themselves by posting their question out in the open! So, here I am having to address it in my blog post in case there are other people who actually are equally stupid.”

Re: I found the best anagram in English (2017)

#90

This is the TXR Lisp interactive listener of TXR 285. Quit with :quit or Ctrl-D on an empty line. Ctrl-X ? for cheatsheet. TXR's sound system features 120 dB separation between quarreling audiophiles. 1> (flow "/usr/share/dict/words" file-get-lines (group-by sort) hash-values (keep-if cdr) (sort @1 : [chain car len])) (("ho" "oh") ("am" "ma") ("em" "me") ("no" "on") ("ah" "ha") ("it" "ti") ("mu" "um") ("eh" "he") ("a…

Can you explain that last line (sort @1 : [chain car len])?
Post reply on HN