bindings: the author a record's own text can offer

book-pipeline had its own copy of bibclean's author recovery. Bound on all
four surfaces so it can stop.

Checked against that Python over all 5,385 books in the library: 5,375
identical. On the other ten the Python had taken a translator, an illustrator
or the publisher off a copyright line — Sally-Ann Spencer for *The Dwarves*,
Thomas Nelson for a table of contents, C. S. Lewis for a book about Tolkien —
and bibclean either finds the real author in the Library of Congress block or
says nothing. Every one of the ten was read by hand.
This commit is contained in:
funkpower
2026-09-20 15:10:35 -04:00
parent 2dfa370cd7
commit 7a08ed953d
11 changed files with 109 additions and 2 deletions
+5
View File
@@ -98,6 +98,11 @@ char *catena_series_of(const char *title, const char *author);
* one — an answer, not an error. */
char *catena_parse_identifier(const char *text);
/* The best author a record's own title and front matter can offer. Returns a
* JSON suggestion, or NULL when neither names a person — an answer, not an
* error. `front_matter` may be NULL. */
char *catena_suggest_author(const char *title, const char *front_matter);
/* Whether a chunk of body text carries footnote or endnote citations.
* Returns 1 for yes, 0 for no, -1 on error. */
int catena_looks_like_footnote_citations(const char *text);