RateGravity / 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] }.
40 stars 13 forks source link

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

Open chris-pardy opened 5 years ago

chris-pardy 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 5 years ago

Port of dschnelldavis/parse-full-name#12