vocabmerge: propose a name and its fuller form as one heading

"G. W. F. Hegel" and "Georg Wilhelm Friedrich Hegel" normalise to different
strings and are not inversions of each other, so they stayed apart. Authors
left standing after the spelling and inversion groups are now matched as
fuller forms: same surname, the first given name equal or its initial, the
other given names of the shorter heading found in order in the longer one.

A heading that fits two longer ones which do not fit each other is
ambiguous and its set is skipped. The kept heading is the one most works are
under (faults as a byline still count against it), not the spaced-initials
preference, which would have moved 52 Russell books to "B. Russell".
Confidence 0.8 for initials, 0.6 for a bare first name.
This commit is contained in:
funkpower committed 2026-11-24 11:50:03 -05:00
1 parent 9f202ba766
commit 6b37dccbc0
2 files changed
+227

No files matched your search

+12
View File
@@ -372,6 +372,18 @@ count against a heading, and spaced initials count for one.
A respelling is trusted further than an inversion: `strict_norm` at 0.95,
`last_first` at 0.9, a publisher family at 0.8, a junk subject at 0.92.
Authors left standing after that are matched once more, as fuller forms of
one another (`fuller_form`): "G. W. F. Hegel" and "Georg Wilhelm Friedrich
Hegel", "Murray Rothbard" and "Murray N. Rothbard". The surname and the first
given name must agree, written out or as an initial, and every other given
name of the shorter heading must appear in the longer one in order. A heading
that fits two longer ones which do not fit each other — "David Smith" beside
"David Livingstone Smith" and "David Woodruff Smith" — could be either person,
and the set is left alone. The heading kept is the one most works are under,
so fifty books by "Bertrand Russell" do not move to "B. Russell". Two people
can share a first name and a surname, so these are for a person to check:
0.8 when the shorter heading is two or more initials, 0.6 when it is a name.
## Abstracts that arrived inside out
Some catalogues publish an abstract as an inverted index — each word mapped to