Answer the question
In order to leave comments, you need to log in
Is it possible to somehow determine the surname or name by certain rules?
Hello everyone, the client has a database with a full name, but the trouble is, some full names do not match the fields of the table, that is, where the firstname is indicated, the last name is written, and where the lastname is, both the first name and the first name and patronymic can be written at the same time, and I keep thinking, are there any rules in the Russian language that could be transferred to the code to determine that this word is a given name or a surname?
Another difficulty is added by the fact that the full name can be not only Russian, but also the full name of people from other countries ...
Answer the question
In order to leave comments, you need to log in
https://github.com/seagullua/NameCaseLib - can also determine the intended parts of the full name
take a list of Russian names, add the necessary national ones.
The same goes for surnames.
By names it turns out 300-400
By surnames, I think 10,000 - 20,000
Make a suppressor on the input, plus the fact that typos will be cut off immediately.
If the form did not pass at least one field, display a message saying that you are sure?
Further on existing contacts.
I had such a code that broke the line by spaces, and displayed the first and last value.
In some cases it didn't work out right.
John Deere MD example.
I just pulled out prefixes from a base of 2 million, discarding normal names.
It turned out about 200 records, all these 200 records were described by 12 replication rules.
Another difficulty is added by the fact that the full name can be not only Russian, but also the full name of people from other countries ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question