Find Duplicates
find_duplicatesFind possible duplicate people in a Gramps Web family tree by matching names across spellings and gender forms, then review returned pairs before merging.
Instructions
Find people entered twice in the tree: pairs with the same given name (the first word of one's among the other's, so Мария pairs with Анна Мария) and surname in any spelling (Cyrillic or Latin letters, so Мария, Марья and Maria, or Kowalski written in Cyrillic; ё and pre-reform letters, Latin accents, Polish w, sz and cz) and in the male, female or daughter's form (Kowalski and Kowalska, Novák and Nováková, Hájek and Hájková, Kazlauskas, Kazlauskienė and Kazlauskaitė, Ozols and Ozola, Papadopoulos and Papadopoulou, Kovács and Kovácsné), not of the other gender, without different patronymics, born and dead at most five years apart, and neither dead before the other was born. People with a patronymic but no surname pair by given name and patronymic when their birth years or parents can be compared. Spouses, and a person and their parent, grandparent or earlier ancestor, are never paired. Pairs born at most two years apart, or children of the same parents without two years to compare, are possible duplicates; the others are similar pairs. Each call reads every person of the tree, up to 20000, so a tree of a few thousand people takes 10 to 20 seconds. Returns how many people were compared and the pairs, possible duplicates first and then by how close the births are, numbered across pages; each person with Gramps ID, handle, birth, death and parents. Nothing changes: compare a pair with get_object, and merge it with merge_objects only after the user confirmed they are one person. create_person and create_records run the same check on the people they create; to find one name, use search.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many pairs to show, 1–100 (default 20); other values are clamped. | |
| offset | No | How many pairs to skip, to show the next ones (default 0). | |
| surname | No | Only pairs where one of the people has this surname, in any spelling or form: Kowalski also finds Kowalska and Kowalski in Cyrillic letters, and Novák also finds Nováková. | |
| personHandle | No | Only pairs with this person. Handle or Gramps ID (e.g. I0001), resolved automatically; find it with search or list_objects. |