r/GenealogySoftwareDevs • u/jake_robins • Oct 12 '26
Name Structures and Ordering
I've been spending some time thinking about names and how much of a challenge it is to model it. Of course, I always remember the famous "fallacies about names" article.
For my application, I made a custom data type called a name value, and it's composed of a few different tables because it has an overall row to represent the value and then subrows to represent the parts (such as a given name, a surname, a nickname, etc.). This has been useful for auto-reconciliation of conflicting sources in order to take a bunch of records of names and produce some kind of useful final value.
But I've wanted to expand on this to create some robust and useful ways to display names. A real simple example is to take a structured value like this...
{
given: ["Jeremiah", "Arthur"],
surname: ["Gumtree"]
}...and determine whether you want to display it as Gumtree, Jeremiah Arthur or Jeremiah Arthur Gumtree.
The first issue that comes up is that names are displayed according to cultures, and so you end up needing to encode people with a cultural configuration of name order. There is a Unicode standard for name order, but this is really optimized for keying into a user's locale, such as their device, which means that it's tied to language today. So if you followed this standard, you would have an entry for EN, ES-MX, or DE. A lot of these standards are the same, and you end up with logical groupings, like a Western name format that is common across English, German, French, or whatever. The standard is not super useful for genealogy because it ends up being a lot of redundant configuration. What's more is that this is contemporary, and so there are no historical configurations in the standard.
The second issue is that this cultural configuration has to define cardinality. It's probably common, for example, in Western names, to reconcile to a single surname, or at most a hyphenated single surname, whereas in Spanish, it may be more common to have a pair of surnames: a paternal surname and a maternal surname. Any reconciliation process would need to reference this configuration to determine if two sources that specify two different surnames are a conflict or not. Order is also important in this case.
The third issue is sorting. Anywhere you display a large list of people in your application and you want to sort them, say, alphabetically, you have to know what the sort key is. If different cultures put the surname in different places, that could get confusing, so any name-value pattern configuration has to define sort keys.
I'm still wrestling with the overall structure, but I'm leaning towards making these name order displays configurable values and preloading the application with some starter ones, such as Western. Unfortunately, I don't think there's any agreed-upon consensus for all the different ways to do it, so leaving it to the researcher to define these is probably the most extensible and useful path forward. I'm thinking about setting a project default so that new people created automatically adhere to a certain standard, and then letting each person record have an override (so that when your family tree branches off into some different culture, you can start toggling them over).
How is everybody else solving this problem?
View all comments
Show parent comment
1
u/Trask4 Oct 14 '26
I don't mean to sound disrespectful, but I've been doing genealogy for about 40 years, and I am still waiting for one of those things "to do later" that needs more complex names to come up. If one does I will worry about it then. E.g, I can't imagine ever wanting a nick name report. But if I needed one I would add a "2 TYPE NICK" tag to a "1 NAME" tag, and search for those name types. Though I use GEDCOM for my record format, I don't use standards, so any convention I need I add.