Mova0.6 pre-release⌕
☰
home / docs / tools / gutenberg — Project Gutenberg books for the corpus

gutenberg — Project Gutenberg books for the corpus

Selects English books from Project Gutenberg's pg_catalog.csv by topic group and downloads their plain texts slowly from the bulk-download mirror.

Build and run

cargo build --release -p gutenberg
target/release/gutenberg select <pg_catalog.csv> <out.jsonl> <group>... [--max-died YEAR] [--skip <dir>]... [--not-pd]
target/release/gutenberg fetch <list.jsonl> <out-root> [--pause SECONDS]

select

fetch

Writes <out-root>/<group>/pg<id>.txt from the PGLAF mirror that Project Gutenberg asks bulk downloads to use. It skips existing files, pauses between requests (default 2 s), logs books without a plain text to missing.txt, and stops after 10 failures in a row.

Limits

The public-domain test is by death years in the catalog only; it does not check translators or editions beyond the listed persons. Data licences: Data and model licences.

This page in Markdown → https://md.mova.elamur.ai/free/en/docs/tools/gutenberg/