Hi, i have my random alphpnumeric name code done and i thought maybe i might reach into the possibility of taking it to the next level and that is to make it readible (more common) names that make sense.
Instead of 58lkiu47f i might try to do something like a common name of hank or joe or maybe even a username such as mrtoenail. But im sitting here noodling and went thru google a bit and found some close splitting vowels and consonants but still it might come out rmneonl.
So i thought ok maybe (might take me an hour or so) to come up with an array of lets say 200 or 300 names and then do rand off of that.
Just not sure which way i want to go here is all. Any suggestions thanks
I guess i could seperate the e and the o into its own array so i can at random choose those twice, such as oo and ee for words like geek or wood
In case your curious, a friend of mine has a social site that some of the special needs people he wanted the ability to do their profile for them and i told him i would see what i could come up with for the random name part.
UPDATE i have found that grabing one cons and one vowel instead of the rand "extra" cons part of the code works much better. I have edited the code.
There are plenty of large text lists you can find with a quick Google search, for dictionary words. You could put those into a text file on your server, with a word per line, and then randomly select two lines from that file via PHP and tack the words together. That would save you formatting them all to an array, at least.
It would probably have a higher rate (Like, 100%) of readability, than trying to construct a name from singular letters using only a vowel / consonant rule. If it were me, I'd probably want to remove "uninteresting" words from the list as well, or even create some sort of rule along the lines of [adjective] + [noun], or something, for the best results.
yeah that was one of my original ideas. But this is a freebee, a favor for a friend and i could go all max out on this and still be working on it a week from now.
Really all they wanted was to be able to have random names. But because i want to do a better job i thought i would venture into making them more readable but to do a really great job at that will take alot more time and time is money ya know.
So i think they will be happy with this i hope, i was however curious about how to do this should it come up later in life.
Completely random words that are pronounceable would require analysis of the language itself (not the programming language; the spoken one).
Language syntax is built on rules. Knowing the rules means you can program the necessary requirements to generate the results. Its not as simple as randomly selecting vowels and constants, there are only certain ways these can be properly combined. That though requires a syntax specialist (for which I certainly am not). These are the same people that would be deeply involved with concocting programming languages themselves as well as interesting applications such as voice control and voice to text (or text to voice). They would *not* come cheap that's for sure.
Hence the reason why you can find so many word lists online for selection.
This is what i was referring to when i said i would still be at it a week from now lol. Yeah i also did not want to make this a full blown lang interpretation style mod for sure just something that was slightly better than the complete random.