Skip to content

Commit 3dcf367

Browse files
derek73claude
andauthored
Score joined initials the parse cuts at a full stop as agreeing (#1470) (#1474)
Since 3.1 (#1296, rules/T7) the parser reads a given-names box holding `B.A.S.D.` as given `B.`, middle `A.S.D.`. local_agreement.read joins the two with a space to compare them with the one box, and the fold could not tell that space from one the filer typed, so the record scored a miss with the box's letters in the box's field. agrees() calls a box and a reading agreeing where they fold alike, or where one writes as one word what the other cuts after one or more of its initials (`B.A.S.D.` and `B.` `A.S.D.`, `V.G.Ravi` and `V.` `G.Ravi`). A cut after a word that is not initials (`Md.Karim`), a run without full stops, a word left over and other letters stay misses. read() uses it for every box and for the suffix comparison, and config_diff.py score reads through read(). Measured with the same parser, old scorer against new: 1,140 orcid-researchers and 35 patentsview-inventors records move from disagreeing to agreeing, all in the given+middle field; no record moves the other way and no other corpus moves. A guard test holds the invariant over a grid both ways, with a recorded negative control. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent a6198e5 commit 3dcf367

4 files changed

Lines changed: 166 additions & 6 deletions

File tree

0 commit comments

Comments
 (0)