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

Last name prefix 'van den' is not parsed as part of the last name #12

Open pillowfication opened 5 years ago

pillowfication commented 5 years ago

'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'
chris-pardy commented 4 years ago

@pillowfication we've taken over ownership of this library I'm moving issues into our fork. Please feel free to comment further on your issue there.