Questionable name capitalisation
Posted: 29 Oct 2022 22:05
Having (1) been given a gedcom with some data I wish to merge in to my tree where the capitalisation is best technically described as "a dogs breakfast" and (2) wanting to set about learning plugin coding, I've created my own plugin to report on questionable name capitalisation.
Taking things slowly, I've not attempted to do any correction via the plugin, it just reports all names where it thinks there is an issue. In addition to identifying surnames in all capitals it addresses limitations of the Clean up Surname Capitalisation plugin.
What it does:
The message at the end gives the meaning of the issue codes: I've been reading the topic Surname prefix (SPFX) -- more generally, handling structured names. and wondering how what I've done might handle those issues.
My efforts so far are attached - if anyone would like to try it out I'd like some feedback - including on my coding as I'm just starting to learn lua.
Sample report:
Taking things slowly, I've not attempted to do any correction via the plugin, it just reports all names where it thinks there is an issue. In addition to identifying surnames in all capitals it addresses limitations of the Clean up Surname Capitalisation plugin.
What it does:
- Checks for surnames all capitals or incorrectly capitalised (e.g. where the shift key was held just too long - SMith). it uses the same logic as the existing plugin for names beginning Mac etc.
- Given names are checked (with no special prefixes)
- Given and surnames in all lower case are reported
- Corrects an issue with the name MACE which the existing plugin wants to change to MacE
- Reports empty names (where the text has been removed from an additional name via the All tab without removing the field)
- Reports strange name structures where the /.../ defined surname is in the middle of the name (e.g. Ernest /Moore/ Jr where the name suffix should have been used). It doesn't attempt to unscramble these
The message at the end gives the meaning of the issue codes: I've been reading the topic Surname prefix (SPFX) -- more generally, handling structured names. and wondering how what I've done might handle those issues.
My efforts so far are attached - if anyone would like to try it out I'd like some feedback - including on my coding as I'm just starting to learn lua.
Sample report: