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

Trouble with Dutch last names #19

Open joedp opened 3 years ago

joedp commented 3 years ago

Parsing for names like "Joe van den Berg" are returning 'Berg' as the last name. The last name should be "van den Berg". Also tried "Joe Van Den Berg" but that did not help. However, it is working for names similar like "Joe van der Berg".

"Van de Berg", "van den Berg" and "van der Berg" should probably all work -- they mean the same thing in general "from the mountain" and are very common Dutch surnames (see https://www.dutchgenealogy.nl/popular-dutch-surnames/).

Otherwise-- thanks much for what you have-- seems well documented and well thought out.