Python script to shuffle letters in the words of the text

If we take some text and shuffle a bit the letters in the words like this one below then we still be able to read it. Try:

If we tkae smoe txte and suhffel a bit the tletesr in the wodrs ilke htis one bwloe thne we sltil be albe to raed it.

It’s just one more magic feature of our mind. Well, all people can’t do that but about 50% can.

I implemented python script text_distor.py to shuffle the text in this way. It handles punctuation correctly, so, you have variant of the text exactly as it needs for such cognitive test.

Reverse algorythm to restore original text more interesting as it’s image recognition task. So, I’m going to do it as well when I have more free time.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: