mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 03:07:13 +00:00
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:
@@ -28,6 +28,7 @@ from ._catena import (
|
||||
segment_cues,
|
||||
series_of,
|
||||
split_collection,
|
||||
suggest_author,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
@@ -48,4 +49,5 @@ __all__ = [
|
||||
"segment_cues",
|
||||
"series_of",
|
||||
"split_collection",
|
||||
"suggest_author",
|
||||
]
|
||||
|
||||
@@ -39,6 +39,9 @@ def fuse_hits(
|
||||
def identify(name: str, data: bytes) -> dict[str, Any]: ...
|
||||
def find_citations(text: str) -> list[dict[str, Any]]: ...
|
||||
def looks_like_footnote_citations(text: str) -> bool: ...
|
||||
def suggest_author(
|
||||
title: str, front_matter: str | None = ...
|
||||
) -> dict[str, Any] | None: ...
|
||||
def citation_prompt(references: Iterable[Mapping[str, Any]]) -> str | None: ...
|
||||
def merge_citation_reply(
|
||||
references: Iterable[Mapping[str, Any]], reply: str
|
||||
|
||||
Reference in New Issue
Block a user