Here are the basic rules describing how names are generated...
So, the smallest possible name is a single vowel. The longest possible name would consist of 4 inidividual names, each having 5 syllables which each consist of 4 consonants followed by 3 vowels followed by 4 more consonants. Such a name would be 220 letters long (plus the 3 spaces between the individual names) and the program wouldn't display it properly. I won't list out the probabilities for each choice, but you could probably make some decent guesses. I tried to set these so realistic sounding names would be more likely to be created. Letters like 'q' and 'x' are less likely to appear than 's' and 'r'. Names with 5 syllables are relatively rare, and there are more syllables with 1 vowel than there are syllables with 3 vowels. If I wanted to improve this program I could take a large text file of names and analyze it to come up with more accurate probabailities for creating names. As it is right now, you're more likely to get an odd-looking scramble of letters than anything that actually looks like a name. But, if you're generous enough, and you run it a few times, you can get some results that just might be somewhat name-like. I could imagine a bionics-enhanced street punk named Zlap Rom mugging the unsuspecting Bab Toglemeam for money for his next fix. In a dream, I could see barbarian warrior E Gumsh rushing across the desert wastes to do battle with the evil wizard Zo Ka and his genie Pilsdhin. And, maybe--just maybe--next year we'll see Pebcpewemt Lamosurr appointed ambassador to Uraguay. |