Datasets:
wolne_lektury: drop 63 docs that duplicate eltec_pol novels (6,141 -> 6,078 docs)
What and why
Drops the 63 wolne_lektury documents whose text is a novel (or one tome of a novel) that eltec_pol also carries. This implements option A from slayerlabs/polish-dynaword-v2#72, chosen by the maintainer on 2026-10-06: drop from Wolne Lektury and keep eltec_pol whole, since ELTeC is uniformly CC BY 4.0. The method is the one used for the #45 measurement.
| before (v0.2.5) | after | change | |
|---|---|---|---|
| documents | 6,141 | 6,078 | −63 |
| chars | 261,892,000 | 230,764,171 | −31,127,829 |
| tokens | 103,009,797 | 90,654,820 | −12,354,977 |
eltec_pol is not changed: its Parquet SHA-256 is still ba400617…, and a test checks this.
Rule
src/clean_wolne_lektury.py (new; tested by src/test_wolne_lektury_contract.py). The shingling and scoring code is in src/shingle_containment.py (new; tested by src/test_shingle_containment.py), because the 1000_novels dedup (v2#45) imports it too. For each WL document:
- score = |S(wl) ∩ S(novel)| / |S(wl)|, where
novelis the ELTeC novel sharing the most shingles with the document. - S() is the set of unique 5-word shingles over NFKC-casefolded
\w+tokens. Words are hashed with blake2b, so the result is reproducible across processes. - A trailing WL footer is cut before scoring. No v0.2.5 row has one, and the released text is unchanged.
- The score is containment measured from the WL side, not Jaccard, because WL splits long novels into tomes (Chłopi into 4; Faraon, Nad Niemnem and Stara baśń into 3).
Thresholds:
- drop if score ≥ 0.9: 63 documents, covering 50 ELTeC novels.
- keep_partial if 0.3 ≤ score < 0.9: 3 documents. These are kept and listed.
Both input Parquets are pinned by SHA-256. The script fails closed on a mismatch and writes through .tmp files and os.replace. Every pair is in data/wolne_lektury/wolne_lektury.eltec_pairs.tsv (wl_id, eltec_id, score, action, wl_title).
Threshold and gap
Score distribution over all 6,141 v0.2.5 documents:
| score | docs |
|---|---|
| [0, 0.01) | 5,928 |
| [0.01, 0.02) | 103 |
| [0.02, 0.05) | 33 |
| [0.05, 0.1) | 5 |
| [0.1, 0.2) | 4 |
| [0.2, 0.3) | 2 |
| [0.3, 0.4) | 0 |
| [0.4, 0.5) | 1 |
| [0.5, 0.6) | 0 |
| [0.6, 0.7) | 1 |
| [0.7, 0.8) | 1 |
| [0.8, 0.95) | 0 |
| [0.95, 0.99) | 3 |
| [0.99, 1] | 60 |
- DROP_AT = 0.9. No document scores between 0.7588 and 0.9636.
- REPORT_AT = 0.3. No document scores between 0.2203 and 0.4267.
- All 63 drops pair with an ELTeC novel by the same author and title, checked against
artifacts/rights_audit_2026-10/literary/eltec_meta.tsv. Żuławski's two WL documents are headed with the trilogy's title, "Trylogia księżycowa".
Hand-check
All 3 documents between 0.3 and 0.9 were checked. They are partial overlaps, kept and listed:
| WL id | ELTeC id | ELTeC file | WL title | score |
|---|---|---|---|---|
| wolne_lektury_2376242 | eltec_pol_2455275 | POL0045_lozinski-wladyslaw_oko-proroka | Jan Kochanowski / Pieśni, Księgi wtóre | 0.4267 |
| wolne_lektury_2375475 | eltec_pol_2455281 | POL0051_mniszek_tredowata | Tom pierwszy / I | 0.7588 |
| wolne_lektury_2375476 | eltec_pol_2455281 | POL0051_mniszek_tredowata | Helena Mniszek / Trędowata | 0.6473 |
- Trędowata, tomes I and II, against POL0051. The ELTeC text is shorter: about 120,800 words against about 162,000 in WL's two tomes. 95.3% of ELTeC's shingles appear in the WL tomes. The WL text missing from ELTeC comes in runs of up to 5,418 words, so ELTeC is an abridged edition. Both tomes are kept, so the shared part stays duplicated across the two sources. The
wl_titleof tome I reads "Tom pierwszy / I" because that document starts without the author line. - Kochanowski, Pieśń IX (Pieśni, księgi wtóre), against POL0045. Łoziński's Oko proroka quotes the poem. Kept.
All 3 drops between 0.9 and 0.99 were checked:
- Murdelio, 0.9636. The unmatched shingles form short scattered runs of at most 17 words.
- Tragikomedya prawdy, 0.9899. Runs of at most 11 words.
- Dzieje grzechu, 0.9879. The WL copy ends with a "Dodatek" of draft chapters, about 1,800 words that ELTeC lacks. It is dropped with the novel, so that appendix leaves the release.
10 drops at ≥ 0.99, sampled with seed 72, were checked:
- Documents: wolne_lektury_2371806, 2376763, 2375558, 2376691, 2372130, 2373439, 2376177, 2375201, 2375559, 2373440.
- All show only short scattered unmatched runs of at most 27 words: title heads and spelling variants.
Below 0.3 (not listed, not dropped): 6 documents score 0.10–0.22. All are poems of at most 2,321 tokens, by Mickiewicz, Kochanowski and Miciński.
Dropped (63)
| WL id | ELTeC id | ELTeC file | WL title | score |
|---|---|---|---|---|
| wolne_lektury_2372617 | eltec_pol_2455238 | POL0008_berent_ozimina | Wacław Berent / Ozimina | 0.9995 |
| wolne_lektury_2372618 | eltec_pol_2455239 | POL0009_berent_prochno | Wacław Berent / Próchno | 0.9997 |
| wolne_lektury_2373135 | eltec_pol_2455240 | POL0010_deotyma_branki-w-jasyrze | Deotyma / Branki w jasyrze | 0.9921 |
| wolne_lektury_2373136 | eltec_pol_2455241 | POL0011_deotyma_panienka-z-okienka | Deotyma / Panienka z okienka | 0.9986 |
| wolne_lektury_2372152 | eltec_pol_2455242 | POL0012_deotyma_zwierciadlana-zagadka | Deotyma / Zwierciadlana zagadka | 0.9998 |
| wolne_lektury_2374432 | eltec_pol_2455246 | POL0016_dolega-mostowicz_kariera-nikodema-dyzmy | Tadeusz Dołęga-Mostowicz / Kariera Nikodema Dyzmy | 0.9981 |
| wolne_lektury_2373182 | eltec_pol_2455247 | POL0017_dolega-mostowicz_pamietnik-pani-hanki | Pamiętnik pani Hanki / Tadeusz Dołęga-Mostowicz | 0.9999 |
| wolne_lektury_2372109 | eltec_pol_2455248 | POL0018_dolega-mostowicz_znachor | Tadeusz Dołęga-Mostowicz / Znachor | 0.9984 |
| wolne_lektury_2374147 | eltec_pol_2455249 | POL0019_domanska_historia-zoltej-cizemki | Antonina Domańska / Historia żółtej ciżemki | 0.9985 |
| wolne_lektury_2374899 | eltec_pol_2455250 | POL0020_domanska_krysia-bezimienna | Antonina Domańska / Krysia bezimienna | 0.9985 |
| wolne_lektury_2376177 | eltec_pol_2455251 | POL0021_domanska_paziowie-krola-zygmunta | Antonina Domańska / Paziowie | 0.9981 |
| wolne_lektury_2373959 | eltec_pol_2455258 | POL0028_grabinski_namietnosc | Stefan Grabiński / Namiętność | 0.9955 |
| wolne_lektury_2376971 | eltec_pol_2455259 | POL0029_grabinski_salamandra | Stefan Grabiński / Salamandra | 0.9977 |
| wolne_lektury_2373979 | eltec_pol_2455260 | POL0030_grabinski_wyspa-itongo | Stefan Grabiński / Wyspa Itongo | 0.9981 |
| wolne_lektury_2374400 | eltec_pol_2455262 | POL0032_kaczkowski_murdelio | Zygmunt Kaczkowski / Murdelio | 0.9636 |
| wolne_lektury_2374184 | eltec_pol_2455267 | POL0037_kraszewski_hrabina-cosel | Józef Ignacy Kraszewski / Hrabina Cosel | 0.9984 |
| wolne_lektury_2376438 | eltec_pol_2455268 | POL0038_kraszewski_pogrobek | Józef Ignacy Kraszewski / Pogrobek | 0.9980 |
| wolne_lektury_2377370 | eltec_pol_2455269 | POL0039_kraszewski_stara-basn | Józef Ignacy Kraszewski / Stara baśń | 0.9984 |
| wolne_lektury_2377371 | eltec_pol_2455269 | POL0039_kraszewski_stara-basn | Józef Ignacy Kraszewski / Stara baśń | 0.9983 |
| wolne_lektury_2377372 | eltec_pol_2455269 | POL0039_kraszewski_stara-basn | Józef Ignacy Kraszewski / Stara baśń | 0.9983 |
| wolne_lektury_2375201 | eltec_pol_2455275 | POL0045_lozinski-wladyslaw_oko-proroka | Władysław Łoziński / Oko proroka | 0.9974 |
| wolne_lektury_2375490 | eltec_pol_2455283 | POL0053_morawska_na-zgliszczach-zakonu | Zuzanna Morawska / Na zgliszczach Zakonu | 0.9966 |
| wolne_lektury_2375491 | eltec_pol_2455284 | POL0054_morawska_wilcze-gniazdo | Zuzanna Morawska / Wilcze gniazdo | 0.9966 |
| wolne_lektury_2375933 | eltec_pol_2455285 | POL0055_orzeszkowa_marta | Eliza Orzeszkowa / Marta | 0.9999 |
| wolne_lektury_2375340 | eltec_pol_2455286 | POL0056_orzeszkowa_meir-ezofowicz | Eliza Orzeszkowa / Meir Ezofowicz | 0.9993 |
| wolne_lektury_2375558 | eltec_pol_2455287 | POL0057_orzeszkowa_nad-niemnem | Eliza Orzeszkowa / Nad Niemnem | 0.9994 |
| wolne_lektury_2375559 | eltec_pol_2455287 | POL0057_orzeszkowa_nad-niemnem | Eliza Orzeszkowa / Nad Niemnem | 0.9992 |
| wolne_lektury_2375560 | eltec_pol_2455287 | POL0057_orzeszkowa_nad-niemnem | Eliza Orzeszkowa / Nad Niemnem | 0.9995 |
| wolne_lektury_2373434 | eltec_pol_2455291 | POL0061_prus_emancypantki | Bolesław Prus / Emancypantki | 0.9974 |
| wolne_lektury_2373439 | eltec_pol_2455292 | POL0062_prus_faraon | Bolesław Prus / Faraon | 0.9979 |
| wolne_lektury_2373440 | eltec_pol_2455292 | POL0062_prus_faraon | Bolesław Prus / Faraon | 0.9972 |
| wolne_lektury_2373441 | eltec_pol_2455292 | POL0062_prus_faraon | Bolesław Prus / Faraon | 0.9981 |
| wolne_lektury_2375026 | eltec_pol_2455293 | POL0063_prus_lalka | Bolesław Prus / Lalka | 0.9988 |
| wolne_lektury_2375027 | eltec_pol_2455293 | POL0063_prus_lalka | Bolesław Prus / Lalka | 0.9982 |
| wolne_lektury_2372954 | eltec_pol_2455294 | POL0064_reymont_chlopi | Władysław Stanisław Reymont / Chłopi | 0.9990 |
| wolne_lektury_2372955 | eltec_pol_2455294 | POL0064_reymont_chlopi | Władysław Stanisław Reymont / Chłopi | 0.9989 |
| wolne_lektury_2372956 | eltec_pol_2455294 | POL0064_reymont_chlopi | Władysław Stanisław Reymont / Chłopi | 0.9992 |
| wolne_lektury_2376750 | eltec_pol_2455294 | POL0064_reymont_chlopi | Władysław Stanisław Reymont / Chłopi | 0.9990 |
| wolne_lektury_2374612 | eltec_pol_2455295 | POL0065_reymont_komediantka | Władysław Stanisław Reymont / Komediantka | 0.9992 |
| wolne_lektury_2372093 | eltec_pol_2455296 | POL0066_reymont_ziemia-obiecana | Władysław St. Reymont / Ziemia obiecana, tom II | 0.9985 |
| wolne_lektury_2372094 | eltec_pol_2455296 | POL0066_reymont_ziemia-obiecana | Władysław St. Reymont / Ziemia obiecana, tom I | 0.9990 |
| wolne_lektury_2376762 | eltec_pol_2455297 | POL0067_rodziewiczowna_lato-lesnych-ludzi | Maria Rodziewiczówna / Lato | 0.9977 |
| wolne_lektury_2376763 | eltec_pol_2455298 | POL0068_rodziewiczowna_miedzy-ustami-a-brzegiem-pucharu | Maria Rodziewiczówna / Między ustami a | 0.9985 |
| wolne_lektury_2376764 | eltec_pol_2455299 | POL0069_rodziewiczowna_straszny-dziadunio | Maria Rodziewiczówna / Straszny dziadunio | 0.9984 |
| wolne_lektury_2375871 | eltec_pol_2455300 | POL0070_sienkiewicz_ogniem-i-mieczem | Henryk Sienkiewicz / Ogniem i mieczem | 0.9983 |
| wolne_lektury_2375872 | eltec_pol_2455300 | POL0070_sienkiewicz_ogniem-i-mieczem | Henryk Sienkiewicz / Ogniem i mieczem | 0.9981 |
| wolne_lektury_2376691 | eltec_pol_2455301 | POL0071_sienkiewicz_quo-vadis | Henryk Sienkiewicz / Quo vadis | 0.9970 |
| wolne_lektury_2376766 | eltec_pol_2455302 | POL0072_sienkiewicz_rodzina-polanieckich | Henryk Sienkiewicz / Rodzina Połanieckich | 0.9983 |
| wolne_lektury_2377398 | eltec_pol_2455303 | POL0073_strug_dzieje-jednego-pocisku | Andrzej Strug / Dzieje jednego pocisku | 0.9998 |
| wolne_lektury_2377720 | eltec_pol_2455307 | POL0077_swietochowski_tragokomedya-prawdy | Aleksander Świętochowski / Tragikomedya prawdy | 0.9899 |
| wolne_lektury_2371802 | eltec_pol_2455316 | POL0086_witkacy_nienasycenie | Stanisław Ignacy Witkiewicz / Nienasycenie | 0.9991 |
| wolne_lektury_2371803 | eltec_pol_2455316 | POL0086_witkacy_nienasycenie | Stanisław Ignacy Witkiewicz / Nienasycenie | 0.9988 |
| wolne_lektury_2371806 | eltec_pol_2455317 | POL0087_witkacy_pozegnanie-jesieni | Stanisław Ignacy Witkiewicz / Pożegnanie jesieni | 0.9993 |
| wolne_lektury_2372038 | eltec_pol_2455318 | POL0088_zapolska_kaska-kariatyda | Gabriela Zapolska / Kaśka Kariatyda | 0.9999 |
| wolne_lektury_2372039 | eltec_pol_2455319 | POL0089_zapolska_kobieta-bez-skazy | Gabiela Zapolska / Kobieta bez skazy | 0.9966 |
| wolne_lektury_2377058 | eltec_pol_2455320 | POL0090_zapolska_sezonowa-milosc | Gabriela Zapolska / Sezonowa miłość | 0.9981 |
| wolne_lektury_2373356 | eltec_pol_2455321 | POL0091_zeromski_dzieje-grzechu | Stefan Żeromski / Dzieje grzechu | 0.9879 |
| wolne_lektury_2376559 | eltec_pol_2455322 | POL0092_zeromski_przedwiosnie | Stefan Żeromski / Przedwiośnie | 0.9995 |
| wolne_lektury_2377473 | eltec_pol_2455323 | POL0093_zeromski_syzyfowe-prace | Stefan Żeromski / Syzyfowe prace | 0.9985 |
| wolne_lektury_2372105 | eltec_pol_2455326 | POL0096_zmichowska_poganka | Narcyza Żmichowska / Poganka | 0.9989 |
| wolne_lektury_2371605 | eltec_pol_2455327 | POL0097_zulawski_na-srebrnym-globie | Jerzy Żuławski / Trylogia księżycowa | 0.9988 |
| wolne_lektury_2372130 | eltec_pol_2455328 | POL0098_zulawski_powrot | Jerzy Żuławski / Powrót | 0.9986 |
| wolne_lektury_2371607 | eltec_pol_2455329 | POL0099_zulawski_zwyciezca | Jerzy Żuławski / Trylogia księżycowa | 0.9981 |
Provenance and licence
- No new data is fetched. The script only removes rows from the v0.2.5 Parquet.
- The 50 novels stay in
eltec_polunder CC BY 4.0: the 2026-10 rights audit (artifacts/rights_audit_2026-10/reports/literary.md) marks eltec_pol CLEAN, and found a CC BY 4.0 licence element in every TEI header. - WL licence labels are not changed: all 6,078 kept rows still read
CC-BY-SA-4.0 / Wolna Sztuka 1.3. #57 will relabel WL per row. - The
wolne_lekturyentry insrc/sources.pygains alegal_notethat describes the drop. It renders as "Legal scope note" in the datasheet.releaseis unchanged. wolne_lektury.stats.jsongainsdrop_eltec_dup: 63and both input SHA-256s.- A findings entry is appended at the end of
artifacts/source_findings.md. - Commit 0783e5e only moves the code into the shared module: rebuilding from the v0.2.5 Parquet and stats gives byte-identical
wolne_lektury.parquet,stats.jsonandeltec_pairs.tsv.
Tests
- Before, at 409b93e: 23 failed, 254 passed, 7 errors.
- After, at 0783e5e (merged with main at 3bab9f9): 23 failed, 267 passed, 7 errors.
- The same 30 test ids fail before and after.
- None is a wolne_lektury or eltec_pol test. Most read other sources' LFS files, which this worktree has only as pointers.
- The 13 extra passes are:
- the 4 new
test_wolne_lektury_contract.pyand 4 newtest_shingle_containment.pytests; - 3
global_voicestests merged from main (#66); - 2
1000_novelstests merged from main (PR 65).
- the 4 new
Sample
python3 src/render_sample.py data/wolne_lektury/wolne_lektury.parquet -n 3
id: wolne_lektury_2375065
source: wolne_lektury
added: 2026-06-15
created: 1500-01-01, 2024-12-31
token_count: 2825
license: CC-BY-SA-4.0 / Wolna Sztuka 1.3
author:
Legenda o św. Aleksym
Vita sancti Allexii rikmice
ISBN 978-83-288-5867-1
Ach, krolu wieliki nasz,
Coż ci dzieją Męszyjasz,
Przydaj rozumu k mej rzeczy,
Me sierce bostwem obleczy,
Raczy mię mych grzechów pozbawić,
Bych mogł o twych świętych prawić.
Żywot jednego świętego,
Coż miłował Boga swego,
Cztę w jednych księgach o nim.
Kto chce słuchać, ja powiem.
W Rzymie jedno panię było,
Coż Bogu rado służyło.
A miał barzo wielki dwor,
Procz panosz trzysta rycerzow,
Co są mu zawżdy służyli,
Zawżdy k jego stołu byli.
Chował je na wielebności i na krasie
I miał kożdy swe złote pasy.
Chował siroty i wdowy,
Dał jim osobne trzy stoły,
Za czwartym pielgrzymi jedli,
Ci ji do Boga przywiedli.
Eufamijan jemu dziano
Wielkiemu temu panu,
A żenie dziano Aglijas;
Ta była ubostwu w czas.
Był […]
id: wolne_lektury_2371920
source: wolne_lektury
added: 2026-06-15
created: 1500-01-01, 2024-12-31
token_count: 219
license: CC-BY-SA-4.0 / Wolna Sztuka 1.3
author:
Agnieszka Wolny-Hamkało
Nikon i Leica
norwesko-polskie spotkania w ogrodach BUW-u
Kobietą leżącą w fontannie
była Rita Marhaug —
norweska artystka z Bergen,
która nie bała się deszczowej pogody.
W spotkaniach wziął udział
także Jan Mioduszewski: człowiek-drzewo,
artysta otrzaskany w kabale.
Tym razem działał przy pomocy szminki
i symbolicznej symbiozy mocznika
z klejami przemysłowymi. Od początku
był wielki. Jako dziecko bawił się na uboczu
i podobnie jak Francis Bacon — nigdy nie mógł zrozumieć,
dlaczego jego obrazy nie zostały uznane za piękne.
id: wolne_lektury_2373731
source: wolne_lektury
added: 2026-06-15
created: 1500-01-01, 2024-12-31
token_count: 261
license: CC-BY-SA-4.0 / Wolna Sztuka 1.3
author:
Jan Kochanowski
Fraszki, Księgi wtóre
Do dziewki
Daj, czegoć nie ubędzie, byś nawięcej dała;
Daj, czego próżno dawać potym będziesz chciała,
Kiedyć zmarski twarz zorzą, a gładkie zwierciadło
Okaże to na oko, że cię siła spadło.
Już tam służyć nie będą te pieszczone słowa:
„Stachniczku, duszo moja!” — rychlej: „Bądź mi zdrowa,
Maryja, łaski pełna!” — a w ręku pacierze,
Na jakie przy kościele baba pieniądz bierze.
Teraz możesz leliją piękny włos otoczyć,
Teraz możesz zaśpiewać, możesz w tańcu skoczyć;
Po chwili przydzie druga, którą przejdziesz laty,
I rzeczeć: „Weźm ty kądziel; przystojniej mnie z swaty.”
🤖 Generated with Claude Code
refs/pr/67 ref