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.

Version: 0.1.1
Depends: R (≥ 3.0.0)
Suggests: knitr, rmarkdown, bs4Dash, haven, shiny
Published: 2026-05-18
DOI: 10.32614/CRAN.package.gendercoder (may not be active yet)
Author: Yaoxiang Li ORCID iD [aut, cre], Jennifer Beaudry ORCID iD [aut], Emily Kothe ORCID iD [aut], Felix Singleton Thorn ORCID iD [aut], Rhydwyn McGuire [aut], Nicholas Tierney ORCID iD [aut], Mathew Ling ORCID iD [aut], 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>)
Maintainer: Yaoxiang Li <liyaoxiang at outlook.com>
BugReports: https://github.com/ropensci/gendercoder/issues
License: GPL-2
URL: https://github.com/ropensci/gendercoder
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: gendercoder results

Documentation:

Reference manual: gendercoder.html , gendercoder.pdf
Vignettes: Introduction to gendercoder (source, R code)
Adding to the dictionary (source, R code)

Downloads:

Package source: gendercoder_0.1.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): gendercoder_0.1.1.tgz, r-oldrel (arm64): gendercoder_0.1.1.tgz, r-release (x86_64): gendercoder_0.1.1.tgz, r-oldrel (x86_64): gendercoder_0.1.1.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=gendercoder to link to this page.