Skip to content

List 77 common US credentials no wordlist held; refuse cota (#993) - #1026

Merged
derek73 merged 3 commits into
masterfrom
fix/issue-993-us-credentials
Nov 3, 2026
Merged

derek73 merged 3 commits into
masterfrom
fix/issue-993-us-credentials

Conversation

@derek73

@derek73 derek73 commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Closes #993.

What changes. 77 US healthcare credentials, each written by at least 2,000 NPPES providers and held by no list, now read as the suffix in every shape where only C6's capitals shape read them before (a comma in a mixed-case name):

"Jane Doe MSW"        →  family="Doe", suffix="MSW"      (was middle "Doe", family "MSW")
"JANE DOE, MSW"       →  given="JANE", suffix="MSW"      (was given "MSW", family "JANE DOE")
"john smith, mbbs"    →  suffix="mbbs"                   (was given "mbbs")
"Doe, Jane MSW"       →  suffix="MSW"                    (was middle "MSW")
"Jane Doe MSW, PhD"   →  suffix="MSW, PhD"               (was family "MSW")

1.4.0 and 2.8.1 read these as master does (the wheels, run 2026-11-03).

Per word (decisions/suffix-acronym-collisions, 2026-11-03 #993):

  • 74 listed plain. amft has 5 Wikidata family bearers and no US Census bearer; the count is recorded in its note.
  • pac (Census 535) and lat (Census 395) are marked ambiguous, being over Mark 33 credential readings ambiguous where a surname reading is substantial #796's threshold of 200.
  • mot (Census 109) is marked ambiguous although the small-count weighing would list it plain. Listed plain, it read a Title-case surname as the credential (Jane Doe Mot → suffix). Marked, it costs only a name written in one case with a word to spare. Whether the same argument should reach amft, cap and aas is recorded as not decided.
  • cota is refused with an excluded entry: Census 11,554, and Brazilian and Mexican besides. Marked ambiguous, it took the surname from 49 tse-donors names written in capitals with no comma (ADÃO FERREIRA COTA → suffix 'COTA'). Nothing measured gained from it.
  • msed carries the mask MSEd. msn, msd and mspt carry none, because they are written in capitals far more often than as MsN, MsD and MsPT.
  • pharmacist, the issue's 79th word, stays held out as an occupation.

Measured (snapshot.py --local <source> --base against master 9547530):

Corpus Moved What moved
ctgov-officials 4,720 263 move a listed word from a name field into the suffix (mbbs 189, msd 19, mpt 18, msn 15, mspt 11); 7 move one glued to another credential; 3,660 move only the reported ambiguities; 790 move only the case views
fec-individuals 137 57 name-field moves: credentials or LLP out of a name field, and 19 committee names' PAC
tse-donors 7 THIAGO OLIVEIRA PAC and DIVA DA MOT lose the surname (the accepted cost of the ambiguous class); two C.DE names move; three two-word PAC names add a report
dof-signatures 0

The committed corpora move one name: rules/S8's example, which swaps Bsn (now listed) for the unlisted Ccrn, which reads as Bsn did.

Accepted cost: a dotted initial with a glued particle folds to a listed acronym, so LUIZ ANTONIO C.DE OLIVEIRA reads C.DE as cde. It occurs in 2 records across every local corpus.

Lesson recorded (nameparser/vocab/AGENTS.md, Step 2): screen a credential candidate in every comma shape and in one case, not only John Smith, X. For a word that is also a surname, read the all-capitals corpora too, and count a cost by the field that moved.

Checks:

  • The full suite passes (35,465), as do mypy, ruff, and both Sphinx builds with no output.
  • The clock-timed serial benchmarks failed 4 tests once under load and then passed all 42 on two reruns.
  • The design-docs reviewer ran two rounds. Its findings (three wrong figures, an unrecorded departure, and a release-note limit) are fixed, and the second round's two findings on the fix are fixed too.
  • A later review (code, tests, comments) found no critical issue. Its fixes reword the mot note and the counting lesson, record same_as on otrl (→ otr/l) and pac (→ pa-c), expand asw as California's Associate Clinical Social Worker, singularize six notes' "1 official" (two from Should "John Smith, FNP-C" read FNP-C as a credential instead of the given name? #797), and note in the release bullet that a kept surname such as Jane Doe Lat now reports the fork.

🤖 Generated with Claude Code

MSW, MBBS, FNP and the rest of the NPPES credentials written by at
least 2,000 US providers now read as the suffix with no comma, after a
comma in a name written in one case, and ending the given part after a
family comma, where only C6's capitals shape had read them after a
comma in a mixed-case name. pac, lat and mot carry their surname counts
and so are ambiguous; msed carries the mask MSEd. cota is refused:
marked ambiguous, it took the surname from 49 Brazilian names written
in capitals with no comma, against no measured gain.

rules/S8's example of an unlisted credential moves from Bsn to Ccrn,
which reads as Bsn did. decisions/suffix-acronym-collisions records the
batch, the measurements and the screening miss; nameparser/vocab/
AGENTS.md records how to screen the next batch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added bug vocabulary Per-word vocabulary model and language packs labels Nov 3, 2026
@derek73 derek73 self-assigned this Nov 3, 2026
derek73 and others added 2 commits November 3, 2026 01:38
The mot note no longer presents DIVA DA MOT as a cost marking avoids;
the counting lesson no longer says the first tally missed a surname
it never lost. otrl and pac record same_as their joined spellings,
asw expands to California's Associate Clinical Social Worker, and six
notes, #797's two among them, say 1 official in the singular.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@derek73 derek73 added this to the 3.0 milestone Nov 3, 2026
@derek73
derek73 merged commit f08235a into master Nov 3, 2026
13 checks passed
@derek73
derek73 deleted the fix/issue-993-us-credentials branch November 4, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug vocabulary Per-word vocabulary model and language packs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should JOHN SMITH, MBBS and Jane Doe MSW read the credential as a suffix? 79 common US credentials are in no wordlist

1 participant