Typoglycemia in Lisp

He’ers the lnik to Wdipeikia pgae aubot Typoglycemia: http://en.wikipedia.org/wiki/Typoglycemia

I put my praorgm in Lisp that redas a text form a flie, sacblrmes the iteniror leettrs of ecah word, and ouputts the ruselt in atohner flie:
http://sourceforge.net/projects/lispsnippets/files/typoglycemia.lisp

Intllaiiy, I fonud smoe disocsuisn in this taerhd: http://ubuntuforums.org/archive/index.php/t-1641635.html but tiher code gave me erorrs, so I made some caegnhs and adtdioins to it. Lokos like wroking. Mabye slitl has bugs:) If yes, it wlil be geart if you tell me aobut tehm.

The parrgom dn’seot srcblame the wdros “Typoglycemia” and “clisp”. You can add ohter words if you lkie. See how to do it in the fuonictn “sbcarmle”.

It also kpees poitnacuutn and nebumrs in pcale.

Uagse:

(read-and-scramble "infile.txt" "outfile.txt")

Ejony 🙂

Advertisements
Published in: on 16/11/2012 at 23:30  Comments (3)  

The URI to TrackBack this entry is: https://burubaxair.wordpress.com/2012/11/16/typoglycemia-in-lisp/trackback/

RSS feed for comments on this post.

3 CommentsLeave a comment

  1. it seems that i don’t have to worry about spellings again… just keeping first and last letter correctly of a word is enough… 😀


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: