gendercoder: Recodes Sex/Gender Descriptions into a Standard Set

Provides dictionary-based tools for recoding free-text gender responses into consistent categories while preserving gender diversity where possible. The package standardises spelling, capitalization, whitespace, and common variants through curated named character-vector dictionaries, supports either detailed or collapsed output categories, and can retain original unmatched responses for manual review. It also includes helpers for creating custom dictionaries from approximate string matches and a local interactive application for recoding uploaded data files.

Package details

AuthorYaoxiang Li [aut, cre] (ORCID: <https://orcid.org/0000-0001-9200-1016>), Jennifer Beaudry [aut] (ORCID: <https://orcid.org/0000-0003-1596-6708>), Emily Kothe [aut] (ORCID: <https://orcid.org/0000-0003-1210-0554>), Felix Singleton Thorn [aut] (ORCID: <https://orcid.org/0000-0002-0237-6146>), Rhydwyn McGuire [aut], Nicholas Tierney [aut] (ORCID: <https://orcid.org/0000-0003-1460-8722>), Mathew Ling [aut] (ORCID: <https://orcid.org/0000-0002-0940-2538>), Julia Silge [rev] (Julia reviewed the package (v. 0.0.0.9000) for rOpenSci, see <https://github.com/ropensci/software-review/issues/435>), Elin Waring [rev] (Elin reviewed the package (v. 0.0.0.9000) for rOpenSci, see <https://github.com/ropensci/software-review/issues/435>)
MaintainerYaoxiang Li <liyaoxiang@outlook.com>
LicenseGPL-2
Version0.1.1
URL https://github.com/ropensci/gendercoder
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("gendercoder")

Try the gendercoder package in your browser

Any scripts or data that you put into this service are public.

gendercoder documentation built on May 19, 2026, 1:08 a.m.