% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gender_create_dictionary.R
\name{gender_create_dictionary}
\alias{gender_create_dictionary}
\title{Create a custom dictionary from fuzzy matches}
\usage{
gender_create_dictionary(
  gender,
  dictionary = gendercoder::manylevels_en,
  max_distance = 1
)
}
\arguments{
\item{gender}{a character vector of gender responses for recoding}

\item{dictionary}{a character vector whose names are known gender responses
and whose values are replacement values}

\item{max_distance}{maximum edit distance allowed for a suggested match}
}
\value{
a named character vector of suggested replacement values
}
\description{
\code{gender_create_dictionary} suggests dictionary entries for gender
responses that are not already matched exactly. The returned named character
vector is intended to be reviewed before it is combined with a built-in
dictionary and passed to \code{recode_gender()}.
}
\examples{
suggested <- gender_create_dictionary(
  c("maile", "unknown"),
  dictionary = manylevels_en,
  max_distance = 1
)
suggested

}
