Welcome to "Readable" Scramble (view source)

This little exercise came about after someone sent me an e-mail with the below statement in it:

Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, 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 toatl mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe.

I decided to put the theory to the test. After running quite a few test paragraphs through the script it was easy to see that the above statement, taken at face value, was false. I looked around on the internet, as I'm prone to do when looking for answers, and ran across a page by Matt Davis which basically explains why the original message worked, and why many of the test paragraphs run through my script did not. Further, Matt seems to have pretty much determined that this was never a Cambridge study at all and is just a hoax.

Basically, the author of the original message carefully mangled the letters in the middle of the words so that it appeared to support the intended message. However, decent randomization of the middle characters, especially of longer complex words or words like crap and carp which are two valid words, make the sentence or paragraph unreadable.

At any rate, I decided to make it available for others to play with, so have fun.

Enter some text in the textbox and click submit. You'll get back your text with the letters in each word, except for the first and last, scrambled.