Changelog
Source:NEWS.md
peopleparser 0.2.8
More role words joined to the surname are dropped
npmerger’s rebuild on 0.2.7 found a few dozen names whose surname still carried a role word (HAMMETT-MGMT, WHITE-EXE, FOLEY-DEPUTY).
-
DEPUTYandEXEat the end of a name of three or more words are dropped when the word before is not mostly a given name:WILLIAM DELISIO DEPUTYgivesDELISIO. Both are also census surnames, soMARY ANN DEPUTY,SUSAN B DEPUTYandJOHN DEPUTYkeep them. -
OPERATINGandINTERIMjoin the role words dropped from the end of a name, andCHIEForINTERIMbefore a role word goes with it:MARINA TRIGONI CHIEF OPERATINGgivesTRIGONI,JOE MASI CHIEF DEPUTYgivesMASI. - A role word joined by a dash is split off (
KYLE SEARCH-DEPUTY,KEITH HAMMETT-MGMT), and a double dash separates a note like a single dash with spaces (ANEESA MCMILLAN--DEPUTY,JOE GOUDE VP--RETAIL SERVICES). -
SERVICESis an employer word:CATHI COAN TECHWAY SERVICESgivesCOAN. - On a sample of 200,000 Part VII names, 8 (0.004%) parse differently from 0.2.7, all fixes (
RONALD ABRAHAM--SEE SCHED OgivesABRAHAM).
peopleparser 0.2.7
An organisation followed by its representative keeps the person
- Entries that name an organisation and then the person who represents it now parse the person:
PRUDENTIAL INSURANCE - KYLE SMITHgivesKYLE SMITH, where before the dash cut the person and leftPRUDENTIAL INSURANCE;INDIANA INSURANCE CO JOSEPH YEAGERgivesJOSEPH YEAGER, where before it gaveINSURANCE-JOSEPH-YEAGER. The organisation must end in a clear organisation word (INSURANCE,INS,BANK,INC,LLC,CORPORATION,GROUP,SERVICES, …), optionally followed byCO,INC,NAand the like, and the rest must look like a person: two to four words, the first a census given name or an initial.CITIZENS BANK AND TRUST,BANK OF NY MELLONandCOMERICA BANK - TRUST DIVISIONare left alone. -
classify_names()labels these entries"person and organisation". -
CObefore more words after a given name and surname is “care of” an employer:CHAD COTTER CO BURNS MCDONELLgivesCOTTER, where before it gaveCOTTER-BURNS-MCDONELL. - In all national Part VII names, 110 distinct entries (309 rows) are an organisation followed by a person.
peopleparser 0.2.6
Role words, tenure notes and employers no longer become the surname
npmerger’s rebuild on 0.2.4 left a few role words among the most common surname parts: INSURANCE, STARTING, APPOINTED, MANAGING-DIR.
-
Tenure words.
STARTING,STARTED,APPOINTEDandELECTEDat the end of a name go tostatus, and the date after them is dropped:DUANE LARSON STARTING 6-2022givesLARSONwith statusSTARTING.NOT APPOINTEDis a placeholder inclassify_names(). -
Role words.
MANAGING,DIRandMGMTare trailing-only titles, andMANAGINGfollowed by another word (MANAGING PARTNER,MANAGING EDITOR) is cut byde_clutter():CRAIG WILSON MANAGING DIRgivesWILSON. -
Employers after the name. From an employer word (
INSURANCE,ASSURANCE,COMPANY,COMPANIES,AGENCY,CORPORATION,CORP,INC,LLC) at the third word or later, the name keeps its given name and surname, plus any title or suffix right after them:LISA PIERCE ALLSTATE INSURANCE COgivesPIERCE, where before it gavePIERCE-ALLSTATE-INSURANCE. -
A dash at the end of a word (
KARA JAMES- JOHNSON,JASON FRENN- MANAGING DIRECTOR) used to glue the two words (JAMESJOHNSON,FRENNMANAGING). A last word that is not a title or note is now joined as a double surname (JAMES-JOHNSON), as is the word after a single word (ADKINS- RICEHOUSE PAULA); otherwise the dash starts a note and the rest is cut, as for-. - On 200,000 distinct national Part VII names, 103 (0.05%) parse differently from 0.2.5. Most are double surnames written with a dangling dash (
STETSON-COMPTON,JEAN-BAPTISTE) and tenure words now instatus; the rest are organisation names.
Documentation
- The README is now built from
README.Rmd, with live examples of nicknames, name types and run-together names. - Examples in the README and the guides print their results as tables (
knitr::kable()) instead of wide console output, and the helper the guides use is shown. - The name-cleaning guide covers the rules added since 0.2.3: unknown trailing credentials, the dangling dash, employers and the new tenure and role words.
peopleparser 0.2.5
- A leading ambiguous credential that is not a census name, before a strong given name and at least one more word, is now a title:
DC David Beergives first nameDAVID, where before it gaveDC. AlsoPT RISHI MISIR(Pandit) andRM THAD WARREN.MA,BA,ABandAUDare census names and stay where they are: a leadingMAis usually Maria (MA BERNADETTE SALGARINO), andAB SKIP CONLEYkeepsAB. About 30 national Part VII names are affected; none in the 10,000-name sample.
peopleparser 0.2.4
- A lone ambiguous credential at the end of a name, after two name words, is now stripped:
CAROL RUSSELL NPgivesRUSSELL,ERIC HARTMAN DCgivesHARTMAN, where before it became the surname (NP,HARTMAN-DC). Up to 0.2.3 these short credentials (NP,DC,PT,ND,PM,MA,BA, …) were stripped only beside an unambiguous one, since some are also initials or surnames. Those that are not census names are now stripped after any name word.MA,BA,ABandAUDare census surnames, so they are stripped only when the word before is a strong surname (JOHN BURKE MA);XIAOYI ALICIA MA,MAMADOU YACINE BAandWEI MAkeep them. - In national Part VII names of three or more words, 5,434 end in a lone ambiguous credential; 4,757 are now stripped. In the 10,000-name synthid sample one name changes (
VERY REV RANDY M DOLLINS VG).
peopleparser 0.2.3
Unknown credentials no longer become the surname
- In 0.2.2 a middle name joins the surname only when it is a strong surname. Where the last word was a credential or organisation code the lists do not know, that code became the whole surname:
ANDREA M GORDON NMFgaveNMF, where 0.2.1 gaveGORDON-NMF. npmerger found 2,433 such last names in 1.77 million Part VII names (about half were real surnames missing from the census, which 0.2.2 parses correctly). - A last word that is not in the census is now stripped as a credential when it follows a known title, suffix or credential (
CHONG MD FAAFP,ROBEL RN BSN MHA NEA-BC,SCOTT III NMHC), when it is in a new list of 1,223 trailing codes, or when it is a short code (five letters or fewer, at most one vowel) after a census surname (BRIAN FRITZ UHC,SCOTT WILLIS USMCR). A surname missing from the census after a given name is kept (CYNTHIA SIMON SKJODT,MARISSA PIAZZA PASKY). - The list (
data-raw/trailing-credentials.csv, built bydata-raw/trailing_credentials.Rfrom all Part VII names) holds words that end the names of at least three different people, follow a census surname or a credential in at least 70% of them, and look like a code: medical credentials and fellowships (FACEP,FAAFP,FACR,CRNP), dates and tenure notes (OCT,JAN-JUNE,PART-YEAR), other professions (SIOR,CGCS), religious orders (SSND,OSFS) and hospital or system codes (UPMC,NMHC). - On npmerger’s 2,433 names, 976 now get the true surname back; most of the rest are real surnames missing from the census. On the 10,000-name synthid sample, 29 names change from 0.2.2, all but one for the better.
- New trailing role words
MANAGER,FOUNDER,COFOUNDER,COCHAIR,CO-CHAIR,CONTROLLER, and the inner particlesALandEL(MOHAMMED M AL HAEMLI->AL-HAEMLI).
peopleparser 0.2.2
Compared with the parses in synthid
-
New article, “What changed since the synthid parses” (
vignettes/articles/version-comparison.Rmd), compares 0.2.2 with the parses stored in synthid’s Part VII people tables (peopleparsercb01547, 0.0.0.9000) on 10,000 random names from 2017 and 2024. 903 names (9%) parse differently:Change Names Assessment Gender only 485 562 names newly coded from the 2020 census; 98 unisex names switched First and last name swapped 262 256 now keep the written order Middle name no longer joined to the surname 50 DAVID LEE SMITHwasLEE-SMITH; a few names written surname first are now wrongTitle or credential taken out of the name 41 SHERIFF,RABBI,MONSIGNOR,RSM,CRNA,PSYDParticle joined to the surname 3 ST-GEORGE,DA-SILVAOther 62 compound surnames in written order, KENNETHVANsplit; about half wrong in bothGaps that remain: an unlisted given name before a listed one can still be read as surname first (
MASSUMEH FARHAD); credentials the lists do not know stay in the surname (SSND,SIOR,FCAP); organisations in person fields are parsed as people unlessclassify = TRUEis used; unisex names get a near coin-toss gender. The script isdata-raw/compare_versions.R.
Fixes for names 0.2.1 parsed worse than the old build
-
Three-word names keep their written order unless the first word is clearly a surname and the last a given name, with the same written-order test as two-word names. The old rule counted every word missing from the census as a surname, so
TOKS MALIK ASHIRUandDONG JOON YIwere reordered. On 28,811 three-word Part VII names labelled by the convention of their return, wrong reorders fall from 1,210 to 53 (data-raw/name_order_eval3.R). -
A middle name joins the surname only when it is a strong surname (90% or more of its census records, or not in the census):
MARIA GARCIA LOPEZstill givesGARCIA-LOPEZ, butJOHN LEE SMITH,BILLY RAY JONESandBOYD RAY SCOTTkeep their middle names. Initials never join the surname (TOBI M E YOUNGwasM-E-YOUNG). - A word, two or more initials and a word (
GLYNN C W SCOTT) is read like a two-word name with middle initials; elsewhere a single letter is chosen as the surname only when nothing else can be. - More surname particles, joined only inside a name:
VANDEN,VANDE,SAN,SANTA,LOS,LAS,DELLA,DALLA,DELA,DOS,DAS,DA,DU,TEN,TER(PATRICIA SAN PEDRO,ESTELLA DE LOS RIOS). - New leading titles:
SIR,DAME,CHIEF,COUNCILMAN,COUNCILWOMAN,COUNCILMEMBER,CORPORAL,GENL,REP,CHAPLAIN. Ranks and offices (GEN,COL,ADM,SGT,GOV,SEN,HON,REV) are no longer put back as a given name when stripping them leaves none (GEN PERRIN). -
de_clutter()no longer drops the whole name after a rank followed byRET(COL RET CLARENCE MAXWELLwasCOL).
peopleparser 0.2.1
Name types: people, organisations and placeholders
- New
classify_names()labels each entryperson,organisation,person and organisation(a name followed by an employer),several peopleorplaceholder(SEE SCHEDULE O,VACANT), with anorg_score. Placeholders and couples are found by rules; organisations by a model trained on Form 990 Part VII names (982,000 filer names against 9.4 million person-field names; held-out AUC 0.9996), plus a list of trust banks written without an organisation word (BNY MELLON,WELLS FARGO). Seevignette("name-types")anddata-raw/name_type_model.R. -
parse_names(classify = TRUE)adds thename_typeandorg_scorecolumns. Off by default.
Run-together names (opt-in)
- New
split_run_together()splits a surname and given name written as one word: at an inner capital (KramerKenneth,LedbetterJennifer A) or, more cautiously, in all capitals (MURPHYSANDRA). Surname particles (McDonald,LaToya) and 214 recurring surnames that look like two names (MARKWALD) are left alone. On Part VII names it splits about 6,600 rows, and about 19 of 20 splits in random samples are right. -
parse_names(split_run_together = TRUE)andparse_name(split_run_together = TRUE)apply it before parsing. Off by default, so default parses are unchanged from 0.2.0.
peopleparser 0.2.0
parse_names() no longer starts its own workers (breaking)
-
parse_names()used to start a new set of background R sessions on every call (future::plan(multisession)with all cores but one). It now runs in the current session unless the caller has set afuture::plan(), or passes the newworkersargument:workers = 4starts four workers for that call and restores the caller’s plan afterwards;workers = 1forces sequential parsing. Code that relied on the old parallel default should passworkers =or set a plan. - Workers load the installed copy of peopleparser. Each now reports its version and build time, and
parse_names()stops with a clear message if any differs from the calling session (a reinstall while R was running, or a session usingdevtools::load_all()), instead of silently parsing with older code.
Faster parsing
Each dataset (
census.names,first_name_pairs) is loaded once per session. Before, when peopleparser was loaded but not attached (calls likepeopleparser::parse_name(), or inside workers), every census lookup reloaded the table.Census lookups use a hashed index built once per session instead of a keyed join per call, and
determine_surname()ranks tokens in base R rather than dplyr. Parses are unchanged.-
Speed on 20,000 Form 990 Part VII names, names a second (24-core machine):
Call 0.1.0 Now peopleparser::parse_name(), package not attached6 370 parse_name(), attached94 2,040 parse_names(), five calls of 200 names73 1,790 parse_names(), 20,000 names (default)586 1,660 parse_names(workers = 7), 20,000 names- 3,860 The 0.1.0
parse_names()rows used its built-in parallel default, here 23 workers started on every call. The 20,000 parses are identical before and after.
Split MC surnames
-
prep_name()no longer cuts everything after a standaloneMC(CHARLES MC SPADDENgave last nameMC). A splitMCsurname inside a name is now joined without a dash (MCSPADDEN,MCDERMOTT). A trailingMCis a credential (Navy Medical Corps) stripped at the end of a name, and a leadingMCis initials before one word (MC OLSON) or part of the first name before two or more (MC-NELLY TORRES).MCis no longer a default particle offix_locative_surnames().MCCMis added as a credential. Of the 60 Form 990 Part VII names with a standaloneMC, 55 now parse better and 5 are unchanged.
Two-token names keep their written order (changes parses)
Two-word names now start from the written order (first name, then surname) and are swapped only when the census makes surname-first much more likely: smoothed surname shares (pseudo-count 20), odds of surname-first above 30. Before, the token with the higher raw surname share was the surname wherever it stood, so thin or mixed evidence flipped names:
HARRIS MORRISON,RICHARD RUVIN(first nameRUVIN),FOSTER MCDONALD,MARK MICHAEL,MARSHALL RYAN. Clear surname-first names are still swapped (SMITH JOHN,GARCIA MARIA).Tuned on 758,388 two-word Form 990 Part VII names, each labelled by the convention of the other names on its return (
data-raw/name_order_eval.R): order errors fall from 12,463 to 2,687. Names written first name first keep their order 99.8% of the time (was 98.4%); 89% of names written surname first are swapped (was 97%, at the cost of many false swaps).A leading token of one or two letters absent from the census is initials (
HM CHERRY,DC ALLEN), and a lone letter is rarely the surname (BISHOP J-> surnameBISHOP). This replaces the 0.85 surname-share rule added earlier in this development cycle.Names of three or more words are unchanged.
A title that is also a surname (
SHERIFF,BROTHER,BISHOP, …) as the first of two tokens is a title when the other token is not mostly a given name (SHERIFF MASRY-> salutationSHERIFF, last nameMASRY).On 9,608 Form 990 Part VII names, 20 parses change, 18 of them fixes. Parse consistency for the 829 linked people written more than one way is unchanged.
first_name_pairsis refreshed from synthid’s revised first-name variant table: 24,967 pairs, 1,002 in the reviewed lexicon (was 24,972 and 1,007). Five pairs were dropped after a review of matches across organizations showed they mostly link two different people: JOHN/JONATHAN, JOHN/JOHNATHAN, MARY/MARIE, MARY/MARIA and MARIA/MARIE. No other pair changed;chain_idnumbers shift for 82 rows (same chains, new numbers).Effect on the nickname columns: JOHN is now
first_name_type = "formal"with no formal names (was"both", formal JONATHAN and JOHNATHAN), and JONATHAN and JOHNATHAN no longer list JOHN as a nickname. These are the only changes to the nickname columns across all names in the table, and no canonical first name changes. Infirst_name_variants(), MARIE and MARIA no longer list each other or MARY as cognates (MARY still reaches them as sound-alikes through MARI).
peopleparser 0.1.0
First tagged release. peopleparser parses raw person names into salutation, first, middle and last name, suffix and status, and scores gender from U.S. Census name frequencies. This release adds first-name variants and canonical first names, rebuilds the census table from the 2020 Census, strips many more titles and credentials found on Form 990 Part VII names, fixes several name-order bugs, and adds four guides.
Census name table updated to the 2020 Census
-
census.namesis rebuilt from the Census Bureau’s 2020 name release (“Frequently Occurring First Names and Last Names from the 2020 Census”, revised April 2026): 53,615 first names with counts by sex (was 5,494 from the 1990 lists) and 156,621 surnames (was 162,253 from 2010). Real counts replace the 1990 percentages scaled to counts. - New
data-raw/census_names.Rdownloads the source files, records their hashes indata-raw/census-names-src.csv, rebuilds the table, compares it with the bundled one, and saves it whenCENSUS_NAMES_SAVE=TRUE. It also checks that the old 1990 given-name side can be rebuilt from the 1990 files. -
determine_surname()now ranks tokens in tiers: known names that are at least 95% surnames first, then unlisted tokens, then the rest by surname share. In the 2020 lists nearly every common surname is also a rare given name, and without the tiers an initial or unlisted token outrankedSMITHinSJ SMITH. - Effect on 9,608 Form 990 Part VII names: gender agrees with an
MR,MRSorMSsalutation for 86% of names (was 79%), names with unknown gender fall from 727 to 227, and plain two- and three-word names keep the written first word as the first name 96.3% of the time (was 95.4%). 253 parses change first or last name. Gender changes most for names that shifted since 1990 (TAYLOR,RILEY,AVERYare now mostly female).
Religious titles license DC and MA
- After a leading religious title (
SR,SISTER,FR,REV, …),DC(Daughters of Charity) andMAstrip at the end of the name, with at least two names in between:SR ELLEN KRON DC->KRON. Without the title they still need a clear credential beside them.
Name-order and gender fixes
-
prep_name()no longer gluesVAN DERonto the word before it (MARY VAN DER BERGgaveMARYVAN-DER-BERG). -
fix_locative_surnames()joins particle chains fully:DE LA ROSA->DE-LA-ROSA(was last nameDE-LAwithROSAas a middle name). - Double surnames keep their written order when the parts are adjacent:
MARY ANN SMITH JONES->SMITH-JONES(wasJONES-SMITH),JEAN A DU PONT->DU-PONT.resolve_middle_name()gains atokensargument. - Three-token names now count initials correctly, so two initials (
A J SMITH,SMITH A J) take their own rule, and a three-token name with no census gender evidence getsU/50.0(orM/50.0with a suffix) instead of anNAconfidence. On the 1,000 sample names, 7 parses change, all fixes.
Documentation
- Three new guides:
vignette("name-cleaning")(clutter, titles, credentials, suffixes, status),vignette("name-order")(name-order rules and compound surnames) andvignette("gender-scoring")(the gender score and wherecensus.namescomes from). -
census.namesis documented as Census Bureau name lists, not birth-certificate counts, as the README and its help page used to say. -
prxandsfxare documented as removed wherever they occur, not only at the front or the end of a name.
Suffix gaps on Form 990 Part VII names
- About 90 credentials, religious-order post-nominals, Masonic offices and fused military tokens (
RSM,CSJ,PHARMD,FACHE,CFRE,USNRET, …) and the hyphenated credentials (PA-C,SHRM-SCP, …) are now stripped, so they no longer end up inlast_name(REARDON-RSM). Source:data-raw/SUFFIX-GAPS-PART7.md. - Some titles now strip only by position.
SJ,CISA, role words (TRUSTEE,SECRETARY,VICE CHAIR, …) and tenure notes (TERM,JOINED,NON VOTING, …) strip only at the end of a name.BISHOP,SHERIFF,CANTOR,DEACON,CAPTAIN,MOSTand similar strip only as the first word. SoJOHN BISHOPkeeps the surname. - 17 short credentials that are also names or places (
MA,DC,NP, …) strip only inside a trailing run that has a clear credential, asRMalready did. The short religious-order post-nominalsOP,SC,SP,CR,HMandDDstrip at the end of a name even on their own, but never as leading initials. - Fused credentials are split before stripping (
JRMD->JRMD,MDMPH->MDMPH), from the third token on and never for a census name. -
prep_name()joinsSTto the following surname (ST-CLAIR, which no longer losesST),DR PHintoDRPHandNON VOTINGinto one word, and treatsVANDERas a surname particle. -
known_titles()covers the new tokens and has new types: Religious Order, Fraternal Office and Military Status. - The pkgdown site uses the NODC
pkgstyletemplate.
Name parsing: title vs. given-name / surname collisions
- Given names that were miscategorized as credentials in the
prxprefix list (EARL,ZOLA) are removed, so records likeEARL FAHNESTOCKno longer lose their first name to salutation stripping. -
parse_name()gained a general recovery step: when stripping a salutation leaves no first name and the removed token is a known census name, it is restored — and its role is decided by its original position. A leading token is the given name (EARL FAHNESTOCK-> firstEARL); a trailing token is the surname and the remaining token becomes the first name (TOM MAJOR-> firstTOM, lastMAJOR). Gender is recomputed from the resolved first name. - Real titles/credentials (
MR,DR,REV, …) are unaffected: they are not census names, so they are never restored as first names. - Added regression tests covering these cases.
Nicknames (experimental)
- New
first_name_pairsdataset: synthid’s first-name variant table (24,972 pairs observed as one person’s first names across Form 990 Part VII filings; 1,007 reviewed nickname, spelling, cognate and compound pairs plus unreviewed sound-alikes and misspellings), with aformalcolumn saying which side of a nickname pair is the formal name. - New
nickname_lookup(),canonical_first_name(),get_formal_names()andget_nicknames(). The canonical rule takes a spelling step to the most common spelling, then at most one nickname step, chosen by the people carrying each pair, filtered by gender, and left"ambiguous"when no formal name holds 60% of the evidence. Variant chains are never followed. - New
first_name_variants(): every name in a name’s canonical family, with how it gets there, plus related names that are not merged. -
parse_name()andparse_names()gainadd_nicknames = FALSE, which appendsfirst_name_type,first_name_formal,first_name_nicknames,first_name_canonicalandcanonical_rule. - New vignette, “Canonical first names, nicknames and gender”.
- Pilot on 33,535 linked Part VII records:
data-raw/PLAN-nicknames.md.