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] }.
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.
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, andM.D.
is the post-nominal letters. Since the syntax and placement are different, they should be parsed into separate fields.