recode_gender matches uncleaned gender responses to cleaned list using
an inbuilt or custom dictionary.
recode_gender(gender = gender, dictionary = gendercoder::broad, fill = FALSE)
a character vector of gender responses for recoding
a list that contains gender responses and their
replacement values. A built-in dictionary
logical indicating if gender responses that are not found in dictionary should be filled with the uncleaned values during recoding
a character vector of recoded genders