title_punctuation (weight 1): a space before a colon ("Sex Wars :
Sexual Dissent", a catalogue's habit), runs of spaces, a dangling
separator or full stop at the end (kept after an initial or an
abbreviation), and an article filed behind the title ("Jesuits, The")
put back in front. 128 titles in a 6,022-record catalogue.
html_entity (weight 2): "Master & Apprentice", left by a web page
the record was copied from. The named references a catalogue meets and
every numeric one are decoded first, before any rule reads the text; a
bare ampersand is left alone. Nine titles in a 6,022-record catalogue.
seriesof gains the numbered method: "Known Space-038-The Soft Weapon",
"Ice and Fire 2 - A Clash of Kings", "James Bond - 032 - Blast from the
Past" give the series, the number and the title without them. The
number has to stand between separators on both sides, so "The 200-Year
Plot", "The 12-Month Gardener" and "C.350-C.1450" stay titles. It is
looked for before a volume marker, so "Known Space-017-The Ethics of
Madness (Part 1)" is number 17 of Known Space and keeps its "Part 1".
bibclean names and repairs two more: numbered_title, a bare number in
front ("01 - The Three Musketeers", at most 200, so "911 - ..." and a
year stay), and release_tags after the title ("(BD) (v4 0) (lit)",
"(Scan, OCR)", "(no OCR)").
Over a 6,022-record catalogue: 73 numbered titles across Known Space,
Ice and Fire, James Bond, Wild Cards and Time Odyssey; 12 bare numbers;
4 sets of release tags. None wrong.
url_title (weight 4): a title that is an http, file or www address. The
underscore repair no longer runs on an address or a path, where it
turned "stranger_than_fiction.htm" into "stranger than fiction.htm"
and left something that was neither a title nor an address.
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.
name_in_title (weight 2): "Wilfred R Bion-Cogitations-Karnac Books
(1991)" puts the author in front of the title with a hyphen, as shadow
libraries name their downloads. The repair takes the names off the
front and the publisher, year and series off the end, and the names
are proposed as the author (method title_prefix, 0.75). Made only when
the record has no real author, or already names the same people, so a
series such as "Known Space-038-The Soft Weapon" by Larry Niven is left
alone. Compound words ("Socio-technical", "Non-Reductive") and runs of
capitals that are sentences ("Can Physicalism Be ...") are refused.
Over a 6,022-record catalogue: 28 records, each a real author in front
of a real title.
author_is_title (weight 4): the author field is the whole title, or the
whole of the title before its subtitle when that part does not read as
a person. "Isaac Newton: Philosophical Writings" by Isaac Newton is not
caught; "Consciousness Reconsidered" by "Consciousness Reconsidered" is.
A record with this fault also gets an author proposed from its front
matter, as a missing or placeholder author already did.
Over a 6,022-record catalogue: 67 records, 37 distinct, none of them a
real author.
textkit gains mojibake::repair, which reads UTF-8 that was decoded as
Windows-1252 back into what it was. It is certain rather than guessed:
every character has to turn back into a byte and the bytes have to be
valid UTF-8, which real Latin-1 text almost never is.
bibclean names two new faults, mojibake_title/mojibake_author and
placeholder_suffix, and now repairs four it only named before:
- mojibake in the title or author;
- "Microsoft Word - " and the like on the front of a title (junk_title);
- a document extension on the end (filename_title);
- a placeholder author on the end, "Title - Unknown" (placeholder_suffix).
A wrapper is taken off only when what is left is still a title, so
"Microsoft Word - Document2" and "0195152972.pdf" stay flagged.
"Document1", "Document2" and so on now count as placeholder titles.
Run over a 6,022-record catalogue: 120 records repaired by the new rules
(67 suffixes, 28 extensions, 21 prefixes, 4 mojibake), none of them wrong.