This has been doing the rounds:
“it deosn’t mttaer in waht oredr the ltteers in a wrod are, the olny
iprmoetnt tihng is taht the frist and lsat ltteer be at the rghit
pclae. The rset can be a total mses and you can sitll raed it wouthit
a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter
by istlef, but the wrod as a wlohe.”
jwz wrote a perl script to produce text like the above. It’s here, and I thought it was probably a bit long. So I did a shorter one:
perl -ne 's@\b(\w)(\w+)(\w)\b@"$1".(join"",sort{(rand)<=>0.7}split//,$2).$3@gex&&print;'
Much better. (free punctuation to anyone who can decipher the logic 🙂
I sent this to jwz as a curio, too. I don’t think he appreciated it much.
I think you should post it in the comments part of his page so that others can see his long code reduced to one (cryptic) line!
This is taken from the Original slashdot article here: http://slashdot.org/article.pl?sid=03/09/15/2227256
You forget: this script does something different from jwz’s. This one scrambles things better. (It doesn’t group like letters together in the output words.)
Whatever you do, don’t tell jwz that. He’ll get very, very upset.