File size: 35,148 Bytes
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5ec3e18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1564cb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d3c7b39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5c05a34
ce453c7
 
5c05a34
ce453c7
 
 
 
 
 
 
 
5c05a34
ce453c7
5c05a34
 
ce453c7
5c05a34
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eb5c9fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e519157
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b263479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe44303
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ce453c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
"""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 = {
    "edukacja_medialna_pl": {
        "file_key": "edukacja_medialna_pl",
        "pretty": "Edukacja Medialna - Polish media-literacy lessons",
        "provenance": "Pinned PiotrSty/edukacja-medialna-pl snapshot acquired "
                      "directly from Fundacja Nowoczesna Polska lesson pages "
                      "and source XML.",
        "license": "CC-BY-SA-3.0",
        "license_spdx": "CC-BY-SA-3.0",
        "traceable": "Direct official lesson XML plus the per-lesson license "
                     "line on edukacjamedialna.edu.pl. Each accepted record "
                     "has explicit CC BY-SA 3.0 evidence and credited "
                     "text/scenario authors in the source metadata.",
        "upstream": "https://edukacjamedialna.edu.pl/lekcje/",
        "domain": "educational/media-literacy/instructional",
        "created": "2012-11-09, 2015-01-12",
        "is_ocr": False,
        "custom_datasheet": True,
        "added": "2026-09-06",
        "release": None,
    },
    "uzp_orzeczenia_pl": {
        "added": "2026-09-17",
        "release": None,
        "file_key": "uzp_orzeczenia_pl",
        "pretty": "UZP Orzeczenia - KIO/SO/SA/SN public-procurement rulings",
        "license": "public-domain (official documents)",
        "license_spdx": "LicenseRef-Polish-Official-Documents",
        "traceable": "Every retained ruling links to its /Home/Details landing URL, PDF URL and sha256; organ, document type, signature, issue date, chairman, purchaser and key provisions are kept per record.",
        "upstream": "https://orzeczenia.uzp.gov.pl/",
        "provenance": "Enumerated deterministically via the service's kind-filtered /Home/GetResults pagination matching server-reported totals; per-document /Home/Details metadata and /Home/PdfContent PDFs fetched, extracted with pypdf, normalized, PII patterns redacted, language/quality filtered and within-source deduplicated. Polish Copyright Act art. 4(2): official documents are not subject to copyright; UZP search service republishes KIO/SO/SA/SN rulings in public procurement matters.",
        "domain": "legal/judicial",
        "created": "2009-2026",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    'rock_pollub_pl': {'file_key': 'rock_pollub_pl',
     'pretty': 'ROCK Politechnika Lubelska - Polish academic books',
     'license': 'CC-BY-SA-4.0',
     'license_spdx': 'CC-BY-SA-4.0',
     'traceable': 'Each retained book has CC BY-SA 4.0 evidence in both the item record and '
                  'matched original-PDF bitstream metadata; URLs, checksums, attribution and '
                  'exclusions are preserved.',
     'upstream': 'https://rock.pollub.pl/collections/a42db069-319d-4d51-88d1-490ee7e6bad8',
     'provenance': 'Fetched directly from the official ROCK repository by '
                   'src/fetch_rock_pollub_pl.py; only the fail-closed eight-record subset with '
                   'item- and PDF-level rights evidence is included.',
     'domain': 'academic/technical',
     'created': '2023-2026',
     'is_ocr': False,
     'custom_datasheet': True},
    "plwiki_talk": {
        "added": "2026-09-11",
        "release": None,
        "file_key": "plwiki_talk",
        "pretty": "Polish Wikipedia talk pages (ns 1+5)",
        "license": "CC BY-SA 4.0",
        "license_spdx": "CC-BY-SA-4.0",
        "traceable": "Records come from the pinned official Wikimedia pages-meta-current dump (sha1-verified shards). Per-record page id, title, namespace, last-revision timestamp and canonical URL are preserved; page history carries contributor attribution per Wikimedia Terms of Use section 7.",
        "upstream": "https://pl.wikipedia.org/",
        "provenance": "Rebuilt deterministically from the Wikimedia XML dump. Scope is namespaces 1 and 5 only; mainspace (ns=0) is covered by the existing wikipedia shard and user-talk (ns=3) is excluded by scope decision (not measured). Wikitext stripped with mwparserfromhell, cross-document boilerplate lines removed, normalized, PII patterns redacted (email, labelled phone, IPv4, parsed IPv6 including compressed notation, labelled PESEL/NIP/REGON, 26-digit account candidates), language/quality filtered and within-source deduplicated. Pattern redaction is not complete anonymization.",
        "domain": "conversational/community-moderation",
        "created": "2002-2026",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    "wikipedia": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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,
    },
    "wiktionary_examples": {
        "added": "2026-07-19",
        "release": None,
        "file_key": "wiktionary_examples",
        "pretty": "Polish Wiktionary usage examples",
        "provenance": "Parsed directly from the official Wikimedia dump "
                      "(plwiktionary-latest-pages-articles.xml.bz2); not routed "
                      "through SpeakLeash. Usage-example sections of Polish-language "
                      "entries extracted and grouped one document per headword.",
        "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. "
                     "Derived subset: usage-example sections from Polish-language "
                     "entries only, grouped one document per headword.",
        "upstream": "https://dumps.wikimedia.org/plwiktionary/latest/",
        "domain": "lexicographic",
        "created": "2004-03-22, 2026-08-15",
        "is_ocr": False,
    },
    "eurlex": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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,
    },
    "sejm_api": {
        "added": "2026-08-22",
        "custom_datasheet": True,
        "release": None,
        "file_key": "sejm_api",
        "pretty": "Sejm API parliamentary speeches (2023 onward)",
        "license": "public-domain (official documents)",
        "license_spdx": "LicenseRef-Polish-Official-Documents",
        "traceable": "Official parliamentary materials excluded from copyright "
                     "under Polish Copyright Act art. 4(2); reusable under "
                     "the Polish Open Data Act arts. 2(12), 5, 14 and 17.",
        "upstream": "https://api.sejm.gov.pl/",
        "provenance": "Direct official Sejm API records, preserved with speaker "
                      "attribution and immutable PiotrSty/sejm-speeches-corpus "
                      "v1.0.1 source provenance.",
        "domain": "political/spoken",
        "created": "2023-01-01, 2026-07-03",
        "is_ocr": False,
    },
    "sejm_interpellations": {
        "added": "2026-07-19",
        "release": None,
        "file_key": "sejm_interpellations",
        "pretty": "Sejm interpellations and written questions (10th term)",
        "license": "public-domain (official documents)",
        "license_spdx": "LicenseRef-Polish-Official-Documents",
        "traceable": "Official parliamentary materials excluded from copyright "
                     "under Polish Copyright Act art. 4(2); reusable under "
                     "the Polish Open Data Act arts. 2(12), 5, 14 and 17.",
        "upstream": "https://api.sejm.gov.pl/",
        "provenance": "Fetched from api.sejm.gov.pl HTML body endpoints by "
                      "src/fetch_sejm_interpellations.py (interpellations + "
                      "writtenQuestions, --terms 10). Header chrome stripped into "
                      "meta; attachment-only and keyless replies skipped; "
                      "pre-#38 regex PII scrub only — needs a SlayerLab/NERGAL "
                      "pass before release.",
        "domain": "political/written",
        "created": "2023-11-15, 2026-09-03",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    "parlamint_pl": {
        "added": "2026-07-19",
        "release": None,
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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 <body> paragraphs.",
        "domain": "literature",
        "created": "1840-01-01, 1920-12-31",
        "is_ocr": False,
    },
    "ted_pl": {
        "added": "2026-09-08",
        "release": None,
        "file_key": "ted_pl",
        "pretty": "TED Polish public-procurement notices",
        "license": "TED notice reuse terms",
        "license_spdx": "LicenseRef-TED-Notice-Reuse",
        "traceable": "TED legal notice permits commercial and non-commercial reuse of procurement "
                     "notices unless otherwise noted, implementing Commission Decision 2011/833/EU "
                     "on the reuse of Commission documents (CELEX:32011D0833); official Search API/XML "
                     "provenance and SHA-256 are preserved per record. Metadata is CC0, while notice "
                     "text uses the separate reuse grant.",
        "upstream": "https://ted.europa.eu/",
        "provenance": "Pinned PiotrSty/ted-polish-procurement-notices snapshot; PleIAs/TEDEUTenders "
                      "is used only as a pinned identifier index, while text is rebuilt from official "
                      "TED Search API narrative fields with official XML fallback. Pattern PII "
                      "redaction only - re-run through SlayerLab/NERGAL before release.",
        "domain": "public procurement / institutional / technical",
        "created": "2023-02-15, 2024-05-15",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    "dziennik_ustaw": {
        "added": "2026-07-02",
        "release": "0.2.0",
        "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,
    },
    "govpl": {
        "added": "2026-07-19",
        "release": "0.2.2",
        "file_key": "govpl",  # fetched directly from gov.pl, NOT via SpeakLeash
        "pretty": "gov.pl — Polish government press releases",
        "license": "CC-BY-SA-4.0",
        "license_spdx": "CC-BY-SA-4.0",
        "traceable": "All textual content on gov.pl is published under CC-BY-SA "
                     "4.0 (site footer: \"Treści tekstowe publikowane w serwisie "
                     "… są udostępniane na licencji CC BY-SA 4.0\"). Authored and "
                     "hosted by the Polish government, which holds the right to "
                     "license it — same open family as Polish Wikipedia.",
        "upstream": "https://www.gov.pl/",
        "provenance": "Ministry/agency press releases fetched directly from gov.pl "
                      "(editor-content per article, HTML stripped) by "
                      "src/fetch_govpl.py. Subsites + their non-uniform news-section "
                      "paths are enumerated by src/discover_govpl.py into the "
                      "committed manifest src/govpl_subsites.json (gov.pl has no "
                      "sitemap/API). Each record's meta.url resolves on gov.pl.",
        "domain": "government",
        # actual min/max of article dates in the fetched corpus (90,124 dated).
        "created": "2005-09-26, 2026-07-19",
        "is_ocr": False,
    },
    "samorzad_gov_pl": {
        "added": "2026-08-14",
        "release": "0.2.5",
        "file_key": "samorzad_gov_pl",
        "pretty": "samorzad.gov.pl — Polish public-sector institutions",
        "license": "CC-BY-SA-4.0",
        "license_spdx": "CC-BY-SA-4.0",
        "traceable": "The shared samorzad.gov.pl platform footer publishes textual "
                     "content under CC BY-SA 4.0. Every retained v0.1 source page "
                     "referenced the shared footer script; audiovisual media and "
                     "attachment bytes are not redistributed.",
        "upstream": "https://huggingface.co/datasets/dawidmajewski/samorzad-gov-pl-articles",
        "provenance": "Converted reproducibly from the published v0.1 source dataset "
                      "by src/clean_samorzad_gov_pl.py. The source was collected "
                      "directly from public samorzad.gov.pl pages across 246 local "
                      "public institutions and one central platform tenant. "
                      "Institution display names are frozen "
                      "from each tenant homepage's og:site_name metadata and stored "
                      "as DynaWord author values; discovered, fetched and attribution "
                      "URLs plus license details are preserved in the sidecar.",
        "domain": "local government, education, social services and culture",
        "created": "2020-2026 for 21,892 dated records; 59,530 source records undated",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    "biblioteka_nauki": {
        "added": "2026-06-27",
        "custom_datasheet": True,
        "release": "0.2.4",
        "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": {
        "release": None,
        # 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.",
    },
    "nkjp1m": {
        "added": "2026-06-15",
        "custom_datasheet": True,
        "release": "0.2.3",
        "file_key": "nkjp1m",
        "pretty": "The manually annotated 1-million word subcorpus of the National Corpus of Polish",
        "license": "CC-BY",
        "license_spdx": "CC-BY-4.0",
        "traceable": "The NKJP download page (clip.ipipan.waw.pl) states the manually annotated 1-million-word subcorpus (Podkorpus Milionowy NKJP 1.2) is available under a CC-BY licence; attribution to the NKJP Consortium (IPI PAN) preserved. The page states 'CC-BY' with no version, normalized to CC-BY-4.0 for SPDX. The CC-BY licence covers the corpus text; NKJP's separate tools are GPL and are not included here.",
        "upstream": "https://clip.ipipan.waw.pl/NationalCorpusOfPolish",
        "provenance": "Downloaded the IPI PAN tarball (NKJP-PodkorpusMilionowy-1.2.tar.gz) directly by src/fetch_njkp.py, one row per TEI <div> passage (its <ab> paragraphs joined by newlines, ellipsis markers stripped). The same minimal gates as build_dynaword.py are applied per passage (drop < 200 chars, drop non-Polish by diacritic ratio, exact sha1 dedup; the OCR gate is inapplicable). Per-document 'created' is the sample's TEI publication date (<date type=\"published\">) where the header records one. Normalized into the DynaWord schema; cl100k token counts via tiktoken (encode_ordinary), and the stats are recomputed from the written parquet.",
        "domain": "mixed (balanced reference corpus)",
        "created": "1957-2008 (recorded for 6,581 of 18,381 documents; per-document in the created column)",
        "is_ocr": False,
    },
    "european_hplt_v3_pl": {
        "added": "2026-07-14",
        "release": "0.2.3",
        "file_key": "european_hplt_v3_pl",
        "pretty": "HPLT v3.0 Polish (web, top WDS bins 10-5)",
        "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, 9_1-9_4, 8_1-8_4, 7_1-7_4, 6_1-6_2, 5_1-5_2 [WDS 10 down to 5]) by "
                      "src/clean_hplt_v3.py + run_pipeline.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, per-domain cap. Phone->[Telefon] / email+national-ID->[PII] "
                      "PII (phones/emails/IDs, and PERSON on this web shard) was applied "
                      "at fetch; the scrubber now lives at SlayerLab/NERGAL, not this repo. "
                      "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. Cross-source near/"
                      "containment dedup vs the existing WDS-10+9 base shards was performed "
                      "for the WDS 8-5 + extra-9 expansion: exact-dup=0, near-dup overlap="
                      "0.0000% (byte-verified). Copyright recurs at all lengths in web crawl. "
                      "Parity with the accepted european-hplt-v1 CC0 basis.",
        "custom_datasheet": True,
    },
    "1000_novels": {
        "added": "2026-07-02",
        "release": "0.2.1",
        "speakleash_key": "1000_novels_corpus_CLARIN-PL",
        "pretty": "1000 Novels Corpus (CLARIN-PL)",
        "license": "CC-BY-4.0",
        "license_spdx": "CC-BY-4.0",
        "traceable": "The 1000 Novels Corpus is released under Creative Commons "
                     "Attribution 4.0 International by CLARIN-PL / Wrocław University "
                     "of Technology, with attribution to the corpus authors and "
                     "maintainers.",
        "upstream": "https://clarin-pl.eu/dspace/handle/11321/312",
        "domain": "literature",
        "created": "unknown",
        "is_ocr": False,
        # Datasheet is contributor-committed (added 2026-07-02); skip regeneration
        # so the global ADDED stamp does not overwrite the real add date.
        "custom_datasheet": True,
    },
    "common_voice_pl": {
        "added": "2026-09-05",
        "release": None,
        "file_key": "common_voice_pl",
        "pretty": "Mozilla Common Voice Polish validated sentences (v26.0)",
        "license": "CC0-1.0",
        "license_spdx": "CC0-1.0",
        "traceable": "Mozilla Data Collective distributes Common Voice Scripted Speech "
                     "26.0 under CC0-1.0 (license field of the dataset record at the "
                     "origin); this text-only projection retains only sentences associated "
                     "with validated recordings. MDC Terms of Use prohibit re-identification "
                     "of contributors - carried to downstream users in the datasheet.",
        "upstream": "https://mozilladatacollective.com/datasets/cmqinmu2a00winq07gyrtri0q",
        "provenance": "Official Mozilla dataset cmqinmu2a00winq07gyrtri0q, accessed through "
                      "the pinned row-normalized HF mirror "
                      "Peacockery/common-voice-scripted-speech-26@b4d8b94d. Sentence-level "
                      "units (median 56 chars) - see the unit note in the datasheet. Pattern "
                      "filters only - re-run through SlayerLab/NERGAL before release.",
        "domain": "spoken/scripted contemporary sentences",
        "created": "2026-06-12",
        "is_ocr": False,
        "custom_datasheet": True,
    },
    "global_voices": {
        "added": "2026-07-15",
        "release": "0.2.3",
        # Data contributed directly (PR #7): no in-repo fetch/build script and a
        # hand-authored datasheet. Registered for the source table + release totals;
        # the datasheet stays contributor-owned via custom_datasheet.
        "file_key": "global_voices",
        "pretty": "Global Voices Polish",
        "license": "CC-BY-3.0",
        "license_spdx": "CC-BY-3.0",
        "traceable": "CC BY 3.0 verified from the article-level license link published "
                     "with each retained Global Voices article; each record carries "
                     "CC-BY-3.0 metadata and per-document author/translator attribution "
                     "in global_voices.attribution.jsonl.",
        "upstream": "https://pl.globalvoices.org/",
        "domain": "civic media, news and public-interest journalism",
        "created": "2008-11-04, 2023-05-24",
        "is_ocr": False,
        "custom_datasheet": True,
    },



    "kultura_bez_barier_pl": {
        "added": "2026-09-07",
        "release": None,
        "file_key": "kultura_bez_barier_pl",
        "pretty": "Kultura bez Barier PL (accessibility guides)",
        "license": "CC-BY-SA-3.0",
        "license_spdx": "CC-BY-SA-3.0",
        "traceable": "The official Fundacja Kultury bez Barier publication catalogue "
                     "presents the linked foundation-authored publications as CC BY-SA "
                     "3.0; catalogue HTML, raw PDFs, source URLs and SHA-256 digests are "
                     "preserved as evidence. Catalogue-level declaration only — an "
                     "embedded per-PDF license assertion is not claimed.",
        "upstream": "https://kulturabezbarier.org/publikacje/",
        "provenance": "Fetched directly from the official catalogue by "
                      "src/build_kultura_bez_barier_pl.py; pdfplumber page-text "
                      "extraction, page-number removal, line-wrap/hyphen repair, "
                      "Unicode/whitespace normalization, limited PII-pattern redaction, "
                      "exact and seeded near dedup. 12 publications discovered, 9 "
                      "retained (3 rejected for rights/authorship conflicts with a "
                      "third-party project partner); attribution, selection decisions "
                      "and checksums preserved in the sidecar files.",
        "domain": "accessibility/disability guides",
        "created": "2017-11-20, 2024-04-19",
        "is_ocr": False,
        "custom_datasheet": True,
    },
}

# Fallback stamp for a source with no recorded "added" date of its own.
ADDED = "2026-07-19"
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.",
}