Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middle names #10

Open
kalvish21 opened this issue Aug 12, 2015 · 1 comment
Open

Middle names #10

kalvish21 opened this issue Aug 12, 2015 · 1 comment

Comments

@kalvish21
Copy link

Why does this library not support middle names?

p = NameParse.parse("Dr. Juan Quincy Adams Xavier de la Vega III")

I get:

firstName: "Juan Quincy Adams Xavier"
initials: ""
lastName: "De La Vega"
salutation: "Dr."
suffix: "III"

Seems like all names before initial/last name are first name? lol.

@eljeffeg
Copy link
Contributor

@kalvish21 Here is fork I modified for genealogical purposes, which includes middle name. In my case, it would have parsed the first name as "Juan Quincy" and the middle name as "Adams Xavier". https://github.com/jeffg2k/SmartCopy/blob/master/parse-names.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants