wolne_lektury: check credits against the National Library's catalogue, drop 2 not-free translations, fix 3 translators (v2#109)

#190
by ppuzio - opened
8 hidden commits · view all commits
Fabryka AI org

Follow-up to 188. Wolne Lektury's (WL) authors, translators and public-domain dates were compared with the National Library's catalogue (BN, data.bn.org.pl, read only). Two rows that WL marks public domain are dropped because their translation is not free: 6,076 → 6,074 documents, 234,671,405 → 233,812,331 characters (−859,074), 92,151,055 → 91,823,395 tokens (−327,660). Every other row's text is byte-identical to main; 24 rows change only in author.

Dropped (NOT_FREE in src/wolne_lektury_licences.py, stats drop_not_free)

  • wolne_lektury_2375754, Nietzsche, "Wola mocy": a joint translation by Konrad Drzewiecki (d. 1922) and Stefan Frycz (d. 1960), BN record 1826277 (Mortkowicz, 1911). WL counts Drzewiecki alone; a joint work is protected to the end of 2030.
  • wolne_lektury_2371705, Wells, "Wehikuł czasu": transcribed from the Ossolineum print of 1985, whose translation Juliusz K. Palczewski (b. 1932) verified and edited, BN record 1216473. WL credits Feliks Wermiński (d. 1917) only. This row had 1 restored author's note, so 459 rows carry notes, not 460.

Corrected, kept

  • Translators (TRANSLATOR_FIXES in src/build_wolne_lektury_attribution.py; the build fails if WL's header stops giving the value it corrects): "Leon Urlich" → "Leon Ulrich" (wolne_lektury_2374887), Józef Nusbaum added next to Szymon Dickstein (wolne_lektury_2373112), Aniela Zagórska added where WL's header names none (wolne_lektury_2372990). In author and the sidecar, each with a metadata_note.
  • Print edition (SOURCE_EDITION_NOTES): WL gives Hebbel's "Judyta" (BN 1454550) as the print edition of Hebbel's diaries (wolne_lektury_2374125); the sidecar keeps WL's value and adds a metadata_note.
  • natural_order() in src/attribution_common.py now keeps a trailing bracket after the name: 21 rows read "Adam [Zofia Trzeszczkowska] M-ski" and now read "Adam M-ski [Zofia Trzeszczkowska]", like the one row that already did.

Please look at

  • Montaigne, "Próby", kept as WL credits it. BN record 2293540 (PIW 1957) credits the Latin and Greek quotations to Tadeusz Sinko (d. 1966) and Edmund Cięglewicz (d. 1928) jointly. In Księga pierwsza (wolne_lektury_2376515), 336 of the 466 restored translator's notes end "tłum. Edmund Cięglewicz", 4 of them on a Greek quotation, and none names Sinko. Which quotations BN's joint credit covers is not established; the counts are in bn_check.joint_credit_kept.
  • Kept as WL wrote them, since none changes whether a row is free: 25 rows whose rights line gives a death year that BN gives otherwise, and 6 rows whose date.pd is earlier than a later-dying co-creator allows (bn_check.kept_as_wolne_lektury_wrote).
  • Open: 74 cannot-tell row-flags on 69 kept rows are left as WL gives them; they are listed in v2#109. Two of them, Anatole France's "W cieniu wiązów" and "Manekin trzcinowy", may be a rights question (see v2#109).
  • Review scope: rows flagged for an author or translator were read in full (197 row-flags), the rest in samples (148 of 699). 7 of the 345 row-flags read are on eltec_pol rows, which the check covered too; nothing changes there.

Files

  • src/wolne_lektury_licences.py (NOT_FREE), src/clean_wolne_lektury.py (the drop and drop_not_free), src/build_wolne_lektury_attribution.py (BN_CHECK, TRANSLATOR_FIXES, SOURCE_EDITION_NOTES, bn_check()), src/attribution_common.py (natural_order), src/wolne_lektury_notes.py, with tests in the matching test_*.py and src/test_attribution_release.py (the evidence equals a fresh bn_check(), no NOT_FREE id is shipped, the corrected translators are in the sidecar).
  • data/wolne_lektury/: parquet, attribution sidecar, licence evidence (bn_check), licences TSV and notes JSONL (the dropped rows removed), stats, card.
  • src/sources.py entry, artifacts/source_findings.md (new "BN check" paragraph, counts updated).

Not in this PR: README.md and CHANGELOG.md row counts and artifacts/training_mix_v0_3.json (v2#80, at the freeze). Copies of BN records are not committed; the evidence keeps each record number and the quoted field.

Checks: full suite from the repo root passes on this commit on main 44bf1dd (2012 passed, 9 skipped, 138 subtests passed). The rebuild ran from main's inputs through clean_wolne_lektury.py and the attribution builder; run twice, the parquet, sidecar and stats came out byte-identical. Line endings are kept: sources.py CRLF, the rest LF.

🤖 Generated with Claude Code

ppuzio changed pull request status to open
ppuzio changed pull request status to merged
ppuzio deleted the refs/pr/190 ref

Sign up or log in to comment