May be of interest to all, not just data geeks, as it relates to collecting statistics on gender identity by public bodies, as recommended by the the Scottish Government.
Will not try to summarise, but among the suggested guidelines are how to code answers given responses via a free text box:
The Office of the Chief Statistician has produced a coding framework designed to help analysts categorise free text responses to the recommended question on trans status.
Respondents who answer 'Yes' to the question 'Do you consider yourself to be trans, or have a trans history?' are asked the follow-up question 'If you would like to, please describe your trans status (for example non-binary, trans man, trans woman):'. This coding framework provides guidance for how to code free text responses to this question.
From longer guidance at https://www.gov.scot/publications/data-collection-publication-guidance-sex-gender-identity-trans-status/pages/7/