name-parser
name-parser copied to clipboard
Prefixes do not get recognized
While adding the Dutch language the van ’t
last name prefix could not get detected.
Adding it to a new language's suffixes will not detect it either, so this has something to do with the parsing internals.
Did add a test in draft PR #35
Test data
Expected: Charlotte
van ’t
Wout
Actual: Charlotte Van ’T
Wout
@rvanlaak I recognized the same problem for german particularities. I solved this with #40. If you are interested in this solution, than have a look on this PR - or even better: I would appreciate if you can test it. The prerequisite would be to create a Dutch.php likewise German.php