* Find Duplicate Names Plugin
-
- Superstar
- Posts: 280
- Joined: 13 May 2015 16:28
- Family Historian: V7
- Location: Mitzpe Jericho, Israel
Find Duplicate Names Plugin
Hi,
I need a way to generate a list of people who have duplicate names (the same name occurs more than once for the person).
It's a pretty easy plugin to write, but before I spend the time, I wanted to check if something like this already exists. I checked the Plugin Store and didn't see anything, but I could have missed it.
Thanks,
Shosh
I need a way to generate a list of people who have duplicate names (the same name occurs more than once for the person).
It's a pretty easy plugin to write, but before I spend the time, I wanted to check if something like this already exists. I checked the Plugin Store and didn't see anything, but I could have missed it.
Thanks,
Shosh
Shosh Kalson
- Jane
- Site Admin
- Posts: 8507
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Find Duplicate Names Plugin
Are you looking for Individual records which have multiple name fields? or multiple records with the same value for the name field?
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- tatewise
- Megastar
- Posts: 28333
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Find Duplicate Names Plugin
I imagine that Find Duplicate Individuals is totally unsuitable. Otherwise, there is nothing else that I am aware of.
I was also thinking along the same lines as Jane. What exactly are you looking for?
I was also thinking along the same lines as Jane. What exactly are you looking for?
- Any single Individual record where its Primary/Alternate Name fields contain duplicates?
- Multiple Individual records that share the same Primary/Alternate Name field value?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Superstar
- Posts: 280
- Joined: 13 May 2015 16:28
- Family Historian: V7
- Location: Mitzpe Jericho, Israel
Re: Find Duplicate Names Plugin
I am looking for 1) Any single Individual record where its Primary/Alternate Name fields contain duplicates.
I don't think it should be too difficult to write.
Shosh
I don't think it should be too difficult to write.
Shosh
Shosh Kalson
- Jane
- Site Admin
- Posts: 8507
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Find Duplicate Names Plugin
If you don't have a lot of people with more that 3 or 4 alternate names you could simply use a query
Adding to the list if
name[1] = name[2]
or
name[1] = name[3]
etc
Adding to the list if
name[1] = name[2]
or
name[1] = name[3]
etc
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
-
- Superstar
- Posts: 280
- Joined: 13 May 2015 16:28
- Family Historian: V7
- Location: Mitzpe Jericho, Israel
Re: Find Duplicate Names Plugin
We enter all names found in the records. And there are a lot of variations. So an individual could have quite a few alternate names. I have individuals with upwards of 10 names. That's an awful lot of permutations.
Shosh
Shosh
Shosh Kalson
- tatewise
- Megastar
- Posts: 28333
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Find Duplicate Names Plugin
When writing the Plugin, don't overlook all the various Name subsidiary fields that need comparing.
e.g.
~.NAME = Name
~.NAME.NPFX = Name Prefix
~.NAME.NSFX = Name Suffix
~.NAME.NICK = Nickname
~.NAME._USED = Given Name Used
~.NAME.GIVN = Given Name
~.NAME.SPFX = Surname Prefix
~.NAME.SURN = Surname
The first five relate to the Names & Titles dialogue, and the last three are unlikely to be used.
There are also NOTE and SOUR subsidiary fields possible that need to be considered.
I suggest the easiest technique is to use what I call a dictionary table such as local dicName = { }.
First compose the FullName from all the component fields above for NAME[1].
Then test if dicName[FullName] then to see if an entry already exists and add record to list.
Otherwise, use dicName[FullName] = true to add entry to the dictionary.
Repeat for NAME[2] , NAME[3] , et seq.
e.g.
~.NAME = Name
~.NAME.NPFX = Name Prefix
~.NAME.NSFX = Name Suffix
~.NAME.NICK = Nickname
~.NAME._USED = Given Name Used
~.NAME.GIVN = Given Name
~.NAME.SPFX = Surname Prefix
~.NAME.SURN = Surname
The first five relate to the Names & Titles dialogue, and the last three are unlikely to be used.
There are also NOTE and SOUR subsidiary fields possible that need to be considered.
I suggest the easiest technique is to use what I call a dictionary table such as local dicName = { }.
First compose the FullName from all the component fields above for NAME[1].
Then test if dicName[FullName] then to see if an entry already exists and add record to list.
Otherwise, use dicName[FullName] = true to add entry to the dictionary.
Repeat for NAME[2] , NAME[3] , et seq.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
-
- Superstar
- Posts: 280
- Joined: 13 May 2015 16:28
- Family Historian: V7
- Location: Mitzpe Jericho, Israel
Re: Find Duplicate Names Plugin
I think that the only field which is relevant for us is ¬.NAME.
We do not assign values to any of the sub-fields. Does FH assign values to GIVN and/or SURN?
Shosh
We do not assign values to any of the sub-fields. Does FH assign values to GIVN and/or SURN?
Shosh
Shosh Kalson
- tatewise
- Megastar
- Posts: 28333
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Find Duplicate Names Plugin
No, FH does not perform any such 'hidden' assignments that some other products do.
Those subfields would only get assigned from imported GEDCOM or via the All tab.
Did you see my advice about NOTE and SOUR subfields, and how to use a dictionary table?
Those subfields would only get assigned from imported GEDCOM or via the All tab.
Did you see my advice about NOTE and SOUR subfields, and how to use a dictionary table?
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry