There is a thing named Levenshtein Distance, a number that tell me how much a string needs to be changed in order to become in another one. Well I'm using that concept to ensure that longer words doesn't change too much(40% is the limit right now), keeping them really readable.
Also super longer words like "supercalifragilisticoespialidoso" that refuses to get a lower that 40% levhenstein distance are send to the output without any change.
You didn't knew but Text Scrambler only scramble alphabetic characters, and tries to maintain dots and hyphens in their place. This is hard work and there was a bug in texts like "yo lo subí..." where the output was something like this "Yo lo sub...í" there where two errors actually, a) it didn't recognizes 'í' as an alphabetic character and b) it reversed the order of the dots.
Now both of them are fixed. The special character I added where: [á-ú], [Á-Ú], ñ and Ñ. If there are more characters you would like to be added send me please send me an e-mail.
I found the next text in " Uncle Jazzbeau's Gallimaufrey"
Randomising letters in the middle of words [has] little or no effect on the ability of skilled readers to understand the text. This is easy to denmtrasote. In a pubiltacion of New Scnieitst you could ramdinose all the letetrs, keipeng the first two and last two the same, and reibadailty would hadrly be aftcfeed. My ansaylis did not come to much beucase the thoery at the time was for shape and senqeuce retigcionon. Saberi's work sugsegts we may have some pofrweul palrlael prsooscers at work. The resaon for this is suerly that idnetiyfing coentnt by paarllel prseocsing speeds up regnicoiton. We only need the first and last two letetrs to spot chganes in meniang.
Plus a comment made by rleonmx in Cofradia.org saying that 9 or more character's words can't be readed easily, made me add a new function. Now this words keep their 2 first and last characters in order, increasing readibility a lot.
I'm starting to think about really long words like "supercalifragilisticoespialidoso", and also compound words like "superman", or hypen separated words. All of them cause nothing but problems rigth now.
I don't know how to increase readibility on them, without lossing the scrabling effect. Any idea? if you have it please send me an e-mail.
Text scrambler is out, now you can enjoy scrambling texts. use it in your mails, blogs and websites, use it even in your IM. enjoy it !
While you do that please let me know from any bugs and stuffs, if you use it in your website please make a link to this page, soo more people can have fun scrambling texts.
Text Scrambler does a pretty good job scrambling plain text, but you can't expect that it scramble HTML code or something like that(by now).
By the way, I'm using an iso-8859-1 encoding I don't know how that could affect
users with other encodings, soo please let me know about issues with that