Skip to contents

Parse names

Top-level entry points for turning raw names into structured components.

parse_name()
Parse a Full Name into Components
parse_names()
Parse a Vector of Names

Prepare & clean

Sanitize and normalize raw name strings before parsing.

sanitize_input()
Sanitize Raw Name Input
prep_name()
Prep a Name for Parsing
de_clutter()
Remove Nuisance Text From a Name
trim_spaces()
Collapse and Trim Whitespace
remove_punctuation()
Remove Punctuation
fix_locative_surnames()
Fix Locative or Compound Surnames by Adding Dashes
remove_elements()
Remove Character Elements From a Vector
extract_component()
Extract Specific Name Components

Census-based inference

Resolve name ordering, surnames, and gender from census frequencies.

get_census_data()
Look Up Census Name-Frequency Data for a Character Vector
check_if_surname()
Check Whether Tokens Read as Surnames
determine_gender()
Infer Gender from a Census Name Matrix
determine_surname()
Determine the Surname (Last Name) Position
assign_names()
Parse Core Name Components and Gender
resolve_middle_name()
Resolve Middle Names as Potential Surnames

Reference data

Bundled datasets and lookup tables.

census.names
Frequency of name occurrence on US birth certificates.
known_titles()
Known Titles and Abbreviations
prx
Known Prefix (Salutation / Title) Strings
sfx
Known Suffix Strings
names_100
Sample of 100 Names for Testing
names_1000
Sample of 1,000 Names for Testing
get_example_names()
Build a test sample of names from IRS 990s