Hey guys,
I need to write a script that will try to guess a persons gender based on given a given name.
What do you think the best way to do this is? I am thinking the best way is to look up the name in a large name/gender database (if there is one).
But it seems to be that some maths and syntax should also do the job...
What do you guys think?
2. Ask the user to input the name to be guessed.
3. Lookup the name in the database. If the name supplied by the user is not in the database, add the name to the database.
4. After the name lookup or insertion in the database perform a guess as to the sex of the name based on the data from the baby name book and weighted by previous user corrections for that name.
5. Print the guess to the screen (male or female) for the user to verify.
6. Ask the user to input if the guess is correct or incorrect.
7. Store the users input regarding if the guess is correct or not linked to that particular name to improve the future accuracy of the guess on that particular name.