• This is not an easy problem to generalize.

    Take this name for example: “Carl von Clausewitz”. Unless the procedure knows the conventions, how does it identify that the last name is two words, “von Clausewitz”?

    Names are full of exceptions like this, and not all cultures even follow the convention of having a first name and last name.