Name parsing is a common problem for data processing businesses like ours. This web application allows you to parse name strings into name parts. I built this for another project at work and thought it might be of interest to other programmers.
This is the v2 implementation of parse.name. Version 2 has many improvements over v1, including the ability to parse multiple names and organizations from an input, and tenant-specific parser configurations.
A string like Mr. John Doe
will be parsed as:
{
"salutation": "Mr",
"given_name": "John",
"surnamne": "Doe"
}
Company names are detected and returned separately. For example, First Movers Advantage, LLC
will be parsed as:
{ "name": "First Movers Advantage LLC" }
The parser is able to determine which parts of a name are the given name (first name) and surname (last name). For example, inputs like Doe, John
and even Doe John
will be parsed correctly as:
{
"given_name": "John",
"surname": "Doe"
}
The v2 name parser can also detect and parse multiple things from a given input. Brian Long, First Movers Advantage
will correctly be parsed as two separate things, a name, and an organization.
{
"given_name": "Brian",
"surname": "Long"
}
{
"name" "First Movers Advantage"
}
The API docs demonstrate how this data is returned in the API, Documented Here
Here are some examples of name formats that we can parse:
Manually enter what an input should be parsed into. For example,
Say for instance, that you wanted to say that any input containing the word Marriott
to be considered an organization. Or if we wanted to say any input that ends with Carolina
to be considered an organization as well. This can easily be configured.
Please try it out and let me know what you think. You will need an account for access to the JSON API.
-- Brian Long. (Twitter: @brianlong & Telephone: 303-443-2070)