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] }.
40
stars
13
forks
source link
Last name prefix 'van den' is not parsed as part of the last name #3
'van den' is treated like a middle name, unlike 'van der', 'van de', etc.
parse('Johannes van den Bosch').last // 'Bosch'
parse('Johannes van der Bosch').last // 'van der Bosch'
parse('Johannes van de Bosch').last // 'van de Bosch'
'van den' is treated like a middle name, unlike 'van der', 'van de', etc.