04 · Taxonomies Running

Who decides where a book belongs?

Libraries have argued about where books belong for centuries. We let machines join the argument, in several classification systems at once, and kept a record of where they were wrong.

01 · Ingestion

An orchestrator for whole collections. Beta

A Go orchestrator, now in beta, ingests books and collections in large numbers. It is currently ingesting the Internet Archive collection.

In the cloud

More than 100,000 books

Designed to scale horizontally with no loss of performance, so large collections can be ingested on cloud computing.

On one machine

Fewer than 100 books

The same program runs on a local machine with a mid-range graphics card (about 6 GB of video memory), with the same quality, so small collectors can cut costs.

02 · Systems

Systems the library speaks.

The SDK’s canonical schemas support seven systems, including CLC (Chinese) and BBK (Russian), with identifiers ISBN, ISSN, ISNI and ORCID.

SystemUsed inSupportedTrainedHow the library assigns it
LCC United States Supported Trained BERT model and a custom LCSH classifier
DDC United States, used worldwide Supported Pending Automated rule set
UDC Belgium, used across Europe Supported Pending Automated rule set
CLC China Supported Pending Automated rule set
BBK Russia and former Soviet countries Supported Pending Automated rule set
TLC Thailand Supported Pending Automated rule set
CC India, Ranganathan Supported Pending Automated rule set
03 · Technology

The technology, and why.

Machines classify only when the source can’t be fully trusted.

Trusted sources

When a book arrives with a class from a source we trust, such as a state library, no machine needs to read it. Conversion rules, maintained by hand, place it in the matching class of all seven systems, with no model, OCR or translation.

O.C.R.

Docling, started by IBM Research Zurich, works out the layout of each page. Tesseract, first developed at Hewlett-Packard and later by Google, recognises the text. PaddleOCR, from Baidu’s PaddlePaddle project, extracts tables accurately. A language model then describes every figure in words, so pictures are assessed as well as text; we are still choosing which model.

LCC

A BERT model assigns the Library of Congress class. BERT is a language model published by Google in 2018; ours reads a book’s title, subjects and pages and names the class it belongs to.

LCSH

Library of Congress Subject Headings give a book several subjects from a vocabulary shared by libraries everywhere. We assign them with Annif, an open-source indexing tool from the National Library of Finland, trained on Open Library titles. A suggestion is kept only above a score of 0.75, and publishing rules for each heading are kept in a reviewed database.

D-SAFE

Only when a book’s subject headings all pass the approved list of allowed LCSH headings do we double-check it: a language model reads the whole book and looks for content that violates the D-SAFE specification. It scores each of the 11 exclusions from 1 to 5, with a justification and the pages concerned, so a reviewer sees the reason and the page, not just a verdict.

Figure 1

One book, many taxonomies.

Where the same book sits in each system, from the library’s hand-maintained conversion set.

Title page of The Art of Paper-Making, by Alexander Watt, 1907
The Art of Paper-Making
Alexander Watt · London, Crosby Lockwood and Son · third edition, 1907 · 274 pages

Classes are assigned to the library’s topic “Papermaking”, which holds 36 books, not to this copy alone.

D-SAFE · Would not pass: ecological harm. Half the book teaches paper from rags, esparto and straw. The other half teaches industrial wood pulping and chemical bleaching, which the exclusion “No advocacy for deforestation, pollution or species loss” rules out. A label can split a book the way a shelf can’t.

04 · Questions
  1. 01
    Can one book’s places in several systems be reconciled into a shared, cross-cultural view?

    Answered Yes. Most classification systems are compatible, and the conversion set between them is maintained by hand. When a Chinese book on papermaking arrives with a class from a trusted source, such as a state library, it is placed in the matching class of every other system automatically, with no classifier, OCR or translation.

  2. 02
    How should a reader appeal a classification?

    In progress Every removal in @the_library/public is meant to be public and reversible. A proper way for authors, or their families, to appeal is a work in progress, expected around the end of 2027.

  3. 03
    Do you only classify for D-SAFE?

    Answered No. D-SAFE is the basis on which we study and build the technology. When it is fully operational, a service for state libraries will become available: integrating the Web3 UNIMARC stack so they can persist their public-domain knowledge for the world.