[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VMs: Word Endings



Hi everyone,

At least this kind of process could be tested out on a few languages without too much difficulty: we might well be surprised by their statistics. :-)

One nice-looking syllable friendly version works like this:- (a) insert ! after any vowel followed by a consonant (b) delete all spaces (c) replace all !'s with spaces

In simple Perl, [*] this kind of space-transposition cipher could be achieved (for English) by a sequence of simple regexp's:-
s/[aeiou][b-df-hj-np-tv-z]/$1!$2/ig
s/ //g
s/!/ /g


All Perl gurus on-list, please feel free to kindly step forward and convert this to a single regexp. :-)

I wonder what the word stats (of space-transposed text produced by this) would look like (as compared with Zipf's Law)... anyone want to try this out?

Cheers, .....Nick Pelling.....

[*] ...as there's always a better and more complicated way of doing anything in Perl. :-9


______________________________________________________________________ To unsubscribe, send mail to majordomo@xxxxxxxxxxx with a body saying: unsubscribe vms-list