This is a simple little script I wrote to help explore the internet-rumor-claim that the human mind can magically read scrambled text as long as the first and last letters remain in place. The claim is usually made demonstratively with a paragraph such as:
To test if this effect works on general text, paste something below and hit the magic button. You can run your mouse over the resulting text to show the unscrambled words.The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it denos't mtater in waht oredr the ltetres in a wrod are, the olny iprnoatmt tihng is taht the frist and lsat ltteer be in the rghit pclae. The rset can be a taotl 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. Amzanig huh?