📜 ⬆️ ⬇️

Comparison of online name resolution services

There was a need to determine the gender of customers in the database and automatically decline the full name for the online store. The specifics of the store are gifts and flower delivery with congratulations.


The store accepts information about users through a quick order form. There is also a regular basket, but many use just a quick order - there you can fill only the phone and immediately go to pay. Customers use the opportunity and often do not specify the name at all. It is pointless to make fields for full names mandatory - enter garbage instead of data is not prohibited. As well as not to prohibit incorrectly writing your own name.
Meanwhile, the correct appeal to the client is necessary, otherwise incidents are possible:


image



Now the store employees are refining the data in a prehistoric way: the customer makes an order, an SMS arrives with confirmation and delivery method. And then the operator calls to confirm the order and at the same time to clarify the floor and full name, and then enters the data in the CRM.


But in general, it's 2016, and it's not cool:



The manual method is long, expensive, and not like that of Tyoma Lebedev. Ideally, I want to automate everything and get rid of the human factor. And asking a person for calls only in borderline cases, where even a person will not understand (a neural network can draw a picture better than Van Gogh, but never guess the floor of Sasha Parkhomenko).


What I wanted:



Having investigated a subject domain, I went to study Habr and the Internet in search of the made ready decision. So that both the floor is determined, and declined, and united in itself 2 of these chips (ideally). Perhaps my review will be useful to someone.


I decided to approach the research in detail and took a sample from simple to complex names. Armed with a diploma. Ru and his fantasy.


The result is a simple test for the names:



But non-trivial cases, about which few people know:



Total found 2 libraries and 3 services that caused the trust.


NameCaseLib library


image


pros



Minuses


Based on the description of the API, the definition of gender is not the main functionality, but an additional feature. The service can be sent by the user gender parameter, and this affects the further logic of working with names.
Library:



And judging by the fact that the site is in 2011, the library support has long ceased.


Petrovich Library


image


Pros:



Minuses:



Did not like.
UPD. The comments revealed that the main task of the library is the declination of the full name. Determining gender is not a direct task of the library, and for correct work the floor should be indicated. With the specified floor Petrovich works much better.


Gender.Wim.Agency


“Valera ;; female”. Nuff said.


AHunter.ru


Pros:



Minuses:



Sasha Parkhomenko strained, decided to look for more options.


DaData.ru


image


Pros:



Minuses:



Morfer


Pros:



Minuses:



The peculiarity is not to incline female names to -l (Aigul). This is not a mistake, one of the possible options (according to the rules such names can either be inclined or not).
Service I was very impressed in terms of declinations. Easily coped with simple and complex cases.
But Sasha Parkhomenko distressed (a).


The most worthy services seemed Morfer and DaData. On declination, they showed themselves almost equally except for names like Aigul - apparently, the creators have a different philosophy. It seemed to me that Morfer - a kind of robot Bender, bends all that bends and makes it very cool. Dadata is something like Valli, can do less, but does more carefully. I am pleased to recommend both services.


What service I chose - I will not say. I believe that each task has its own tool, and I hope that the review will help you understand what is suitable for anyone.
If someone knows good similar services and google better than me, I will be very happy with comments and advice.


')

Source: https://habr.com/ru/post/304804/


All Articles