Unix Dict/grep Solves Left-Side-of-Keyboard Puzzle
destinyland writes "For decades, people have been asking this brain teaser: 'What's the longest word you can type with only the left-hand letters on a keyboard?' The answer is supposed to be 'stewardesses,' but grepping the standard dictionary that ships with Unix reveals
a much better answer. There's nearly 2,000 shorter words that can typed with only the left hand — including one word that's even longer. (The article also quotes a failed novel attempt using nothing but words typed on the keyboard's left side.)"
This should be in idle... I don't see why it should be on the front page.
For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
There's nearly 2,000 shorter words that can typed with only the left hand -- including one word that's even longer.
Ganz falsch!
The longest word isn't found in the 'a much better answer' link, but rather the other one, somewhat misleadingly. The word, in case you're interested, is supposed to be 'devertebrated', though the Oxford English Dictionary doesn't recognise it.
How exactly can shorter words include a longer one?
From the article:
Technically, the word "reverberated" is just as long, and so is "desegregated" - but they're sometimes disqualified because they require using the past tense.
So past tense is disqualified but plural is ok? What official body is making up these rules?
who cares?
-= This is a self-referential sig =-
Except that you shouldn't type "h" with your left hand, my friend. :P
Here's the secret to immortality:
alternating hand keystrokes are the fastest and least stress-inducing type of keystroke. The fact that so many words in Qwerty can be typed on the same (left) hand and so few can be in Dvorak shows that a larger subset of the Dvorak words alternate, whereas a smaller subset of the Qwerty words do.
need more proof, just do a
then follow that up with a
Well, back to rejecting software patent applications.
uh huh. Ya know why the unix dictionary file doesn't contain every word in the english language? Because it can't. It's a productive system. There's an infinite number of words.
For example, 'desegregated' means something like: something was segregated and now it isn't. And segregated means that, some time in the past, someone decided to segregate. If they decide to do that again, well then it's resegregated. And what happens to it when you undo that segregation? You get deresegregated. What happens if they decide to segregate again? reresegregated? then dereresegregated? Is there a limit? No. Language is awesome.
How we know is more important than what we know.
And apparently you missed that he used grep -x in his example...
No... you lose. "h" is the right hand.
Thanks for the code. This is what you can type on the home row:
Dvorak:
2-11 letters: 3358 words
12: 54 words
13: 24 words
14: 14 words
15: 5 words
16: 2 words
17: 2 words
18: 1 word
Qwerty:
2-11 letters: 202 words
12: 0 words.
-
uname -a
Darwin maclappy 9.5.1 Darwin Kernel Version 9.5.1: Fri Sep 19 16:19:24 PDT 2008; root:xnu-1228.8.30~1/RELEASE_I386 i386 i386 MacBookPro5,1 Darwin