News for hackers. Stuff that matters.
Re:Falsehoods Programmers Believe About Families by acuozzo on Wednesday March 29, 2017 @07:00PM (#13991407)
> How do you define a set of name fields for any country?

Perhaps the solution is to provide two options: either (1) the common (Western?) given|surname structure or (2) an Nx2 matrix in which the key is what the name part is called on legal documents in the region and the value is the corresponding name part.

An example…

Full name: "Hajji Halef Omar Ben Hajji Abul Abbas Ibn Hajji Dawud al-Gossarah"

Title: Hajji

Ism: Halef Omar

Nasab: Hajji Abul Abbas

Nasab: Hajji Dawud

Nisbah: al-Gossarah

A database for the keys can be maintained and suggestions can be offered to the user at submission time in order to keep things tidy. Additionally, per-region templates can be maintained in order to make the Nx2 approach less burdensome.

Users submitting names under #2 would be additionally required to select two name parts so that their name can be shoehorned into the Western model.

Continuing with our example…

Given Name: Halef Omar

Surname: al-Gossarah

(Here's a reward for putting up with my absurd example: https://www.youtube.com/watch?v=o3V-9Az5FUs)

There are no comments on this comment yet.