Discrepancy in surname count between Top Surnames and Statistics

Gramps AIO 5.1.4 on Windows 10

Top Surnames gramplet on the dashboard reports “Total unique surnames: 60” while the Statistics gramplet under Family Information, reports “Unique surnames: 50”.

A manual count of surnames in the People Grouped view shows 59 surnames and I guess one more count is added for the people with missing surnames, so 60 matches the output of “Top Surnames” .

Statistics doesn’t seem to be reporting surnames of individuals, but rather Families. In my tree I counted 34 unique family surnames, and ~11 families with no surname which still doesn’t add up to 50. What is the data “Statistics report” is reporting?

For consistency, it would be good for Statistics gramplet to show unique surnames under individuals as well.

The Statistics Gramplet unique surnames is derived from the surnames found under persons primary names. So this doesn’t include surnames that might be found under person alternate names,
This information is actually tracked internal to the database.

The Top Surnames Gramplet does include the alternate names for people when looking for surnames.
This is developed by scanning all the people and examining primary and alternate names.

An interesting example of what happens when different authors write code…


@prculley That makes sense. To count people with primary names in my family tree, I created a filter based on People with Name Type=Birth Name and the result was exactly 50 surnames, so that matches your explanation.

For consistency it would be awesome to have documented, library of utility methods such as this count of surnames (there may even be an official function for this) and have authors reuse it, but that is difficult to make happen in practice.


To add to this; a number of bug reports have been made since at least Gramps 3.4.5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.