Commit Graph
3 Commits
Author SHA1 Message Date
funkpower 470e9a9e38 bibclean: a name in capitals is allcaps_author, not author_list_commas
as_byline fell back to author_list_commas whenever no other fault was found,
so "STEVEN BOX" was reported as a list joined with commas. A heading with
letters and no lowercase is now allcaps_author (weight 2); the repair is the
same byline.
2026-11-24 12:00:02 -05:00
funkpower f46f4fbc95 vocabmerge: keep the best-written author heading, not the commonest
An author group is one person under several spellings, and in a
catalogue built from downloads the commonest spelling is often the
worst: "G.W.F. Hegel" on five books against "G. W. F. Hegel" on three,
"Saint Thomas (aquinas)", "S.J. Frederick Copleston", "Fyodor.
Dostoyevsky". Keeping it spreads it over every book in the group.

Author headings are now ranked by form first and by count only after:
a heading turned round (unless a suffix follows the comma), with a
bracket, a dangling separator, a suffix in front, or in capitals loses
to one without, however few books carry it; then stray full stops and
run-together initials. Respellings that are all well formed still go to
the commonest, so "Dostoëvsky" still merges into "Dostoevsky".
Publishers and subjects are ranked as before.
2026-11-24 08:50:11 -05:00
funkpower 894a64add2 bibclean: put a catalogue heading in the author field as a byline
heading::as_byline reads "Lossky, Vladimir, 1903-1958", "Vico,
Giambattista (Author)", "Kohut, Heinz.,Ornstein, Paul H." and "Patrick
Laude, Barry McDonald" as the names they are and prints them given
names first, joined with "&". Dates are years only; a role between two
names separates them; a fuller form is dropped only after an initial;
suffixes (Jr., S.J., père, Md/phd) stay where they are; the same person
twice is kept once. A result that is not plainly people (a firm, a
bracket left over, a word still in capitals, a name repeated as its own
given name) is refused.

clean() names and repairs author_role_suffix and the new
author_list_commas. A field that is only "Surname, Given" is left alone,
because some catalogues keep that order on purpose; as_byline still
turns it round for a caller that wants it.

Initials run together ("RR", "JC") and regnal numbers of any length
("XIII") are no longer cased as words.

Over a 6,022-record catalogue whose author field is a byline: 606
fields changed, read by hand; the wrong ones found on the way are now
tests.
2026-11-24 08:21:06 -05:00