That's not too hard to do. As a matter of fact, I remember someone on IRC who got tired of a fellow channel member's l33t-speak spending about an hour writing a lex script that would convert things back to English. It worked pretty well and caught and reformatted about 85% of the setences accurately. I have written similar scripts to do things like convert words to morse code (using the internal speaker). it's pretty easy, I modelled it off the old jroff program which converted english to jive (jroff). jroff has been the model for other reformatters including ones that reformat to Swedish Chef and Yoda speak.
Originally Posted by JasBike
#687:<khuon@Espresso>(pts/7)[/tmp]% echo "This is what standard English looks like when parsed through the jive text formatter." | jroff
Dis be whut standard English looks likes when parsed drough de JIBE text fo'matter. Ah be baaad...
#688:<khuon@Espresso>(pts/7)[/tmp]% echo "This is what standard English looks like when parsed through the Swedish Chef speak text formatter." | sroff
Thees is vhet stunderd Ingleesh luuks leeke-a vhee persed thruoogh zee Svedeesh Cheff speek text furmetter.
Bork Bork Bork!