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

Add support for Post-nominal letters #31

Open winn-boardspot opened 6 months ago

winn-boardspot commented 6 months ago

Currently, post-nominal letters (eg: M.D.) are treated like a suffix, however names often place a comma between the name, and the post-nominal letters. Here is an example:

John Doe III, M.D.

In this example, III is the suffix, and M.D. is the post-nominal letters. Since the syntax and placement are different, they should be parsed into separate fields.