S
S
Snewer2014-04-24 15:07:14
PHP
Snewer, 2014-04-24 15:07:14

How to determine gender by last name and first name?

Hello!
Given a Last Name and First Name of a user, is there a sure way to determine the gender of a user based on this data? Or still give the choice of gender to the user?

Answer the question

In order to leave comments, you need to log in

14 answer(s)
J
jane jane, 2014-04-25
@Snewer

Try automatically but there should be a shift selection.
The same thing as the declension of names and surnames is different, and this cannot be driven into a template.
The names may not be Russian, but there is a different system.
I had to work a lot with this at one time =\

E
Eugene, 2014-04-24
@Nc_Soft

Valya Kropenko - woman or man?

I
iDevArtem, 2014-04-24
@iDevArtem

Maximum patronymic:
'vich' -> male
'vna' -> female
'ly' -> male
'zy' -> female
'va' -> female

D
DeadFine, 2014-04-24
@DeadFine

Look at the article, just the other day from Habr, where in the comments the developers explain something about this habrahabr.ru/company/enterra/blog/219535

V
Valery Demidov, 2014-04-24
@Fraideron

I do not think that such a choice for the user will be too difficult. You put in a lot more work than you get out of it. If it is possible to provide a choice to the user, then let him "work a little" himself.

E
Eugene, 2014-04-24
@Nc_Soft

Why does a site need to know gender? And if this is dating or a sex shop, then you still need to know your orientation, you can’t determine by name)

V
Vladimir, 2014-04-24
@azrail_dev

ABIBO Avetik who? Not so simple

A
Alexander Tokmakov, 2014-04-24
@calliko

What if 'user Tatiana gave you a task'?

E
Egor Kazantsev, 2014-04-24
@saintbyte

If it's smart, then you can make a database Name -> gender + ending of the last name and patronymic. For this, I think the first 50 million VK users will do

Y
Yuri Lobanov, 2014-04-24
@iiil

I know it's hard to get people to check the box these days. But still - make a choice of gender in any of the standard ways.

P
Pavel Vasterov, 2014-04-25
@zxc80

"Or still give the choice of gender to the user?" - exactly.

M
Mikhail Osher, 2014-04-25
@miraage

My last name is also interesting.
Let's say .. :)
Zhenya Osher
Sasha Osher
Well, at least my name is Misha.)

E
Eugene, 2017-07-19
@Elgorm

https://gender-api.com/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question