The nightly scripts attempt to fill in blank/None genders that it finds by going through the following checks:
- if gender is <None> but the title/prefix is a gendered prefix (Mr., Ms., Mrs, etc) it will use the gender of the prefix if one exists.
- if gender remains <None>, the system will try to figure it out by relationship. A son or father would become a male, a grandmother or aunt a female, etc.
- the system attempts to figure out gender based on a person's first name. This list doesn't grow anymore as we don't support it, so some names can probably miss this. As a note, this check is recognized as controversial internally and may change in the future.
- if gender is still <None> then we will attempt to base it on their spouse's gender. As a note, this check is recognized as controversial internally and may change in the future.
If any records meet the above criteria, then that record gets a gender associated with it. Once the gender has been assigned, the same script assigns the proper prefix for that gender; if a gender existed all along then this just fills in the title/prefix.
These checks happen when gender is <None>. In the raw data <None> = 0. All of the steps above happen only when gender = 0. Designating the gender as Non-Binary (3) causes the person to not be automatically assigned a title, prefix, or gender.