2 ms·
<rant> Names are just Unicode strings, which you should not fold, spindle or mutilate. Why do you care which bit is the family name, or if this person has a f
by nickzoic 15y ago
<rant>
Names are just Unicode strings, which you should not fold, spindle or mutilate. Why do you care which bit is the family name, or if this person has a family name, or even if there is such a thing as a family name in their family's culture? Why even try for a canonical form?
Even better, make name a _list_ of Unicode strings, so people who have multiple names (Chinese/Western, pre/post marriage, pre/post op) can give you the whole list to search on.
If asking for their credit-card details, ask "Name As Printed On This Credit Card" and store that as well so you can bill them. That's really a property of the card, not the person.
And then just add a "Informal Name" field so you're not stuck guessing which bit is the informal name, or writing "Dear Roderick Frederick Ronald Arnold William MacArthur McBan" which does sound kind of dorky ...
</rant>