pahanix / full-name-splitter Goto Github PK
View Code? Open in Web Editor NEWLib splits full name into first and last name considering name prefixes and initials
Lib splits full name into first and last name considering name prefixes and initials
Tripped me up for a while after I grabbed the gem. Thanks!
https://github.com/Spokeo/full-name-splitter has a more updated gem. Try arranging them as a maintainer for this gem.
Someone named "Ben Johnson" for example, will return [nil, "Ben Johnson"]. I understand that Ben is used before last names in Hebrew, but it's a fairly common first name in the US. I wonder if perhaps there are only two names Ben is better to be assumed to be the first name?
This gem is awesome. Thanks for writing it. ๐ป
>> FullNameSplitter.split("Dr. Ezekiel P A von Sikelianos")
[
[0] "Dr. Ezekiel P A",
[1] "von Sikelianos"
]
John Henry Johnson Jr. or John Henry Johnson Sr. are currently split as follows:
first_name: John Henry Johnson
last_name: Jr.
not sure if it should it be excise the suffix or append to first_name?
first_name: John Henry Jr.
last_name: Johnson
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.