Since that's filled with obvious non-words, I demonstrated how easy it would be to replace those with words or names.., ,; .R, @FS fUD jos DN Gw, Fzw OUn hdx DLdknFf: qgOKPugU aYkIda @ygoaQr Dj hN Sam xb tJ. mBT. fSV zek Nw; @Hf dxd Stk ALQ TZFwKw: qR ol HJb EmpiiA@ sb .Vz XWw chY:: Aw, ju iA GFk aHs,c woi FsrQua Gcc pW kA IBy HFd ZVx Gsx SME ziyA riA UNvhcHbgj NZaBdunU TYA NsaQfMzrRB , ,:;U : Ae , ,;w .: lze yrP IegDp.
which when run gives:open( my $fh, '/usr/share/dict/propernames' ) or die $!; while (<$fh>) { chomp; push( @{$words{length($_)}}, $_ ); } while (<DATA>) { s/(\S+)/replace($1)/ge; print; } sub replace { my $list = $words{length $_[0]} or return $_[0]; return $list->[rand @$list]; } __DATA__ ., ,; .r, @ln qly tlg nq aq, Brg iaB WiW iqpbduk: ifcciWvj Wypdip @rnoqqS lc st unx mm su. Wyl. eee daa jb; @kS kjt smp WkW 8hytct: ih xd WiZ Zlantc@ tg .vk WrW cyW:: hy, vx bo WnW gtx,i 0rW SnjsaS WbW gw oo kkZ rto WeW fvB 0qZ xbcd ocg tfrotxynk veqWhurb kdy wavkuseax0 , ,:;i : yr , ,;i .: Zjc ugr btfau.
Of course, you can use any list of words you like: /usr/share/dict/propernames just gives nicer results than /usr/share/dict/words did for this example.Ti Po Kaj Tao Wes Art Al Ian Jem Tao Raj Caroline Jeanette Harold Bradley Al Ji Stu Ro Hon Axel Kaj Tim Sam Stu Lee Tad Raj Phiroze Ed Ro Lin Shankar Hy Lex Ric Barry Van No Ji Jim Jerry Ram Sorrel Luc Ji Ji Kaj Van Mah Fay Art Hohn Ami Krzysztof Jennifer Jan Novorolsky , Saul : Ed , Per Ro Rob Bob Amedeo
xoxo,
Andy
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A handy use for /usr/share/dict/words
by Roy Johnson (Monsignor) on Feb 28, 2005 at 19:10 UTC | |
by petdance (Parson) on Mar 01, 2005 at 04:16 UTC | |
by Roy Johnson (Monsignor) on Mar 08, 2005 at 13:20 UTC | |
|
OT:Re: A handy use for /usr/share/dict/words
by zentara (Cardinal) on Mar 01, 2005 at 12:47 UTC | |
by Anonymous Monk on Mar 02, 2005 at 16:01 UTC |