----- Original Message ----- From: Demetrio Girardi Sent: 01/25/12 03:49 AM To: django-users@googlegroups.com Subject: Determine gender from first name
This is not a django-specific question, but I couldn't find anything useful on the subject and have no better place to ask. Let's say I want to put "welcome {{user.first_name}}" on top of my template. In many languages, "welcome" has to be declined by gender. I have no use for the user's gender otherwise, so I don't want to ask for it in the registration process. How can I go about this? Is there a publicly available database of first names divided by language and gender? A public web-service that guesstimates the gender? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. What about the boy named Sue? In some cultures, guessing "male" might be somewhat acceptable. On the other hand, any guess could be wrong---and offensive. My advice is to ask. Perhaps make it optional, with a default to one or the other; at least if they take offense they can fix it. Of course, you could reword your translation so as to get around this, but that may be more difficult and awkward than it's worth. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.