dschnelldavis / parse-full-name

A function that accepts the full name of a person in any format, parses it, and returns its parts { title, first name, middle name, last name, nickname, suffix, [and any parsing errors] }.
74 stars 15 forks source link

'JIM E SOMETHING' name parsed like last name #27

Open ivan-ivory opened 2 years ago

ivan-ivory commented 2 years ago

let result = { "title": "", "first": "", "middle": "", "last": "Jim e Something", "nick": "", "suffix": "", "error": [] }

jrevon1 commented 1 year ago

Sorry to necro this, but have also run into this issue regularly while using this library to parse fullnames. Issue seems to be related to the use of E and Y in the conjunctionList - names that don't use "E" or "Y" as a middle initial appear to be parsed properly.