"""Source registry for Polish DynaWord. Each entry = one openly-licensed, *traceable* human-text source (paper 2508.02271, principle: open+traceable licensing). The `traceable` field documents WHY the license holds (not just "it's public domain") — e.g. statutory basis or upstream license — as required by the Dynaword guidelines. Provenance note: data is pulled from SpeakLeash's public redistribution (iDrive e2 bucket) of these upstream sources; SpeakLeash is credited as the intermediate aggregator, upstream license/attribution is preserved per source. """ # clean-6: passed the copyright review (2026-06-15). open_subtitles excluded # (derivative of copyrighted film dialogue — same lesson as Danish Gigaword). # Large cultural/academic sources require per-record rights metadata and should # be rebuilt from direct upstream/export scripts rather than blind SpeakLeash pulls. SOURCES = { "wikipedia": { "speakleash_key": "plwiki", "pretty": "Polish Wikipedia", "license": "CC-BY-SA-3.0", "license_spdx": "CC-BY-SA-3.0", "traceable": "Wikimedia dumps explicitly released under CC-BY-SA 3.0; " "attribution to contributors + share-alike preserved.", "upstream": "https://dumps.wikimedia.org/plwiki/latest/", "domain": "encyclopedic", "created": "2001-01-15, 2026-06-14", "is_ocr": False, }, "wikisource": { "speakleash_key": "plwikisource", "pretty": "Polish Wikisource", "license": "CC-BY-SA-3.0", "license_spdx": "CC-BY-SA-3.0", "traceable": "Wikimedia dumps under CC-BY-SA 3.0; underlying texts are " "public-domain works transcribed by the community.", "upstream": "https://dumps.wikimedia.org/plwikisource/latest/", "domain": "books/source-texts", "created": "2005-01-01, 2026-06-14", "is_ocr": False, }, "eurlex": { "speakleash_key": "eurlex_corpus", "pretty": "EUR-Lex (EU legal acts, Polish)", "license": "CC-BY-4.0", "license_spdx": "CC-BY-4.0", "traceable": "EU documents reusable under Commission Decision 2011/833/EU; " "normative acts fall outside copyright (PL art. 4 pr. aut.). " "Reuse authorised with source acknowledgement.", "upstream": "https://eur-lex.europa.eu", "domain": "legal", "created": "1952-01-01, 2024-12-31", "is_ocr": False, }, "parliamentary": { "speakleash_key": "PPC_corpus", "pretty": "Polish Parliamentary Corpus (Sejm/Senat)", "license": "public-domain (official documents)", "license_spdx": "CC-BY-4.0", "traceable": "Parliamentary proceedings are official documents outside " "copyright (PL art. 4 pr. aut.); PPC redistributed by IPI PAN " "under CC-BY-4.0.", "upstream": "http://clip.ipipan.waw.pl/PPC", "domain": "political/spoken", "created": "1991-01-01, 2019-12-31", "is_ocr": False, }, "parlamint_pl": { "file_key": "parlamint_pl", "pretty": "ParlaMint-PL (parliamentary debates, 2015-2022)", "license": "CC-BY-4.0", "license_spdx": "CC-BY-4.0", "traceable": "ParlaMint 3.0 corpora released under CC-BY 4.0 (CLARIN.SI " "handle 11356/1486); parliamentary proceedings are also " "official documents (PL art. 4 pr. aut.).", "upstream": "http://hdl.handle.net/11356/1486", "provenance": "Fetched directly from the CLARIN.SI plain-text edition " "(ParlaMint-PL.tgz) by src/fetch_parlamint.py; one session " "transcript per document, utterance IDs stripped. Modern " "spoken register, complements the older PPC (1991-2019).", "domain": "political/spoken", "created": "2015-01-01, 2022-12-31", "is_ocr": False, }, "wolne_lektury": { "speakleash_key": "wolne_lektury_corpus", "pretty": "Wolne Lektury (school readings)", "license": "CC-BY-SA-4.0 / Wolna Sztuka 1.3", "license_spdx": "CC-BY-SA-4.0", "traceable": "Wolne Lektury publishes under CC-BY-SA 4.0 or Free Art " "License; texts are public-domain classics + cleared works.", "upstream": "https://wolnelektury.pl/api/books/", "domain": "literature", "created": "1500-01-01, 2024-12-31", "is_ocr": False, }, "wikinews": { "file_key": "plwikinews", # fetched from Wikimedia dumps, NOT via SpeakLeash "pretty": "Polish Wikinews", "license": "CC-BY-2.5", "license_spdx": "CC-BY-2.5", "traceable": "Wikinews content is released under CC-BY 2.5; attribution to " "contributors preserved.", "upstream": "https://pl.wikinews.org/", "provenance": "Fetched directly from the official Wikimedia dump " "(plwikinews-latest-pages-articles) by src/fetch_wikimedia.py; " "mainspace only, wikitext stripped via mwparserfromhell.", "domain": "news", "created": "2005-01-01, 2025-12-31", "is_ocr": False, }, "wikivoyage": { "file_key": "plwikivoyage", "pretty": "Polish Wikivoyage (travel guides)", "license": "CC-BY-SA-3.0", "license_spdx": "CC-BY-SA-3.0", "traceable": "Wikivoyage content is released under CC-BY-SA 3.0; " "attribution + share-alike preserved.", "upstream": "https://pl.wikivoyage.org/", "provenance": "Fetched directly from the official Wikimedia dump " "(plwikivoyage-latest-pages-articles) by src/fetch_wikimedia.py; " "mainspace only, wikitext stripped via mwparserfromhell.", "domain": "travel", "created": "2012-01-01, 2025-12-31", "is_ocr": False, }, "wikibooks": { "file_key": "plwikibooks", "pretty": "Polish Wikibooks (open textbooks)", "license": "CC-BY-SA-3.0", "license_spdx": "CC-BY-SA-3.0", "traceable": "Wikibooks content is released under CC-BY-SA 3.0; " "attribution + share-alike preserved.", "upstream": "https://pl.wikibooks.org/", "provenance": "Fetched directly from the official Wikimedia dump " "(plwikibooks-latest-pages-articles) by src/fetch_wikimedia.py; " "mainspace only, wikitext stripped via mwparserfromhell.", "domain": "instructional", "created": "2004-01-01, 2025-12-31", "is_ocr": False, }, "wikiquote": { "file_key": "plwikiquote", "pretty": "Polish Wikiquote (quotations)", "license": "CC-BY-SA-3.0", "license_spdx": "CC-BY-SA-3.0", "traceable": "Wikiquote content is released under CC-BY-SA 3.0; " "attribution + share-alike preserved.", "upstream": "https://pl.wikiquote.org/", "provenance": "Fetched directly from the official Wikimedia dump " "(plwikiquote-latest-pages-articles) by src/fetch_wikimedia.py; " "mainspace only, wikitext stripped via mwparserfromhell.", "domain": "quotations", "created": "2005-01-01, 2025-12-31", "is_ocr": False, }, "eltec_pol": { "file_key": "eltec_pol", "pretty": "ELTeC-pol (European Literary Text Collection, Polish)", "license": "CC-BY-4.0", "license_spdx": "CC-BY-4.0", "traceable": "ELTeC corpora are released under CC-BY 4.0 by the COST Action " "'Distant Reading for European Literary History' (CA16204).", "upstream": "https://github.com/COST-ELTeC/ELTeC-pol", "provenance": "Fetched directly from the COST-ELTeC/ELTeC-pol GitHub " "repository (level1 TEI) by src/fetch_eltec.py; reading text " "extracted from TEI paragraphs.", "domain": "literature", "created": "1840-01-01, 1920-12-31", "is_ocr": False, }, "dziennik_ustaw": { "file_key": "dziennik_ustaw", # fetched directly, NOT via SpeakLeash "pretty": "Dziennik Ustaw + Monitor Polski (Polish primary legislation)", "license": "public-domain (official documents)", "license_spdx": "CC0-1.0", "traceable": "Normative acts and their official drafts are not subject to " "copyright (PL art. 4 ustawy o prawie autorskim). Published by " "the state; reuse unrestricted.", "upstream": "https://api.sejm.gov.pl/eli/acts", "provenance": "Fetched directly from the Sejm ELI API (text.html per act) " "by src/fetch_eli.py — a native source, not redistributed via " "SpeakLeash. Full provenance: each act's `meta.url` is its ELI " "address, resolvable on api.sejm.gov.pl.", "domain": "legal", "created": "1918-01-01, 2025-12-31", "is_ocr": False, }, "biblioteka_nauki": { "file_key": "biblioteka_nauki_pl_corpus", "pretty": "Biblioteka Nauki", "license": "per-record upstream license", "license_spdx": "MIXED", "traceable": "Documents are accepted only when the direct upstream record " "exposes a reusable license. The parquet carries the " "per-document `license` and `author` fields from the upstream " "metadata collected by the source-specific rebuild script.", "upstream": "https://bibliotekanauki.pl/", "provenance": "Fetched directly from Biblioteka Nauki via the contributor " "rebuild script, not from the SpeakLeash redistribution. " "License and author metadata are checked document by document " "before normalization into the DynaWord schema.", "domain": "academic", "created": "unknown", "is_ocr": False, }, "europeana": { # Direct rebuild output from fetch_europeana.py, never the raw # SpeakLeash Europeana aggregate. "file_key": "europeana", "pretty": "Europeana Polish records", "license": "per-record public-domain/open rights statement", "license_spdx": "MIXED", "traceable": "Documents are accepted only with per-record Europeana rights " "metadata classified as public-domain/open. Public-domain " "status is jurisdiction-sensitive; downstream users must " "check their local legal requirements.", "upstream": "https://www.europeana.eu/", "provenance": "Fetched directly from Europeana via the contributor rebuild " "script, preserving per-record rights and creator metadata. " "The raw SpeakLeash aggregate remains insufficient because " "it does not carry enough rights evidence for release.", "domain": "cultural heritage", "created": "unknown", "is_ocr": True, "legal_note": "Europeana public-domain statements are primarily evaluated " "for Poland/EU. For US reuse, records created/published " "before 1929 are the conservative release slice; later " "records should remain separately labeled or held until " "legal review confirms their US status.", }, "european_hplt_v3_pl": { "file_key": "european_hplt_v3_pl", "pretty": "HPLT v3.0 Polish (web, top WDS bins 10-9)", "license": "CC0-1.0", "license_spdx": "CC0-1.0", "traceable": "HPLT v3.0 Terms of Use license the data packaging under CC0-1.0 " "(hplt-project.org/datasets/v3.0; HF card HPLT/HPLT3.0). HPLT does not " "own the underlying web text; notice-and-takedown applies and downstream " "legal/provenance review remains the user's responsibility.", "upstream": "https://data.hplt-project.org/three/sorted/pol_Latn/", "provenance": "Fetched directly from the HPLT v3 distribution (pol_Latn shards " "10_1 [WDS=10] and 9_1 prefix [WDS=9]) by src/clean_hplt_v3.py, NOT via " "SpeakLeash. Filtered: lang=pol_Latn + prob>=0.80, MT-prob<0.20, register " "in ID/OP/HI/IN/NA, min 400 chars / 80 words, boilerplate/adult/legalish " "drop, length cap 120k chars, CJK-mojibake drop, wikipedia/wikisource/" "wikimedia + file-host domains excluded. Token counts via tiktoken cl100k.", "domain": "web", "created": "2012-01-01, 2024-12-31", "is_ocr": False, "legal_note": "Web-crawl derived: accept_after_web_review. HPLT is globally " "deduplicated upstream and WDS quality-sorted; only top bins used. " "Copyright recurs at all lengths in web crawl, so per-source near/" "containment dedup vs existing sources is left to downstream per " "Dynaword guidelines. Parity with the accepted european-hplt-v1 CC0 basis.", }, } ADDED = "2026-06-15" EXCLUDED = { "open_subtitles_corpus": "Derivative of copyrighted film/TV dialogue; " "OpenSubtitles uploads largely unlicensed. Same copyright lesson as " "Danish Gigaword's OpenSubtitles (paper 2508.02271). Not openly licensed.", "europeana_eu_pl_corpus_raw_speakleash": "Aggregated items with mixed " "per-record rights (PD / CC-BY-NC / rights-reserved). The raw " "SpeakLeash redistribution is excluded; only a direct rebuild preserving " "per-record rights metadata may be included.", "1000_novels_corpus_CLARIN-PL": "CC-BY-4.0 label, but 'novels' likely include " "in-copyright contemporary works; verify titles/years on CLARIN handle " "11321/312 before inclusion.", "project_gutenberg_pl_corpus": "Only 31 PL books (4.3MB) — PG is ~99% English; " "Polish PD literature already covered by wolne_lektury + wikisource (so " "near-redundant after dedup). Dropped to avoid the PD-in-EU per-work check " "(PG claims PD-in-US only) for negligible token gain.", }