diff --git a/.agents/skills/source-rights-review/SKILL.md b/.agents/skills/source-rights-review/SKILL.md index e43935364a831f19e01e70431299eae43969b143..cdff1e39fba260538b1867cff9ac0148e1d06f72 100644 --- a/.agents/skills/source-rights-review/SKILL.md +++ b/.agents/skills/source-rights-review/SKILL.md @@ -98,7 +98,7 @@ Write one row per hop: author -> publisher/platform -> intermediary(ies) -> this If upstream licenses item by item, the corpus needs a per-row `license` (and author/title/URL where available), built from the upstream field. One label over mixed rights is a defect even when every -individual licence is open (wolne_lektury: PD, FAL 1.3 and CC BY-SA 3.0 PL/4.0 under one label). +individual licence is an open licence (wolne_lektury: PD, FAL 1.3 and CC BY-SA 3.0 PL/4.0 under one label). A licence version is part of the licence: 3.0 to 4.0 is not a free upgrade. ### 4. Public-domain claims @@ -183,9 +183,9 @@ scrap(e|ing) | automated (access|means) | bulk download 3. **`src/sources.py`**: `license`, `license_spdx`, `traceable` (why the licence holds), `provenance` (name the intermediary), `upstream`, `legal_note` (caveats, the withdrawal reason), `release`. Use `MIXED` plus a per-row field for mixed rights; `LicenseRef-...` for non-SPDX bases. -4. **Decision record** `polish-dynaword-v2/repo_patch_suggestions/decisions/.yaml`, schema +4. **Decision record** in the paper repository, `repo_patch_suggestions/decisions/.yaml`, schema `decision-record.schema.yaml` (`status: admitted | excluded | held_for_review`; evidence - in `polish-dynaword-v2/evidence/`). Example: `1000_novels.yaml`. There is no `partial` status: a partial + in the paper repository's `evidence/`). Example: `1000_novels.yaml`. There is no `partial` status: a partial admission is `status: admitted` with the kept-out parts listed under `scope.withheld`. No sibling checkout: put the record text in the PR description and flag it. 5. **Findings log** `artifacts/source_findings.md`: append an entry whether the answer is yes or no. @@ -210,7 +210,7 @@ As done for HPLT (`european_hplt_v3_pl`, removed from main on 2026-09-16): `release` value and set `removed` to the first release without it (`european_hplt_v3_pl`: `"0.2.3"` and `"0.2.6"`). `verify_paper_claims.py` stops counting the source from `removed` on. 3. Write a decision record (`status: excluded`, or `held_for_review` while a human decides). -4. Run `python3 src/verify_paper_claims.py --tex ../polish-dynaword-v2/main.tex --ref worktree`. Its FAILs +4. Run `python3 src/verify_paper_claims.py --tex ..//main.tex --ref worktree`. Its FAILs are the paper's token, document and source counts that the removal breaks. 5. `make_docs.py` skips sources with no data, so regenerated release totals undercount; see AGENTS.md "Known drift" before touching the README tables. diff --git a/.agents/skills/source-rights-review/references/polish-law.md b/.agents/skills/source-rights-review/references/polish-law.md index 4485f6d887178b156edbf56ddcf50eb8b7356ac2..1110e79fbe6a90bdb54319b63c8be73922188610 100644 --- a/.agents/skills/source-rights-review/references/polish-law.md +++ b/.agents/skills/source-rights-review/references/polish-law.md @@ -16,7 +16,7 @@ primary text. Read the statute on ISAP/ELI before quoting an article in a datash "Prawa autorskie do tekstu wygasają: w 2045 roku w Polsce, w 2021 roku w USA" is a PD-US-only item (`wikisource_1295016`). A year after the current year in the "w Polsce" slot means keep out. - Europeana's conservative US slice is records created/published before 1929 (`legal_note` in - `src/sources.py`); later records stay separately labelled or held pending legal review. + `src/sources.py`); later records stay separately labelled or held pending a rights review. - Death years need a cited source. Hand-curated years (`scripts/novels_rights_screen.py`) are I. ## Art. 4 of the Copyright Act (official materials) diff --git a/.agents/skills/source-rights-review/references/templates.md b/.agents/skills/source-rights-review/references/templates.md index 5c50fb77d4f99dcce6ccd773baa21241156aef25..7bf88e98b29d8b4be185c673bae808f70e4def38 100644 --- a/.agents/skills/source-rights-review/references/templates.md +++ b/.agents/skills/source-rights-review/references/templates.md @@ -103,7 +103,7 @@ language and per site. Prefer the allowlist argument: pass the exact licence id `status` values seen in the repo: `reviewed-open-official-materials`, `documented-statutory-basis-review-needed`. Never copy another source's `status`. -## Decision record (`polish-dynaword-v2/repo_patch_suggestions/decisions/.yaml`) +## Decision record (in the paper repository: `repo_patch_suggestions/decisions/.yaml`) Schema: `decision-record.schema.yaml` (same directory). Do not add fields it does not have. @@ -134,7 +134,7 @@ verification: notes: "" ``` -Per-text evidence (screens, sample classifications) goes in `polish-dynaword-v2/evidence/` +Per-text evidence (screens, sample classifications) goes in the paper repository's `evidence/` (example: `1000_novels_rights_screen.csv`). If you have no checkout of that repo, paste the record into the PR description and say so. diff --git a/AGENTS.md b/AGENTS.md index a3dea4ab4cf28834abd60142943a3d837768b6e5..af57253cfc3b78d20c19e5f5728d026902a07124 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -234,9 +234,9 @@ Two rules about all of the above: per-source `stats.json` files. `git diff` the result. 4. Append the release to `VERSIONS`, `DOCUMENTS` and `TOKENS` in `src/plot_version_growth.py`, using the same stats sums as step 3. Then check the - paper (polish-dynaword-v2) against the tree: + paper repository against the tree: ```bash - python3 src/verify_paper_claims.py --tex ../polish-dynaword-v2/main.tex --ref worktree + python3 src/verify_paper_claims.py --tex ..//main.tex --ref worktree ``` It exits 0 once the paper describes this release. Without `--ref`, it reads every repository file at the revision the paper's `\snapshot` pins. diff --git a/CHANGELOG.md b/CHANGELOG.md index de1ebba0c71b6de313c930d3964fd654c460c141..ce2bb206753e60b354970df2627b2f0d1ad6e020 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,22 @@ Main has the same data as v0.2.6. +Documentation errata (2026-10-30): one commit on main after the 2026-10-29 +squash corrects the release notes, cards, registry entries, scripts and +reports, and the `v0.2.6` tag was re-pointed to it. No Parquet or JSONL file +changed; the checksum files and manifests that pin an edited file were +updated. References to an issue tracker that readers cannot open were removed +or replaced by the release, date or Hub PR they stood for. The `wikipedia` +notes give the 44 dropped pages by reason, and the Hub PR lists of +`wikibooks`, `wikivoyage` and `1000_novels` are completed. The +`sejm_api_2011_2022` and `sejm_committee_transcripts` cards state their +`license` value in a **License:** line; the `open_icm_pl` card no longer lists +an ID or IBAN rule that its scrub does not have; the `plwiki_talk` and +`plwiki_user_talk` cards say that the contributed builds (Hub PRs 36 and 40) +labelled every row `CC-BY-SA-4.0`; the `govpl` card notes the 5 rows that its +count of rows from before 2019-08-05 leaves out. `src/verify_paper_claims.py` +reads the paper's pinned revision and a card's **Rights status:** line. + Repository history (2026-10-29): the Sejm's interpellations, questions and the government's replies came out of `parliamentary` until v0.2.7 (286,135 documents / 391,602,712 tokens), for the same reason as `sejm_interpellations`: @@ -81,8 +97,9 @@ tokens. v0.2.7 (withdrawn on 2026-10-29). 43,728 documents / 1,112,524,902 tokens (Hub PRs #108, #111). - `wikipedia` is rebuilt from the official plwiki dump, replacing the - SpeakLeash snapshot; each record is labelled by its contribution dates, and 42 - pages with a copyright-violation notice or deleted for one are dropped. + SpeakLeash snapshot; each record is labelled by its contribution dates, and 44 + pages are dropped: 35 with a copyright-violation notice, 7 deleted for one + and 2 that the copyright sample found copied. 1,468,647 documents / 1,226,906,115 tokens (v0.2.5: 1,171,897 documents; Hub PRs #68, #128, #148). - `biblioteka_nauki` records carry the licence version and basis the Biblioteka @@ -109,11 +126,11 @@ tokens. chapter titles. 100 documents / 21,504,056 tokens (Hub PR #187). - `wikibooks` withholds 54 pages; each record is labelled by its contribution dates and the licence of imported text, and markup residue is removed. 9,041 - documents / 15,220,800 tokens (v0.2.5: 9,112; Hub PRs #127, #134, #139, #142, + documents / 15,220,800 tokens (v0.2.5: 9,112; Hub PRs #79, #127, #134, #139, #142, #147). - `wikivoyage` withholds 6,330 pages, 6,326 of them text from Wikitravel; each record is labelled by its contribution dates, and markup residue is removed. - 7,312 documents / 14,084,102 tokens (v0.2.5: 13,645; Hub PRs #125, #133, + 7,312 documents / 14,084,102 tokens (v0.2.5: 13,645; Hub PRs #78, #125, #133, #138, #141). - `wikinews` withholds 1 page; each record is labelled by its contribution dates and the licence of imported text, and markup residue is removed. 23,572 @@ -167,7 +184,7 @@ release tag that held them. each author and translator died in 1955 or earlier, but no row records the edition its text follows, so a protected preface, abridgement or editor's corrections cannot be ruled out. Main held 221 documents / 10,759,728 - tokens, what was left after the rights screen (Hub PRs #49, #55) and the + tokens, what was left after the rights screen (Hub PRs #49, #55, #65) and the dedup against `wolne_lektury` and `eltec_pol`. The registry keeps its `release: "0.2.1"` entry with a `legal_note`, and `src/clean_1000_novels.py` stays for a re-admission. diff --git a/NOTICE.md b/NOTICE.md index 0a43abab41cfa444a7db7e2815d93e25eaed9c40..4571f9604dffcb945b115c8ffee70129cd2675aa 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -67,10 +67,8 @@ it reaches the text sources here or binds a re-user; users who plan a commercial the page and decide for themselves. The page also says that clubs, circles, teams and MPs answer for their own pages; we did not take material from those pages. -Archive: a verbatim copy of the terms block, with its date and SHA-256 -(`cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`), is kept as -`evidence/sis_copyright_2026-10-19.md` (and its `.content.html` and `.meta.json`) in -[polish-dynaword-v2](https://github.com/slayerlabs/polish-dynaword-v2/pull/121). The page's +Archive: we keep a copy of the page as read on 2026-10-19 (a verbatim copy of the terms +block, SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`). The page's URL is https://www.sejm.gov.pl/Sejm10.nsf/page.xsp/copyright. An earlier capture of the same page by the Internet Archive, 2026-06-03, carries the same source note and clause: http://web.archive.org/web/20260603115729/https://sejm.gov.pl/Sejm10.nsf/page.xsp/copyright @@ -94,24 +92,21 @@ here and is not an acquisition date. - **Acquired:** 2026-10-07 (the TEI dump). - **Terms:** the only rights statement we found is IPI PAN's on its PPC page: "The parliamentary data is public domain." It is a redistributor's statement, not the - institutions'. We read the page on 2026-10-18 and archived it in polish-dynaword-v2 (pull - request 120). We record the sentence as provenance, not as our legal basis. + institutions'. We read the page on 2026-10-18 and keep a copy of it. We record the sentence as provenance, not as our legal basis. - **IPI PAN's confirmation, 2026-10-19:** by email, IPI PAN confirmed that its statement also covers its right as producer of the database, and agreed to the resource's inclusion in this collection under the collection's CC BY-SA 4.0 tag. That is IPI PAN's consent about its own rights and about the collection-level tag; it does not give the texts a licence and does not - speak for the Sejm or the Senate. The reply is archived as - `evidence/ipipan_reply_2026-10-19.md` in polish-dynaword-v2. IPI PAN also confirmed the - citation (Ogrodniczuk 2018) as correct for now and said a book on the corpus is in - preparation, so the preferred citation may change. + speak for the Sejm or the Senate. The reply is kept on file and is not published. + IPI PAN also confirmed the citation (Ogrodniczuk 2018) as correct for now and said a book + on the corpus is in preparation, so the preferred citation may change. - **Credit:** IPI PAN; the speaker turns, speaker ids, roles and dates this source is cut and filtered by come from IPI PAN's TEI markup. PPC's CC BY licence covers its annotations; none of the annotation layers is shipped. Cite Maciej Ogrodniczuk (2018), "Polish Parliamentary Corpus", Proceedings of the LREC 2018 Workshop ParlaCLARIN. - **SIS credit:** Źródło: System Informacyjny Sejmu (Kancelaria Sejmu RP), for the Sejm material in this source. We give it as a precaution: the source is a copy from IPI PAN's - server, not from the Sejm's system, and whether the note applies is open. It does not - cover the Senate material. + server, not from the Sejm's system. It does not cover the Senate material. ### sejm_api_2011_2022 and sejm_api @@ -167,8 +162,7 @@ here and is not an acquisition date. - **Acquired:** not recorded. The shard was added on 2026-06-15. - **Credit:** Dziennik Ustaw; Kancelaria Sejmu RP for the ELI interface. As a precaution we also give the System Informacyjny Sejmu note, "Źródło: System Informacyjny Sejmu - (Kancelaria Sejmu RP)". The terms page does not mention the ELI interface, so whether the - note applies is open. + (Kancelaria Sejmu RP)". The terms page does not mention the ELI interface. ## Takedown and contact diff --git a/README.md b/README.md index b060648fdf2f2ed537b63d5f0df6281d4141bf97..ed4bfeebf99cbf67c46227625eb8173e572b1a3e 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ earlier tags were deleted ([Releases](#releases)). |---|---:|---:|---| | `european_hplt_v3_pl` | 1,603,974 | 2,555.5M | Licence unverified: HPLT's CC0 covers its packaging, not the crawled pages. It will not be re-added. | | `wikisource` | 632,005 | 801.9M | Its single CC BY-SA 3.0 label also covered in-copyright post-war imprints that carry their own per-page licences. A rebuild from the official dump is planned for a later release. | -| `1000_novels` | 1,000 | 60.5M | Its rights screen ([PR #49](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/49), [PR #55](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/55)) kept the public-domain texts, but no row records the edition its text follows, so a protected preface, abridgement or editor's corrections cannot be ruled out. Withdrawn on 2026-10-17 ([PR #124](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/124)). | +| `1000_novels` | 1,000 | 60.5M | Its rights screen ([PR #49](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/49), [PR #55](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/55), [PR #65](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/65)) kept the public-domain texts, but no row records the edition its text follows, so a protected preface, abridgement or editor's corrections cannot be ruled out. Withdrawn on 2026-10-17 ([PR #124](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/124)). | | `samorzad_gov_pl` | 72,771 | 41.2M | Its CC BY-SA 4.0 is the platform operator's footer, not a grant from the 247 institutions that wrote the texts. Withdrawn on 2026-10-17 ([PR #123](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/123)). | | `wikiquote` | 30,363 | 31.9M | Most of its pages quote works still in copyright, and its CC BY-SA label covers only the contributors' selection. | @@ -296,7 +296,7 @@ The 15 v0.2.5 sources in v0.2.6 total 2,297,055 documents / 6,399.8M tokens. snapshot. Each record is labelled CC BY-SA 3.0, 4.0 or both by its contribution dates. The 35 pages that carry plwiki's copyright-violation notice are dropped, and so are 7 pages that plwiki deleted for a copyright - violation. 1,171,897 → 1,468,647 documents, 707.2M → 1,226.9M tokens + violation and 2 that the copyright sample found copied. 1,171,897 → 1,468,647 documents, 707.2M → 1,226.9M tokens ([PR #68](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/68), [PR #128](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/128), [PR #148](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/148)). - `biblioteka_nauki` keeps its text from the SpeakLeash redistribution. Each record now carries the licence version and licence basis the Biblioteka Nauki @@ -329,11 +329,11 @@ The 15 v0.2.5 sources in v0.2.6 total 2,297,055 documents / 6,399.8M tokens. - `wikibooks` withholds 54 pages: 51 by the rights review and 3 with `{{GFDL-tekst}}`. Each record is labelled by its contribution dates and the licence of imported text, and markup residue is removed. 9,112 → 9,041 - documents, 15.6M → 15.2M tokens ([PR #127](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/127), [PR #134](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/134), [PR #139](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/139), [PR #142](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/142), [PR #147](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/147)). + documents, 15.6M → 15.2M tokens ([PR #79](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/79), [PR #127](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/127), [PR #134](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/134), [PR #139](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/139), [PR #142](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/142), [PR #147](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/147)). - `wikivoyage` withholds 6,330 pages: 6,326 with `{{Atrybucja}}` (text from Wikitravel), 2 with `{{Import}}` and 2 by the rights review. Each record is labelled by its contribution dates, and markup residue is removed. - 13,645 → 7,312 documents, 17.1M → 14.1M tokens ([PR #125](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/125), [PR #133](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/133), [PR #138](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/138), [PR #141](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/141)). + 13,645 → 7,312 documents, 17.1M → 14.1M tokens ([PR #78](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/78), [PR #125](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/125), [PR #133](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/133), [PR #138](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/138), [PR #141](https://huggingface.co/datasets/SlayerLab/polish-dynaword/discussions/141)). - `wikinews` withholds 1 page. Each record is labelled by its contribution dates and the licence of imported text, and markup residue is removed. 24,386 → 23,572 documents, 12.1M → 11.0M tokens diff --git a/artifacts/bartek_source_ingestion_plan_2026-07-02.md b/artifacts/bartek_source_ingestion_plan_2026-07-02.md index eef5309b2b610524953e6240e7f3bef752934871..05637b0693f0916d020f1b2dc3335f4da424972e 100644 --- a/artifacts/bartek_source_ingestion_plan_2026-07-02.md +++ b/artifacts/bartek_source_ingestion_plan_2026-07-02.md @@ -58,7 +58,7 @@ Release split: - `created/published < 1929`: conservative public release slice for US-sensitive downstream users; - `created/published >= 1929` or unknown date: keep separately labeled, or hold - until legal review confirms the release scope. + until a rights review confirms the release scope. Dataset-card wording should say that Europeana rights statements are evaluated primarily for Poland/EU and that public-domain status can depend on jurisdiction. diff --git a/artifacts/kultura_bez_barier_pl_ontology_manifest.json b/artifacts/kultura_bez_barier_pl_ontology_manifest.json index 58082a4006de13abb1f2eceefe0a12f2fb2b70f7..567151fe95a95dc9700b293d7602a516a3a65f46 100644 --- a/artifacts/kultura_bez_barier_pl_ontology_manifest.json +++ b/artifacts/kultura_bez_barier_pl_ontology_manifest.json @@ -118,7 +118,7 @@ "artifacts/sample.jsonl": "e8b7d7d5962d69b6103ac6359798c2ceb6e72e63c3e933667a8e33d85e23146c", "artifacts/stats.json": "87ee0cfa7fbadfc734cf7ebc25be88eea8496cf9924d486db7bb0cc3f41289ad", "data/train-00000-of-00001.parquet": "76c36ab04179e6106e97343372f855956503968f6f0bfe1f7949e36995e3b8fb", - "src/build_kultura_bez_barier_pl.py": "ee0771bbf46243a8a65b790fe245b468028e61724ea1b7339b5dd2a2206ff4cc", + "src/build_kultura_bez_barier_pl.py": "087b314efd4b7b37a85ef60fc0ffc86b323b8eee45991c81bb5625bf6eb95e37", "src/requirements.txt": "807ccb72d622706ea3b41d39190c6258a17d4f5472eeab294a9d483eb4c44ac1", "src/test_kultura_bez_barier_contribution.py": "0962312fc13fdd8fc33a729b505896311455dcd623dcd543317378efcbfcb523" }, @@ -182,11 +182,11 @@ "artifacts/sample.jsonl": "40f1daf74bf1c3c6ee927306ba19155b36560192fd6e56f190b039271765423e", "artifacts/stats.json": "53c0e1236633ba8296aa83887a950c2944ad284fbe74fd8a3ad41b213fa5ea2e", "data/train-00000-of-00001.parquet": "ae6126991199dc2a3e7b5627fb6d66b4c29a0179bc2d42bcda5a2dbcc380af4e", - "src/build_kultura_bez_barier_pl.py": "ee0771bbf46243a8a65b790fe245b468028e61724ea1b7339b5dd2a2206ff4cc", - "src/licence_basis_kultura_bez_barier_pl.py": "5c951168040efcd67e912c4f84fac6874fc047a69cd1a23509a8e7d04589ca7b", + "src/build_kultura_bez_barier_pl.py": "087b314efd4b7b37a85ef60fc0ffc86b323b8eee45991c81bb5625bf6eb95e37", + "src/licence_basis_kultura_bez_barier_pl.py": "1f16c1ddf569b14ab83cf00105279d7924ad64db35850e2aceb711d49811a960", "src/requirements.txt": "807ccb72d622706ea3b41d39190c6258a17d4f5472eeab294a9d483eb4c44ac1", - "src/test_kultura_bez_barier_contribution.py": "d04198abd2d2baeccd10a367851606ca148b02a1b1e72449da208a57ac2e6bc9", - "src/test_licence_basis_kultura_bez_barier_pl.py": "031225c8c25794db3bbaead2dc84875d4811ec0c9c7b430ef37e78ccd9980336" + "src/test_kultura_bez_barier_contribution.py": "58d3cce855ae6503e9117972ae3ed903994457ad22adea9a9efd3d2ba7779c2e", + "src/test_licence_basis_kultura_bez_barier_pl.py": "5093353043f75f5d436c81fbff0e390e955ce67050a08bac66e40900691318f8" }, "produced_by": "run:e18ed13a28a81c2f8a8eb248b61794f243187bf3af3ec84067a66b4450a2f9fa" } @@ -204,10 +204,10 @@ "pending": [ "cross-source deduplication", "benchmark contamination check", - "maintainer/legal review of catalogue-level license scope", + "maintainer review of catalogue-level license scope", "controlled training ablation", "replay of the v0.2.6 second PII pass from the raw PDFs (applied offline to the published text)", - "scope of the foundation's CC BY-SA 3.0 statement (publications or only the pictograms): to be asked of the foundation (v2#111)" + "scope of the foundation's CC BY-SA 3.0 statement (publications or only the pictograms): to be asked of the foundation" ], "protocols": [ { diff --git a/artifacts/open_icm_pl_ontology_manifest.json b/artifacts/open_icm_pl_ontology_manifest.json index e03c0b61d3b115040f6b1a9696c216a3c361b074..d2689aa8f8b2c8e9667c6055688327ad1348559c 100644 --- a/artifacts/open_icm_pl_ontology_manifest.json +++ b/artifacts/open_icm_pl_ontology_manifest.json @@ -17,7 +17,7 @@ { "falsification_condition": "The pinned Parquet, decisions or overlap report do not reproduce these counts.", "id": "claim:open-icm-target-retention", - "statement": "The proposed DynaWord slice contains 11 records: 95 passed source QA, 10 exact title/DOI overlaps were excluded and 74 were dropped in the licence review (v2#111).", + "statement": "The proposed DynaWord slice contains 11 records: 95 passed source QA, 10 exact title/DOI overlaps were excluded and 74 were dropped in the licence review.", "supported_by": [ "evidence:open-icm-target-stats:fc039f1bf9f46d3962e312f3969e8252b8b39ded2e99442fb0209612ff3918cd", "evidence:open-icm-target-overlap:c05fccedde6965de8dcaf62fd1233fe3fa77cdd105c426f9f6d5474684303a61" @@ -67,14 +67,14 @@ "observation_type": "checksums", "payload": { "data/open_icm_pl/open_icm_pl.attribution.jsonl": "4b490d4505f226317435dd11069c0b071a5e58d497e42e151818439a62c4dfa3", - "data/open_icm_pl/open_icm_pl.licence-basis.json": "1f3df27ad104feac062fc4264c5393dbcd5f6abc8502ddacd0690fff2fbca6cb", + "data/open_icm_pl/open_icm_pl.licence-basis.json": "4a3f97a164ddfc1eabc26f7312a268dee4e0a47db8f4eddc114bb0d40e70eeff", "data/open_icm_pl/open_icm_pl.parquet": "8a5e2cdbd3bb5575907d2d14e740316b1df010fd24d8c230bf779b5a6f9aa399", - "data/open_icm_pl/open_icm_pl.publisher-check.json": "df988ed8ee92db30c8d39babebf513faa795eed3b902a876e60d65bdf7394039", + "data/open_icm_pl/open_icm_pl.publisher-check.json": "a127bace44823cb49ff7bbef57ef2cf2127d9737dc64cff0373dd08cdcb74353", "data/open_icm_pl/open_icm_pl.review.csv": "f98a7dc73181b746e91a6033291a944599fc88cb69ce51a2c235c35cf647873a", "data/open_icm_pl/open_icm_pl.sample.jsonl": "8f79168ad93142aefeb159f0d527a89ad55e1c21971a0320222c51bdbf839ce0", "data/open_icm_pl/open_icm_pl.stats.json": "cbee968cc2368b2185dd56fa661fb2e10c29634bac51d46a0ed2d82e38321f14", - "src/licence_basis_open_icm_pl.py": "2f94bea5e89b14223f76fadcb23a37f1a9bb68462821f910a9e26253b666f242", - "src/test_licence_basis_open_icm_pl.py": "75a97c39ea3b85ea32363665660df24b7531e04076c5c5292e358921b5d03577" + "src/licence_basis_open_icm_pl.py": "ebd36cdd8eda0dbca39c258a4e947b75dae61a7ea0a19f7f13e0641816f0bb49", + "src/test_licence_basis_open_icm_pl.py": "a747836007585e665f9e669855ae7839f1861b599c953b72d10fb4dab8355bb7" }, "produced_by": "run:open-icm-licence-basis:cac1f127d9ed0a35c0a39fcb3dfade7ee7a3387274eab224fb0add3894352777" } @@ -94,7 +94,7 @@ "benchmark contamination check", "review of quoted third-party text", "controlled training ablation", - "licence at the time of publication for the 9 publisher-basis records: the statements were read on 2026-10-20 and a publisher may have applied them to back issues later; 3 are journal-level; 1 names no version (v2#111)" + "licence at the time of publication for the 9 publisher-basis records: the statements were read on 2026-10-20 and a publisher may have applied them to back issues later; 3 are journal-level; 1 names no version" ], "protocols": [ { diff --git a/artifacts/rights_audit_2026-10/REVIEW.html b/artifacts/rights_audit_2026-10/REVIEW.html index b38c47ea14e1ea41a3481c2b452d1c68a0b7a142..71c3aab75e1e21565529c651ec688e575871f6d9 100644 --- a/artifacts/rights_audit_2026-10/REVIEW.html +++ b/artifacts/rights_audit_2026-10/REVIEW.html @@ -86,7 +86,7 @@ tr.grp td{background:var(--bg);font-weight:600;font-family:var(--f-display)}

Why this audit

-

The paper (polish-dynaword-v2/main.tex:46) says:

+

The paper (main.tex:46) says:

No source carries a NonCommercial licence, but the rights to HPLT's underlying web pages and to some 1000 Novels texts are unresolved

That sentence is false for both main and v0.2.5. openstax_pl carries NonCommercial terms and an explicit ban on LLM training. Five sources already shipped in v0.2.5 have the HPLT problem: wikisource, wikiquote, wiktionary_examples, 1000_novels and nkjp1m.

Failure classes tested.

@@ -183,7 +183,7 @@ tr.grp td{background:var(--bg);font-weight:600;font-family:var(--f-display)}
  • Registry: src/sources.py. Edit the fields license, license_spdx, traceable, provenance, upstream, legal_note and release. release: None means the source is on main but unreleased.
  • Per source: data/<src>/<src>.md (card), NOTICE.md, <src>.license-evidence.json, <src>.attribution.jsonl, <src>.stats.json, qa.json.
  • -
  • Decision records: polish-dynaword-v2/repo_patch_suggestions/decisions/<src>.yaml (schema decision-record.schema.yaml). Per-text evidence goes in polish-dynaword-v2/evidence/.
  • +
  • Decision records: the paper repository's decision records (repo_patch_suggestions/decisions/<src>.yaml, schema decision-record.schema.yaml). Per-text evidence goes in the paper repository's evidence/.
  • Paper check: src/verify_paper_claims.py checks token and source counts. Run it after any removal.
@@ -255,7 +255,7 @@ tr.grp td{background:var(--bg);font-weight:600;font-family:var(--f-display)}
  • Drop PD-US-only pages. Their footer reads "Prawa autorskie do tekstu wygasają: w 20xx roku w Polsce" with a year after 2025.
  • Add a per-row license and the source URL. Regenerate the card and remove the false sentence.
  • -

    Done when

    None of the IDs above survive. Every row has a page URL and a death-year basis or licence template. The rights-screen CSV is in polish-dynaword-v2/evidence/.

    +

    Done when

    None of the IDs above survive. Every row has a page URL and a death-year basis or licence template. The rights-screen CSV (evidence/1000_novels_rights_screen.csv) is among the paper's ancillary files.

    Needs a human

    Decide whether to withdraw from v0.2.6 until the rebuild lands. Death years for translators may need manual curation.

    @@ -304,7 +304,7 @@ tr.grp td{background:var(--bg);font-weight:600;font-family:var(--f-display)}

    Problem

    CLARIN-PL's CC BY 4.0 covers only the compilation. The card on main now has a rights note, but the parquet is unchanged: all 1,000 rows say CC-BY-4.0 and author is empty.

    Evidence

      -
    • V Per-text screen polish-dynaword-v2/evidence/1000_novels_rights_screen.csv: 830 PD by term, 10 PD per Wolne Lektury, 17 in copyright, 143 unverified.
    • +
    • V Per-text screen evidence/1000_novels_rights_screen.csv, among the paper's ancillary files: 830 PD by term, 10 PD per Wolne Lektury, 17 in copyright, 143 unverified.
    • V The 17 are 2 by Dąbrowska, 12 translated by Michał Friedman and 3 translated by Hōjun. Wolne Lektury publishes them under CC BY-SA 3.0 PL; 5 still carry that footer.
    • V Row i of the parquet is the i-th file in the CLARIN listing, which is how rows map to the screen (decision record 1000_novels.yaml).
    • I The CLARIN-PL licence page wasn't read (timeout). Death years in scripts/novels_rights_screen.py are hand-curated.
    • @@ -720,7 +720,7 @@ tr.grp td{background:var(--bg);font-weight:600;font-family:var(--f-display)}
    • 4.4% cite an expert opinion.
    • 1.2% name natural persons.
    -

    Fix

    Reword the label to state the review status ("statutory basis, no formal legal review"). If SAOS merges, choose one canonical source for the 4,541 KIO duplicates. Optional: written confirmation from UZP.

    +

    Fix

    Reword the label to state the review status ("statutory basis, our assessment"). If SAOS merges, choose one canonical source for the 4,541 KIO duplicates. Optional: written confirmation from UZP.

    diff --git a/artifacts/rights_audit_2026-10/reports/citations/nkjp_novels.md b/artifacts/rights_audit_2026-10/reports/citations/nkjp_novels.md index 706c577783245106dc1bcf4acbd2ce317b190afc..a6b38ee646584599c7d5d3f09da143cb9e690083 100644 --- a/artifacts/rights_audit_2026-10/reports/citations/nkjp_novels.md +++ b/artifacts/rights_audit_2026-10/reports/citations/nkjp_novels.md @@ -59,15 +59,15 @@ CLARIN-PL record (used by several rows): "1000 Novels Corpus", Eder, Rybicki, M | M2 | the CLARIN-PL licence page wasn't read (timeout) | gap now closed through the API; the HTML page is still unread | CLARIN-PL deposit licence bitstream `license.txt` (bundle LICENSE, 1,663 bytes, MD5 7670c817844272f0db340269678d2a0e), "NON-EXCLUSIVE DISTRIBUTION LICENSE" | https://clarin-pl.eu/server/api/core/bitstreams/47b881c4-d827-4959-91b5-c453fa33f3cf/content | NONE | "If the submission contains material for which you do not hold copyright, you represent that you have obtained the unrestricted permission of the copyright owner to grant PWR the rights required by this license, and that such third-party owned material is clearly identified and acknowledged" (quote shortened) — the depositor warrants third-party permission and identification. The 1000 file names identify authors and titles; no per-text rights statement appears in the record or the licence. | V | | M3 | all 1,000 parquet rows say CC-BY-4.0 and author is empty | supported | Local parquet and card | `data/1000_novels/1000_novels.parquet` (1000 rows; `license` all `CC-BY-4.0`; `author` all empty) | n/a (local) | n/a | V | | M4 | the card on main now has a rights note | supported | Local card `data/1000_novels/1000_novels.md`, section "Rights note (per-text screen, September 2026)", lines 16-30 | `data/1000_novels/1000_novels.md` | n/a (local) | "The CC-BY-4.0 licence covers the corpus as compiled by CLARIN-PL. It cannot license third-party rights in the individual novels and translations." (card wording; the sentence is the card's own claim, see M1) | V | -| M5 | per-text screen: 830 PD by term, 10 PD per Wolne Lektury, 17 in copyright, 143 unverified | supported (counts re-computed from the CSV) | Local evidence file `evidence/1000_novels_rights_screen.csv` in the v2 working tree; column `screen` gives 830 `pd_by_term`, 10 `pd_per_wolne_lektury`, 17 `in_copyright`, 143 `unresolved` (sum 1000). Ids are `1000_novels_NNNN`, 1-based, so id 0042 is 0-based parquet row 41 | `polish-dynaword-v2/evidence/1000_novels_rights_screen.csv` | n/a (local) | n/a | V | +| M5 | per-text screen: 830 PD by term, 10 PD per Wolne Lektury, 17 in copyright, 143 unverified | supported (counts re-computed from the CSV) | Evidence file `evidence/1000_novels_rights_screen.csv`, among the paper's ancillary files; column `screen` gives 830 `pd_by_term`, 10 `pd_per_wolne_lektury`, 17 `in_copyright`, 143 `unresolved` (sum 1000). Ids are `1000_novels_NNNN`, 1-based, so id 0042 is 0-based parquet row 41 | `evidence/1000_novels_rights_screen.csv` among the paper's ancillary files | n/a (local) | n/a | V | | M6 | the 17 are 2 by Dąbrowska, 12 translated by Michał Friedman, 3 translated by Hōjun | supported | CSV ids (column `translator` / `clarin_file`): Dąbrowska 0166 (dabrowska_dzikie-ziele_1956.txt), 0167 (dabrowska_boze-narodzenie.txt); Michał Friedman 0042, 0043, 0044 (anonim5_ze-skarbnicy-midraszy, anonim4_sentencje-ojcow, anonim3_agady-talmudyczne), 0308, 0309, 0310, 0314 (four Kacyzne books), 0451 (Mojcher-Sforim), 0604 (Perec), 0608 (Perle), 0846, 0848 (Alejchem) = 12; Hōjun 0315 (kigen_umysl-drogi), 0316 (kigen_o-przyjmowaniu-wskazan), 0317 (kigen_narodziny-smierc_2013) = 3. WL XML `dc:contributor.translator` confirms the translator for each of the 15 translated slugs; the id-to-slug match was done by file name | CSV path as in M5; WL XML pattern https://wolnelektury.pl/media/book/xml/.xml for the 17 slugs (e.g. https://wolnelektury.pl/media/book/xml/agady-talmudyczne.xml) | n/a (local); XML archive per row in M7 | WL XML `dc:contributor.translator`: "Friedman, Michał" (12 books) and "Hōjun" (3 books) — the translator tag in the WL metadata. | V | | M7 | WL publishes them under CC BY-SA 3.0 PL (Dąbrowska) | supported for Dąbrowska | WL book metadata XML, `dc:rights` and `dc:rights.license`; WL text footer | https://wolnelektury.pl/media/book/xml/dabrowska-boze-narodzenie.xml ; https://wolnelektury.pl/media/book/xml/dabrowska-dzikie-ziele.xml ; footer: https://wolnelektury.pl/media/book/txt/dabrowska-boze-narodzenie.txt ; author page: https://wolnelektury.pl/katalog/autor/maria-dabrowska/ | XML: http://web.archive.org/web/20250416201436/https://wolnelektury.pl/media/book/xml/dabrowska-boze-narodzenie.xml ; http://web.archive.org/web/20221205012452/https://wolnelektury.pl/media/book/xml/dabrowska-dzikie-ziele.xml ; txt: http://web.archive.org/web/20241202160421/https://wolnelektury.pl/media/book/txt/dabrowska-boze-narodzenie.txt ; author page: http://web.archive.org/web/20260105184957/https://wolnelektury.pl/katalog/autor/maria-dabrowska/ | `dc:rights`: "Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0.PL", licence `http://creativecommons.org/licenses/by-sa/3.0/`. Footer: "Ten utwór jest udostępniony na licencji Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0.PL" — This work is available under CC Attribution-ShareAlike 3.0 PL. Source edition `dc:source`: "Maria Dąbrowska, Pisma wybrane … wyd. Czytelnik, Warszawa 1956". | V | | M8 | (same) WL publishes the Friedman translations under CC BY-SA 3.0 PL | supported for all 12 Friedman books | WL XML `dc:rights`, one per slug, all "…Na Tych Samych Warunkach 3.0.PL", licence `http://creativecommons.org/licenses/by-sa/3.0/`. Slugs: agady-talmudyczne, alejchem-kasrylewka, alejchem-z-jarmarku, kacyzne-chore-perly-i-inne-opowiadania, kacyzne-dziwny-zyd, kacyzne-remedium-dla-literatow, kacyzne-stare-miasto, perec-opowiadania-chasydzkie-i-ludowe, perle-zydzi-dnia-powszedniego, podroze-beniamina-trzeciego, sentencje-ojcow, ze-skarbnicy-midraszy. Translator page: https://wolnelektury.pl/katalog/autor/michal-friedman/ ("Twórczość Michała Friedmana – Tłumaczenia") | https://wolnelektury.pl/media/book/xml/alejchem-z-jarmarku.xml (and the same path for each slug); footers: https://wolnelektury.pl/media/book/txt/kacyzne-dziwny-zyd.txt , https://wolnelektury.pl/media/book/txt/alejchem-z-jarmarku.txt ; translator page above | XML archives: alejchem-z-jarmarku http://web.archive.org/web/20190724000346/https://wolnelektury.pl/media/book/xml/alejchem-z-jarmarku.xml ; alejchem-kasrylewka http://web.archive.org/web/20260213094002/https://wolnelektury.pl/media/book/xml/alejchem-kasrylewka.xml ; agady-talmudyczne http://web.archive.org/web/20240927092723/https://wolnelektury.pl/media/book/xml/agady-talmudyczne.xml ; kacyzne-stare-miasto http://web.archive.org/web/20220419173712/http://wolnelektury.pl/media/book/xml/kacyzne-stare-miasto.xml ; kacyzne-chore-perly http://web.archive.org/web/20221202002702/https://wolnelektury.pl/media/book/xml/kacyzne-chore-perly-i-inne-opowiadania.xml ; podroze-beniamina-trzeciego http://web.archive.org/web/20220419205049/https://wolnelektury.pl/media/book/xml/podroze-beniamina-trzeciego.xml ; perle http://web.archive.org/web/20220419214430/http://wolnelektury.pl/media/book/xml/perle-zydzi-dnia-powszedniego.xml ; sentencje-ojcow http://web.archive.org/web/20171026060758/http://wolnelektury.pl/media/book/xml/sentencje-ojcow.xml ; ze-skarbnicy-midraszy http://web.archive.org/web/20220419164817/http://wolnelektury.pl/media/book/xml/ze-skarbnicy-midraszy.xml ; kacyzne-remedium and perec: NONE ; kacyzne-dziwny-zyd txt http://web.archive.org/web/20220426102942/https://wolnelektury.pl/media/book/txt/kacyzne-dziwny-zyd.txt ; alejchem-z-jarmarku txt http://web.archive.org/web/20231216130259/https://wolnelektury.pl/media/book/txt/alejchem-z-jarmarku.txt ; lektura page alejchem-kasrylewka http://web.archive.org/web/20260113022216/https://wolnelektury.pl/katalog/lektura/alejchem-kasrylewka/ | `dc:contributor.translator`: "Friedman, Michał"; `dc:rights`: "Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0.PL"; `dc:source` for Z jarmarku: "Szołem Alejchem, Z jarmarku, tłum. Michał Friedman, Wydawnictwo Dolnośląskie, Wrocław 1989." — the Friedman translation was first published commercially (1989); how the translator or publisher granted WL a CC licence is not stated in the metadata. | V | | M9 | (same) WL publishes the Hōjun translations under CC BY-SA 3.0 PL | contradicted in detail. The three Hōjun books carry "3.0 Unported", not "3.0 PL". See Corrections D2 | WL XML `dc:rights` for dogen-kigen-umysl-drogi, dogen-kigen-o-przyjmowaniu-wskazan, dogen-kigen-zycie-i-smierc; `dc:date` 2013-05-21 / 2013-08-30; translator page https://wolnelektury.pl/katalog/autor/hojun/ | https://wolnelektury.pl/media/book/xml/dogen-kigen-umysl-drogi.xml ; https://wolnelektury.pl/media/book/xml/dogen-kigen-o-przyjmowaniu-wskazan.xml ; https://wolnelektury.pl/media/book/xml/dogen-kigen-zycie-i-smierc.xml ; footer https://wolnelektury.pl/media/book/txt/dogen-kigen-zycie-i-smierc.txt ; translator page above | umysl-drogi XML http://web.archive.org/web/20201127054312/https://wolnelektury.pl/media/book/xml/dogen-kigen-umysl-drogi.xml ; lektura page http://web.archive.org/web/20260612234912/https://wolnelektury.pl/katalog/lektura/dogen-kigen-umysl-drogi/ ; zycie-i-smierc lektura http://web.archive.org/web/20251119135611/https://wolnelektury.pl/katalog/lektura/dogen-kigen-zycie-i-smierc/ ; zycie-i-smierc XML and txt: NONE ; o-przyjmowaniu-wskazan: NONE | `dc:rights`: "Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0 Unported", licence `http://creativecommons.org/licenses/by-sa/3.0/deed.pl`. Footer: "Ten utwór jest udostępniony na licencji Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0 Unported" — CC BY-SA 3.0 Unported. `dc:source` (Umysł Drogi): "Dōgen Kigen, Umysł Drogi [online], tłum. Hōjun, [dostęp: 09.09.2013]" with the mahajana.net URL. | V | | M10 | (new finding, bears on relabelling) licence on the original translator site for the same three texts | conflicts with WL | mahajana.net library pages for the Hōjun translations, project "Tłumaczenia Tekstów Dharmy – 'Kumarajiva'", "Informacje" block | http://mahajana.net/node/414 (Shoji, Życie i śmierć); http://mahajana.net/ttd/Dogen%20Zenji%20-%20Umysl%20Drogi/Dogen%20Zenji%20-%20Umys%C5%82%20Drogi.html ; http://mahajana.net/ttd/Dogen%20Kigen%20-%20Jukai/Dogen%20Kigen%20-%20Jukai.html ; project page http://mahajana.net/informacje/tlumaczenia-tekstow-dharmy-kumarajiva | node/414 http://web.archive.org/web/20170326073032/http://mahajana.net/node/414 ; Umysł Drogi http://web.archive.org/web/20160325104023/http://mahajana.net:80/ttd/Dogen%20Zenji%20-%20Umysl%20Drogi/Dogen%20Zenji%20-%20Umys%C5%82%20Drogi.html ; Jukai http://web.archive.org/web/20160325105832/http://mahajana.net:80/ttd/Dogen%20Kigen%20-%20Jukai/Dogen%20Kigen%20-%20Jukai.html ; project page http://web.archive.org/web/20260618134257/https://mahajana.net/informacje/tlumaczenia-tekstow-dharmy-kumarajiva | "Ten utwór jest dostępny na licencji Creative Commons Uznanie autorstwa-Bez utworów zależnych 3.0 Unported." — available under CC Attribution-NoDerivs 3.0 Unported (BY-ND). Project page: "Teksty będą udostępniane w oparciu o wolne licencje (np. Creative Commons Attribution ShareAlike 3.0)" — intended licences are free ones, e.g. BY-SA 3.0. So the pages read say BY-ND while WL says BY-SA; which one is right is not established. | V | | M11 | 5 of the 17 still carry the WL footer | supported. The licence line is present in the corpus text for ids 0042, 0043, 0044, 0315, 0317 (0-based parquet rows 41, 42, 43, 314, 316). The three Friedman footers read "3.0.PL", the two Dōgen footers read "3.0 Unported". The other 12 have no licence line (rows 165 and 166, Dąbrowska, keep only the "Tekst opracowany na podstawie" source line or nothing) | Local check of the parquet text for the footer block; it also matches the WL txt footers | `data/1000_novels/1000_novels.parquet` (rows above); comparison: https://wolnelektury.pl/media/book/txt/kacyzne-dziwny-zyd.txt (line 212), https://wolnelektury.pl/media/book/txt/dogen-kigen-zycie-i-smierc.txt (line 27) | see M8, M9 | In the corpus text (row 42, Sentencje ojców, sic "udostepniony" without the ogonek): "Ten utwór jest udostepniony na licencji Creative Commons Uznanie Autorstwa - Na Tych Samych Warunkach 3.0.PL: http://creativecommons.org/licenses/by-sa/3.0/." — footer text in the corpus itself. Row 41 (Ze skarbnicy Midraszy) adds: "Reprodukcja cyfrowa wykonana przez Fundację Nowoczesna Polska z książki udostępnionej przez Fundację im. Michała Friedmana" — digital reproduction made from a book supplied by the Michał Friedman Foundation (suggests the licence came through that foundation; the text does not say so, so I). | V (footers); I (source of the grant) | -| M12 | row i of the parquet is the i-th file in the CLARIN listing (decision record 1000_novels.yaml) | partly. This is a validated mapping, not a CLARIN-stated fact: the decision record says 990 of 1,000 texts contain a title word from the paired file name and the 10 exceptions are by the file name's author | Local decision record `repo_patch_suggestions/decisions/1000_novels.yaml` line 14. CLARIN item exposes the 1000 files in the ORIGINAL bundle (local.files.count 1000); the order of the listing was not recorded from a CLARIN page | `polish-dynaword-v2/repo_patch_suggestions/decisions/1000_novels.yaml` ; CLARIN item as in M1 | n/a (local) | "990 of 1,000 texts contain a title word from the paired file name" (decision record) — the mapping was checked by heuristic. | V (record wording); I (that the order is stable) | -| M13 | death years in `scripts/novels_rights_screen.py` are hand-curated | partly. Author years are hand-curated in the script; translator death years are not (Friedman and Hōjun are `None`, assumed in copyright) | Local script, `CUTOFF = 1955`; translator dict `T` has `'Michał Friedman': None, 'Hōjun': None`; `IN_COPYRIGHT_TRANSLATOR = {'Michał Friedman', 'Hōjun'}`; Dąbrowska entry `('Maria Dąbrowska', 1965, 'pl')` | `polish-dynaword-v2/scripts/novels_rights_screen.py` | n/a (local) | n/a | V | +| M12 | row i of the parquet is the i-th file in the CLARIN listing (decision record 1000_novels.yaml) | partly. This is a validated mapping, not a CLARIN-stated fact: the decision record says 990 of 1,000 texts contain a title word from the paired file name and the 10 exceptions are by the file name's author | The paper repository's decision record `repo_patch_suggestions/decisions/1000_novels.yaml` line 14. CLARIN item exposes the 1000 files in the ORIGINAL bundle (local.files.count 1000); the order of the listing was not recorded from a CLARIN page | the paper repository's decision records (`repo_patch_suggestions/decisions/1000_novels.yaml`); CLARIN item as in M1 | n/a (local) | "990 of 1,000 texts contain a title word from the paired file name" (decision record) — the mapping was checked by heuristic. | V (record wording); I (that the order is stable) | +| M13 | death years in `scripts/novels_rights_screen.py` are hand-curated | partly. Author years are hand-curated in the script; translator death years are not (Friedman and Hōjun are `None`, assumed in copyright) | Local script, `CUTOFF = 1955`; translator dict `T` has `'Michał Friedman': None, 'Hōjun': None`; `IN_COPYRIGHT_TRANSLATOR = {'Michał Friedman', 'Hōjun'}`; Dąbrowska entry `('Maria Dąbrowska', 1965, 'pl')` | the paper repository's `scripts/novels_rights_screen.py` | n/a (local) | n/a | V | | M14 | death year: Maria Dąbrowska d. 1965 | supported | Wikidata Q242423, property P570 (date of death) 1965-05-19 | https://www.wikidata.org/wiki/Q242423 | http://web.archive.org/web/20251115231935/https://www.wikidata.org/wiki/Q242423 | P570: "19 May 1965" (Wikidata value, preferred rank) | V | | M15 | death year: Michał Friedman | found: d. 24 May 2006 (so in copyright to the end of 2076 on a life+70 reading) | Wikidata Q11778742 (P570 2006-05-24; BnF authority 16572553r) and Polish Wikipedia "Michał Friedman". Identity link: pl.wikipedia says his last translation was a collection of Talmudic aggadot (2005); WL lists "Friedman, Michał" as translator of "Agady talmudyczne". A second Wikidata item with the same English label, Q95848015, exists and was not used | https://www.wikidata.org/wiki/Q11778742 ; https://pl.wikipedia.org/wiki/Micha%C5%82_Friedman | Q11778742 http://web.archive.org/web/20250905045440/https://www.wikidata.org/wiki/Q11778742 ; pl.wikipedia http://web.archive.org/web/20251127132228/https://pl.wikipedia.org/wiki/Micha%C5%82_Friedman | pl.wikipedia: "zm. 24 maja 2006 w Warszawie … tłumacz z języka hebrajskiego i jidysz" — died 24 May 2006 in Warsaw, translator from Hebrew and Yiddish. Same article: "Jego ostatnim tłumaczeniem był zbiór kilkuset Agad talmudycznych (2005)." — his last translation was a collection of several hundred Talmudic aggadot. | V (dates); I (the life+70 arithmetic; the statute was not fetched) | | M16 | death year: Hōjun | not found | No Wikidata item and no pl.wikipedia article found for "Hōjun" (a Zen name, apparently a pseudonym). WL translator page https://wolnelektury.pl/katalog/autor/hojun/ lists the three texts and no biography. WL `dc:date` 2013-05-21 and 2013-08-30 and `dc:source` "[dostęp: 09.09.2013]" show the translations were published online in 2013, so the translator was alive then | https://wolnelektury.pl/katalog/autor/hojun/ ; https://wolnelektury.pl/media/book/xml/dogen-kigen-umysl-drogi.xml | translator page: NONE (not looked up) ; XML as in M9 | `dc:source`: "tłum. Hōjun, [dostęp: 09.09.2013]" — translated by Hōjun, accessed 9 Sept 2013. A death year is not needed to conclude the translation is in copyright; the conclusion rests on the 2013 date (V) and on the life+70 rule (I). | V (2013 date); I (legal conclusion) | diff --git a/artifacts/rights_audit_2026-10/reports/citations/parliamentary.md b/artifacts/rights_audit_2026-10/reports/citations/parliamentary.md index 16a39539b62cc42ae883ee76fce420ddfdbb1fa0..7479b5641ccc8fb106dca19c66dddd6ebb39af5c 100644 --- a/artifacts/rights_audit_2026-10/reports/citations/parliamentary.md +++ b/artifacts/rights_audit_2026-10/reports/citations/parliamentary.md @@ -135,7 +135,7 @@ C7. Card / registry `created`: "1991-01-01, 2019-12-31" is a dataset-wide consta C8. Plenary "~14%" is a share of chars; by docs plenary is 0.46% (1,500 docs) (G8). -C9. Dataset NOTICE / card for `sejm_committee_transcripts` omit the Sejm's attribution condition and the commercial-offer bar (T2-T4, T7). Whether they apply is open (T5). +C9. Dataset NOTICE / card for `sejm_committee_transcripts` omit the Sejm's attribution condition and the commercial-offer bar (T2-T4, T7). Whether they apply is not established (T5). C10. SpeakLeash manifest has 343,797 docs; the card ships 324,622 (K5). Unexplained here. diff --git a/artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md b/artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md index 7a9af953d10f528818f06a7109573b24239a4bbf..d5c2ca12edbb17ae8b2c9e0ff0cdc39e3c778a52 100644 --- a/artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md +++ b/artifacts/rights_audit_2026-10/reports/citations/sejm_sis.md @@ -77,7 +77,7 @@ Access notes: www.sejm.gov.pl and orka.sejm.gov.pl return an F5 "Human Verificat | L10 | Art. 12 ust. 2-3: conditions set for information made available otherwise than via BIP/portal are an offer; reuse of information made available under art. 5 pkt 1 is acceptance of that offer. Art. 11 ust. 1 requires conditions to be published in BIP category "Ponowne wykorzystywanie". So a website notice can bind as an ODA offer, but only for conditions the Act allows (L5-L9). | V (text); effect is I | `sis_oda_DU2023_1524.txt:497-499, 524-531` | "stanowią ofertę zawierającą te warunki" | | L11 | The SIS commercial bar therefore does not fit the closed list in art. 15 ust. 1 and runs against arts. 14 ust. 1, 16 and 17. It is enforceable, if at all, only through rights the Kancelaria holds (art. 14 ust. 2): copyright (but see L13) or the database right (L12). Unverified by any authority; no commentary or case law read. | I | L5-L10 | n/a | | L12 | Database Act (DU 2024/1769; earlier text DU 2021/386): producer = who bears investment risk (art. 2 ust. 1 pkt 4); art. 6 ust. 1 exclusive right to extract/re-use all or a substantial part; art. 7 ust. 1 and 4: a lawful user cannot be barred from insubstantial parts for any purpose and contrary contract terms are void; art. 8 ust. 1 pkt 2: illustration/teaching/research use of a substantial part with source, if non-commercial; art. 8a: reproduction for text and data mining allowed unless the rightholder reserved otherwise (machine-readable reservation for publicly accessible online databases); art. 10: 15 years from creation. Whether the Kancelaria is a "producer" of a protected database (substantial investment) is not stated anywhere I read. The SIS commercial sentence is human-readable HTML text; no machine-readable reservation was found on api.sejm.gov.pl (C1, C2). Art. 8a covers reproduction for TDM, stored only as long as needed (ust. 3), not redistribution of a corpus. | V (statutory text); application is I | `sis_dbact_DU2024_1769.txt:45-62, 112-130, 147-175, 194`; `sis_dbact_DU2021_386.txt` | "Postanowienia umowne sprzeczne z ust. 1 i 2 są nieważne" | -| L13 | Copyright: official documents and materials are outside copyright (Copyright Act art. 4 pkt 2, Dz.U. 2025 poz. 24; earlier pass `parliamentary.md` S1, S11). Committee and plenary records are by statute "urzędowe stwierdzenie przebiegu obrad" (art. 166 ust. 1; art. 176 ust. 1). If no copyright subsists, a notice cannot create an exclusive right in the text; the SIS bar would then rest on contract/ODA offer only (L10, L11). Whether guests' statements keep their own copyright is open (earlier pass S10, S14). | V (statutes); conclusions I | `sis_regulamin_sejmu_MP2026_573.txt:2896-2898, 3074`; `parliamentary.md` S1, S10, S11 | "stanowi urzędowe stwierdzenie przebiegu obrad" | +| L13 | Copyright: official documents and materials are outside copyright (Copyright Act art. 4 pkt 2, Dz.U. 2025 poz. 24; earlier pass `parliamentary.md` S1, S11). Committee and plenary records are by statute "urzędowe stwierdzenie przebiegu obrad" (art. 166 ust. 1; art. 176 ust. 1). If no copyright subsists, a notice cannot create an exclusive right in the text; the SIS bar would then rest on contract/ODA offer only (L10, L11). Whether guests' statements keep their own copyright is not established (earlier pass S10, S14). | V (statutes); conclusions I | `sis_regulamin_sejmu_MP2026_573.txt:2896-2898, 3074`; `parliamentary.md` S1, S10, S11 | "stanowi urzędowe stwierdzenie przebiegu obrad" | | L14 | The SIS page is a unilateral website notice by the Kancelaria: not a statute, a regulation or a licence naming an ODA art. 15 ust. 3 standard open licence. Its binding force on someone who never visited www.sejm.gov.pl (API or intermediary user) is unproven. | I | W1, D4, C1 | n/a | | L15 | The attribution clause (source note, "Źródłem tym jest System Informacyjny Sejmu") fits ODA art. 15 ust. 1 pkt 1 and is the lawful kind of condition if it applies at all. The NOTICEs already name "Kancelaria Sejmu RP" and api.sejm.gov.pl (C9) but not the SIS wording. | I | L7, C9 | n/a | @@ -104,7 +104,7 @@ Overall: no source can be said to be subject to the SIS clauses ("yes"), and non Audit statement: "Sejm SIS terms require attribution and bar use in a commercial offer (reach to API/PDF unverified)." 1. "Sejm SIS terms": supported for the "System Informacyjny Sejmu" page on www.sejm.gov.pl (V, W1-W4; Sejm8 from 2016, Sejm9, Sejm10). The three-clause wording is not old: the 2015-11-17 and 2015-11-21 pages carried a permissive sentence and no commercial bar (V, H1-H2). The bar appears between 2015-11-21 and 2016-02-04 (H3, H6). -2. "require attribution": the clause is scoped to material "pobieranych ze strony www.sejm.gov.pl" and prescribes the source "System Informacyjny Sejmu" (W2, W3). Scoped to the website, so its reach to API downloads is the same open question as the bar. +2. "require attribution": the clause is scoped to material "pobieranych ze strony www.sejm.gov.pl" and prescribes the source "System Informacyjny Sejmu" (W2, W3). Scoped to the website, so its reach to API downloads is as unsettled as the bar's. 3. "bar use in a commercial offer": the text is narrower than a general commercial-use ban. It bars SIS material from being "elementem komercyjnej oferty" of an agency, TV station, portal or other entity, with iTV Sejm broadcasts as the named example (W4). It says nothing of datasets, open releases or training. Whether a free dataset is a "commercial offer" is interpretation (I). 4. "reach to API/PDF unverified": now checked. V: API docs, response headers and three sample payloads carry no terms (C1-C3); the Regulamin and Zarządzenie 3/2006 define SIS without naming the API (D1, D4, D5); the Sejm site footer lists the API and SIS as separate links (C4). I: placement of committee transcripts and interpellations in SIS by the Regulamin (D6, D7) is the only textual bridge. 5. Missing from the statement: enforceability. ODA art. 15 ust. 1 gives a closed list of conditions that does not include a commercial-use bar; arts. 14 ust. 1, 16, 17 point the same way; art. 15 ust. 2 allows commercial-use limits only for museums, libraries, archives (L5-L9, V text; conclusion I). Sui generis database rights are the only plausible hook and only if the Kancelaria holds them (L6, L12); the Database Act voids contract terms that bar insubstantial parts (art. 7 ust. 4). Nothing read says the Kancelaria is a database producer. diff --git a/artifacts/rock_pollub_pl_ontology_manifest.json b/artifacts/rock_pollub_pl_ontology_manifest.json index d792f266266039358d920f66ff9ce6af1ce78b49..b16db095037ae444572a2c34c7d9559275d2b5bc 100644 --- a/artifacts/rock_pollub_pl_ontology_manifest.json +++ b/artifacts/rock_pollub_pl_ontology_manifest.json @@ -172,7 +172,7 @@ "full collection inventory", "cross-source deduplication", "benchmark contamination check", - "legal review of third-party textual excerpts", + "rights review of third-party textual excerpts", "controlled training ablation" ], "protocols": [ diff --git a/artifacts/source_candidate_audit_v0_3.json b/artifacts/source_candidate_audit_v0_3.json index 269838f85b096ee49f9e4db663bd7b7a35340feb..45d363b1be66891a9de9f8655dd1012c1646699a 100644 --- a/artifacts/source_candidate_audit_v0_3.json +++ b/artifacts/source_candidate_audit_v0_3.json @@ -696,7 +696,7 @@ "configured_decision": "maybe_after_legal_review", "target_bucket": "web_fallback", "priority": "medium", - "notes": "CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and legal review.", + "notes": "CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and a rights review.", "gated": false, "private": false, "downloads": 1741, diff --git a/artifacts/source_candidate_audit_v0_3.md b/artifacts/source_candidate_audit_v0_3.md index f19b4167dfce672ac2c29954bc4dd35865fdb1d2..d7b699863f470cbdfae5449cb21fb5818c039807 100644 --- a/artifacts/source_candidate_audit_v0_3.md +++ b/artifacts/source_candidate_audit_v0_3.md @@ -181,7 +181,7 @@ README/license signals: - license tags: `cc-by-4.0` - language tags: `none` - gated: `False` -- notes: CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and legal review. +- notes: CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and a rights review. README/license signals: - license: cc-by-4.0 diff --git a/artifacts/source_findings.md b/artifacts/source_findings.md index b44ad183bd10ce394985951e92431f8185a9a19a..00b6bea4f813d88defd26dd21a9968cfaa10a207 100644 --- a/artifacts/source_findings.md +++ b/artifacts/source_findings.md @@ -387,7 +387,7 @@ legal basis: judgments are *materiały urzędowe* outside copyright under art. 4 pkt 2 pr. aut., redistributed by SAOS (CeON/ICM UW + Fundacja ePaństwo) through a bulk-dump API built for exactly this. -Open question before building: judgments are court-anonymised, but that should be +To check before building: judgments are court-anonymised, but that should be **verified on sampled text**, not assumed — this is the one candidate here where personal data is a live risk rather than a formality. @@ -1023,7 +1023,7 @@ say so in the datasheet instead of pretending a before/after can be regenerated. - CLARIN-PL (email reply, 2026-10-05): handle `11321/312` holds metadata only; CLARIN-PL does not distribute the texts and holds no documentation of rights in them. The record's CC BY 4.0 therefore licenses nothing at the text level. -- Per-text screen (`polish-dynaword-v2/evidence/1000_novels_rights_screen.csv`): +- Per-text screen (`evidence/1000_novels_rights_screen.csv` among the paper's ancillary files): 825 public domain by term, 12 by the retained Wolne Lektury footer, 17 in copyright, 146 unresolved. - Header credit lines beat names found elsewhere in the text. Four rows changed @@ -1176,7 +1176,7 @@ tag). 45,043 sentences / 994,922 tokens dropped. The data, the registry entry, `artifacts/common_voice_pl_ontology_manifest.json` and `artifacts/common_voice_pl_language_audit.json` were removed. No legal-note stub was kept, because nothing was released. The audit's alternative, dropping only the Europarl -sentences, was not chosen. The open question of sentence-level units is moot. +sentences, was not chosen. The question of sentence-level units is moot. **Reason** — CC0 is Common Voice's platform-level label; the sentences were never shown to be CC0. Matching the shard against Common Voice's Polish sentence files gave these @@ -1187,7 +1187,7 @@ reproduce only with NFKC + casefold + removal of all non-word characters - Europarl: the European Parliament legal notice allows reuse with source acknowledgement, and asks for the URL of the complete item when only part is reproduced. The shard carries neither, and an attribution condition cannot sit under - CC0. Mozilla's 2020 legal review of Europarl was never shown as completed. The Common + CC0. Mozilla's 2020 rights check of Europarl was never shown as completed. The Common Voice README's CC0 sentence does not cover the Europarl file. - Sentence Collector: volunteers attest these lines are public domain, but their sources are not recorded. `sentence_domain` is "unspecified" for 45,035 of 45,043 rows. @@ -1232,7 +1232,7 @@ quotation site that is the framing, not the quoted text. ## wikisource — withdrawn (2026-10-05) **Verdict** — `removed`, whole source, from main and from v0.2.6; a rebuild for a later -release is tracked separately (polish-dynaword-v2 #68). Released in v0.2.0 and in every +release is planned. Released in v0.2.0 and in every tag through v0.2.5; since 2026-10-21 no tag contains it. 632,005 documents / 801,947,427 tokens dropped. As with HPLT, the registry keeps its `release: "0.2.0"` entry with a `legal_note`. Its `traceable` text no longer claims every text is public domain, and @@ -1263,7 +1263,7 @@ screened and labelled. ## biblioteka_nauki — public-domain-label records dropped (2026-10-06) -**Verdict** — `added`, kept for v0.2.6 minus 3 records (polish-dynaword-v2#52). 42,071 → +**Verdict** — `added`, kept for v0.2.6 minus 3 records. 42,071 → 42,068 documents, 673,488,831 → 673,112,676 tokens (−376,155), 1,748,333,935 → 1,747,387,478 characters. `src/clean_biblioteka_nauki.py` filters the v0.2.5 Parquet (pinned by SHA-256): it keeps `cc-by`, `cc-by-sa` and `cc0`, drops `public-domain`, and @@ -1282,7 +1282,7 @@ by Muzeum Niepodległości w Warszawie 2019". That the authors are alive is infe **Not done here** — the licence version is still collapsed: rows say `cc-by`/`cc-by-sa`, the card and `stats.json` say 4.0. A live re-check (seed 20261006, 24 rows) found 4 of 12 `cc-by` rows under 3.0 PL or 3.0 Unported; all 12 `cc-by-sa` rows were 4.0. Fixing it needs -a per-record API re-fetch of name and version (tracked under polish-dynaword-v2#57). The +a per-record API re-fetch of name and version. The card still names SpeakLeash while `src/sources.py` says direct rebuild; `licenses.jsonl`, `index.jsonl` and `build_parquet.py` are not in the repo. 128 kept rows (88 `cc-by`, 40 `cc-by-sa`; 1.56% of tokens) contain "Wszelkie prawa zastrzeżone" or "All rights @@ -1293,7 +1293,7 @@ the label, and check the date: a 2019 work cannot be public domain by term in Po ## govpl — PAP reprints dropped (2026-10-06) -**Verdict** — `kept`, minus 188 PAP reprints (slayerlabs/polish-dynaword-v2#51). +**Verdict** — `kept`, minus 188 PAP reprints. 88,190 → 88,002 documents, 80,666,129 → 80,445,758 tokens (−220,371). `release` stays `0.2.2`. `src/clean_govpl.py` filters the pinned v0.2.5 Parquet, so ids are unchanged, and writes `govpl.attribution.jsonl` with each row's gov.pl URL, subsite, title and date. @@ -1324,7 +1324,7 @@ site, check source lines for agency copy before taking the footer at face value. ## govpl — other third-party texts dropped (2026-10-19, update to the section above) -**Verdict** — `kept`, minus 186 more rows (slayerlabs/polish-dynaword-v2#106). +**Verdict** — `kept`, minus 186 more rows. 88,002 → 87,816 documents, 217,515,240 → 216,869,817 characters (−645,423), 80,445,758 → 80,204,973 tokens (−240,785). `src/clean_govpl.py` applies `data/govpl/govpl.third-party-review.csv` (pinned by SHA-256) after the PAP rule, so ids @@ -1375,7 +1375,7 @@ of a site publishes, not only who publishes it. **Verdict** — kept, relabelled, 144 rows dropped: 72,472 → 72,328 documents, 40,011,099 → 39,890,244 tokens (baseline: main after #46, not the v0.2.5 tag's 72,771). The basis is now called an operator-declared platform licence. A question -to KPRM is pending (polish-dynaword-v2 #49); its answer may still change the +to KPRM is pending; its answer may still change the source's status. The drops are in `src/clean_samorzad_gov_pl.py` (`third_party_drop`, applied by `--refilter-release` to the pinned release): - 69 "Piątek z poezją" posts (all Powiat Sokołowski): poems credited to their @@ -1400,7 +1400,7 @@ Credits matter here: 810 documents have an `Źródło:` line, but in 405 every c only a de-identified ``, so their sources cannot be classified; 231 documents mention IMGW without the verbatim notice and were not reviewed. -References: polish-dynaword-v2 #49; +References: `rights_audit_2026-10/reports/govweb.md` L8-15; `reports/citations/samorzad_nonsa.md` S1, S8, C4; (read 2026-10-05). @@ -1424,7 +1424,7 @@ Our assessment is that the footer alone does not license the institutions' edito texts, which is the HPLT structure: a grant from someone other than the authors. Dropping slices cannot fix that, since it covers the whole source. -References: polish-dynaword-v2 #49, #103; `rights_audit_2026-10/reports/govweb.md` +References: `rights_audit_2026-10/reports/govweb.md` L8-15; `reports/citations/samorzad_nonsa.md` S1, S8. **Lesson** — a platform footer is the operator's statement, not the authors' grant. @@ -1433,7 +1433,7 @@ confirmation before admitting. ## global_voices — partner republications dropped (2026-10-06) -**Verdict** — `admitted` with 114 posts withheld (polish-dynaword-v2 #50). The source +**Verdict** — `admitted` with 114 posts withheld. The source goes from 2,040 docs / 10,073,628 chars / 3,715,020 tokens to 1,926 / 9,358,071 / 3,453,918. The posts come from 51 outlets. The new `src/clean_global_voices.py` filters the v0.2.5 Parquet and sidecar, pinned by SHA-256. `src/test_global_voices_contract.py` @@ -1510,7 +1510,7 @@ the byline. **Investigated:** 2026-10-06 **Verdict:** keep 888 of 1,000 texts as `public-domain` (was 837); drop 18 in copyright -and 94 unresolved. Tracks slayerlabs/polish-dynaword-v2#44. +and 94 unresolved. ### Verified @@ -1519,7 +1519,7 @@ and 94 unresolved. Tracks slayerlabs/polish-dynaword-v2#44. first rebuild this way. An unknown author now fails closed unless the work is listed as anonymous. - Translator death years now come from Biblioteka Narodowa / VIAF authority records, - cited in `polish-dynaword-v2/scripts/novels_rights_screen.py`. Józef Pracki d. 1882, + cited in the paper repository's `scripts/novels_rights_screen.py`. Józef Pracki d. 1882, Edmund Cięglewicz d. 1928, Stanisław Sierosławski d. 1941, Bolesław Londyński d. 1928 (22 texts), Ludwik Jenike d. 1903, Adam Stögbauer d. 1916, Kazimierz Bronikowski d. 1909, Maria Cumft-Pieńkowska d. 1920, Izydor Berman d. 1942, Konrad Drzewiecki @@ -1541,7 +1541,7 @@ and 94 unresolved. Tracks slayerlabs/polish-dynaword-v2#44. - "A. L." (`1000_novels_0734`, Schopenhauer 1901): BN records the cryptonym only. The row still rests on its Wolne Lektury footer (Inferred). -- Edition rights (Art. 99¹–99²); dedup against `wolne_lektury` / `eltec_pol` (#45). +- Edition rights (Art. 99¹–99²); dedup against `wolne_lektury` / `eltec_pol`. **Lesson:** a Wolne Lektury public-domain footer is a claim, not evidence. One of the 12 it covered had a translator who died in 1960. @@ -1558,8 +1558,8 @@ unresolved, so the release keeps 887 texts and drops 18 in copyright and 95 unre **Verdict** — kept, 63 documents dropped: 6,141 → 6,078 documents, 103,009,797 → 90,654,820 tokens (input: the v0.2.5 Parquet, unchanged since v0.2.1). Each dropped document is a novel, or one tome of a novel, that `eltec_pol` also carries. 50 ELTeC -novels are concerned, and `eltec_pol` stays whole (maintainer decision A, -polish-dynaword-v2 #72). The filter is `src/clean_wolne_lektury.py` and the pair list is +novels are concerned, and `eltec_pol` stays whole (maintainer decision). +The filter is `src/clean_wolne_lektury.py` and the pair list is `data/wolne_lektury/wolne_lektury.eltec_pairs.tsv`. - Score: the share of a WL document's 5-word shingles found in the ELTeC novel that shares the most with it. Tokenisation follows `near_dedup`, and a trailing WL footer is @@ -1585,10 +1585,9 @@ polish-dynaword-v2 #72). The filter is `src/clean_wolne_lektury.py` and the pair **Reason** — 51 of the 100 ELTeC novels duplicate WL texts. ELTeC's CC BY 4.0 licence is the clean one (`rights_audit_2026-10/reports/literary.md`: eltec_pol CLEAN). WL -licence labels are not touched here; #57 relabels them per row. +licence labels are not touched here; the v0.2.6 rights audit relabels them per row. -References: polish-dynaword-v2 #72 (decision), #45 (method); -`rights_audit_2026-10/literary/eltec_meta.tsv` (ELTeC file names and titles). +References: `rights_audit_2026-10/literary/eltec_meta.tsv` (ELTeC file names and titles). **Lesson** — Jaccard near-dedup misses a novel that one source splits into tomes. Measure containment from the split side. @@ -1599,7 +1598,7 @@ Measure containment from the split side. characters, 51,981,548 → 10,759,728 tokens (input: Hub PR 65; references: main at 563eea8, after Hub PR 67). Each dropped text is already in `wolne_lektury` (629) or `eltec_pol` (37); none is in both, since Hub PR 67 dropped the WL copies of ELTeC novels -(before it, 35 of the 37 were in both). Maintainer decision on polish-dynaword-v2 #45: +(before it, 35 of the 37 were in both). Maintainer decision: drop the 1000_novels copy and keep both other sources whole. The filter is the dedup step of `src/clean_1000_novels.py`, run after the rights screen. Covers and matched ids for all 887 screened texts are in `data/1000_novels/1000_novels.dedup.tsv`. @@ -1636,7 +1635,7 @@ for all 887 screened texts are in `data/1000_novels/1000_novels.dedup.tsv`. translation; WL has Boy's; 0.0388), Grabiński's *Na wzgórzu róż* (`0239`, 0.0043), Kraszewski's *Dziad i baba* (`0359`, a prose tale; WL has the poem; 0.0079) and Przybyszewski's *Nad morzem* (`0690`; WL has a 354-word piece; 0.0303). -- Hub PR 67 (#72) merged first. Re-pinned to its wolne_lektury Parquet (SHA-256 +- Hub PR 67 merged first. Re-pinned to its wolne_lektury Parquet (SHA-256 `f308d492…`, was `5833c25d…`) and rebuilt: the same 666 drops and the same Parquet. The split went from WL 664, ELTeC 37, both 35 to WL 629, ELTeC 37, both 0; 216 WL covers change. The 5 texts hand-checked between 0.3 and 0.7 and the 10 sampled drops stay WL @@ -1645,8 +1644,6 @@ for all 887 screened texts are in `data/1000_novels/1000_novels.dedup.tsv`. **Reason** — 666 of the 887 public-domain texts, 41.2M tokens, are copies of documents that `wolne_lektury` or `eltec_pol` already release. -References: polish-dynaword-v2 #45 (measurement and decision), #72 (wolne_lektury side). - **Lesson** — score against the union of a source's documents. Wolne Lektury splits novels into tomes, and no single tome need hold half of the text. @@ -1668,8 +1665,7 @@ the 221. A faithful copy of a public-domain text creates no new rights; the open question is what else the file holds. Our assessment is that this is too high a risk without the edition, and that none of the 221 can be confirmed from the metadata we have. -References: polish-dynaword-v2 #104, #105; #43, #44 (rights screen), #45 (dedup); -`polish-dynaword-v2/evidence/1000_novels_rights_screen.csv`. +References: `evidence/1000_novels_rights_screen.csv` among the paper's ancillary files. **Lesson** — a public-domain author is not a public-domain file. Record the edition a text follows when it is admitted, or the text cannot be cleared later. @@ -1677,8 +1673,7 @@ text follows when it is admitted, or the text cannot be cleared later. ## wikipedia — Polish Wikipedia (rebuild from the official dump) **Investigated** — 2026-10-05 (October 2026 rights audit, `artifacts/rights_audit_2026-10/reports/wikis_ugc.md` -L44-46, `reports/citations.md` L17, `reports/citations/wikimedia.md` section 5; -slayerlabs/polish-dynaword-v2#69). +L44-46, `reports/citations.md` L17, `reports/citations/wikimedia.md` section 5). **Verdict** — `added`, rebuilt for v0.2.6 from the official Wikimedia dump; the SpeakLeash `plwiki` intermediary is removed. 1,468,656 documents / 3,140,841,847 characters / @@ -1720,7 +1715,7 @@ decision. Per page in `data/wikipedia/wikipedia.copyvio-sample.jsonl`. compare literal ids against the old `data/wikipedia` (revision `fe44303`, 1,171,897 rows) and are stale after the id change. -**Blockers** — none to merge. Open: the two pasted pages; the time of day of the 4.0 switch; +**Blockers** — none to merge. Known limits: the two pasted pages; the time of day of the 4.0 switch; GFDL-era text; `{{ek}}` pages kept; appendix headings left in 56.4% of documents (2.96% of characters from the first such heading on) and whitespace-only lines in 11.9%; NERGAL pass before release. @@ -1772,9 +1767,9 @@ the "speech-level provenance" line in the card was wrong. That is now a test in the live API (the audit asked for 20 rows to be spot-checked; not done here). - Whether the www.sejm.gov.pl terms reach API output; the API documents no licence. - (Fixed in a follow-up commit: the card's "Temporal novelty" paragraph named - `parlamint_pl` as registered; it left the registry in #54.) + `parlamint_pl` as registered; it left the registry.) -References: polish-dynaword-v2 #57; `rights_audit_2026-10/REVIEW.html` `#sejm_api`; +References: `rights_audit_2026-10/REVIEW.html` `#sejm_api`; `reports/citations/sejm_sis.md`. **Lesson** — a card line that says "speech-level" must be backed by a test on the @@ -1808,8 +1803,8 @@ exist. Pin the bytes when the source is first read. ## nonsa — third-party quotations and `` pages dropped (2026-10-06) -**Verdict** — kept as `release: None` (admission waits for the NERGAL pass, -polish-dynaword-v2 #60), 612 documents dropped: 12,304 → 11,692 documents, +**Verdict** — kept as `release: None` (admission waits for the NERGAL pass), +612 documents dropped: 12,304 → 11,692 documents, 16,883,883 → 15,439,683 tokens, 44,279,318 → 40,567,986 characters. Rebuilt from the pinned wikiteam3 dump (`nonsa.pl-20251009-history.xml.zst`, sha1 99ed6dc7…, verified by the script) with `src/build_nonsa_pl.py`; the retained rows equal the old shard @@ -1845,7 +1840,7 @@ and wikisource, withdrawn 2026-10-05). deletions), and the rows are still in the shard. - No `ns` column in the parquet; the namespace is in `nonsa.attribution.jsonl`. -References: polish-dynaword-v2 #60; `rights_audit_2026-10/REVIEW.html` (nonsa); +References: `rights_audit_2026-10/REVIEW.html` (nonsa); `rights_audit_2026-10/wikis/nonsa_ns.json`; `reports/citations/samorzad_nonsa.md`. Licence read-only 2026-10-06: (revid 1850937, 2026-03-02) states Creative Commons Attribution-Share Alike 3.0, and @@ -1900,14 +1895,14 @@ writing the filter, and say which drops are confirmed. **Verdict** — held (`release: None`). 118,902 → 32,460 documents, 135,072,403 → 30,766,807 tokens, 361,275,710 → 81,385,172 characters; parquet sha256 `8fad4b4eab069fb8a652f9dc6a2e7dbc8f49d1e1b6bfae0decd2b318d160a20a`. Admission waits for -the NERGAL pass (#60). Registry, card and NOTICE now say "Sejm API data via contributor +the NERGAL pass. Registry, card and NOTICE now say "Sejm API data via contributor snapshot" and that `source_url` is a day-level listing, not a per-speech URL. **Reason** — the source overlaps `parliamentary` (0.2.0) and `sejm_api` (0.2.5). `src/clean_sejm_api_2011_2022.py` drops a speech when one document of a pinned reference Parquet holds at least half of its 5-word shingles (containment >= 0.5; exact, no MinHash). 86,442 speeches (73%) are dropped, 86,272 of them dated 2011-2019. By -reference set, with the maintainer's two #54 outcomes: +reference set, with the maintainer's two outcomes for `parliamentary`: | Reference set | Dropped | |---|---:| @@ -1916,8 +1911,8 @@ reference set, with the maintainer's two #54 outcomes: | `sejm_api` alone (outcome A, `parliamentary` withdrawn) | 216 | | `sejm_api` + `parliamentary` without its committee slice (outcome B) | 48,833 | -Per-speech scores are in `sejm_api_2011_2022.decisions.jsonl`. If #54 changes -`parliamentary`, re-pin `REFERENCES` and rerun the script on the restored inputs. +Per-speech scores are in `sejm_api_2011_2022.decisions.jsonl`. If +`parliamentary` changes, re-pin `REFERENCES` and rerun the script on the restored inputs. Hand check of 20 pairs at 0.3-0.7: 14 carry the speech's own wording in the reference (4 of 10 under 0.5, 10 of 10 from 0.5); the 6 that do not are dated 2020 or later. @@ -1938,7 +1933,7 @@ Hand check of 20 pairs at 0.3-0.7: 14 carry the speech's own wording in the refe - `src/fetch_sejm_api_2011_2022.py` is unchanged because the ontology manifest pins its hash; rebuilding with it brings back the old wording and the 118,902 rows. -References: polish-dynaword-v2 #57, #54, #60; `rights_audit_2026-10/REVIEW.html` +References: `rights_audit_2026-10/REVIEW.html` `#sejm_api_2011_2022`. **Lesson** — "contained in a released source" needs a size floor and a date check: a @@ -1946,8 +1941,8 @@ containment score of one stock sentence says nothing about reuse. ## ted_pl: two licence bases cited, text rebuilt from the TED API with fixed PII patterns (2026-10-06) -Audit actions from slayerlabs/polish-dynaword-v2#57; stays `release: None` until the -NERGAL pass (#60). +Audit actions from the v0.2.6 rights audit; stays `release: None` until the +NERGAL pass. ### Verified @@ -1989,7 +1984,7 @@ download recipe runnable: a rescrub of already-redacted text cannot undo a false ## wikinews — Polish Wikinews (rebuild from the official dump, 2.5/4.0 labels) **Investigated** — 2026-10-06 (October 2026 rights audit, `artifacts/rights_audit_2026-10/reports/wikis_ugc.md`, -`reports/citations.md` L17-26; slayerlabs/polish-dynaword-v2#57). +`reports/citations.md` L17-26). **Verdict** — `kept`, relabelled; rebuilt from the official dump so the label follows the page's last revision. Documents, characters and tokens are unchanged from v0.2.5 @@ -2015,19 +2010,19 @@ Phabricator T381421, the 2.5 legal code (§4(a): no later-version clause), pl.wi Cutoff is 2024-12-16 00:00 UTC for the whole day: 6 documents were last edited that day, 2 of them before 08:32:24 UTC and so strictly under 2.5. Inferred: because CC BY 2.5 has no later-version clause, the `CC-BY-4.0` label for post-switch pages rests on the site's terms -page alone. This is an open question, separate from E1 (wiki 3.0/4.0 labelling, -v2#56), whose answer is still pending. The terms page also says articles created before +page alone. +The terms page also says articles created before 2005-09-25 are public domain; 0 released documents were last edited before that date, so the clause does not change a label here. Evidence in `data/wikinews/wikinews.license-evidence.json`. -**Blockers** — none to merge. Open: the 2.5 → 4.0 label and E1; the 2 boundary +**Blockers** — none to merge. Known limits: the 2.5 → 4.0 label; the 2 boundary documents; copyright pastes in news text (the audit's 100-document press-copying sample was not run); the markup residue above. ## eurlex — relabelled to the EU reuse policy, 92 IASB documents dropped (2026-10-06) -**Investigated** — 2026-10-06 (October 2026 rights audit, polish-dynaword-v2 #57; open -question v2#56 B5; `rights_audit_2026-10/reports/citations.md`). +**Investigated** — 2026-10-06 (October 2026 rights audit, +`rights_audit_2026-10/reports/citations.md`). **Verdict** — kept and relabelled, the 92 IASB-notice documents dropped (maintainer decision 2026-10-06): 243,060 -> 242,968 documents, 5,976,949,249 -> 5,902,889,135 @@ -2077,7 +2072,7 @@ Ids are in `data/eurlex/eurlex.third-party-scan.json`. **Not established** — SpeakLeash's terms for `eurlex_corpus`; whether the ECB, EESC, Council, Parliament and the Court of Justice publish reuse terms of their own; the -Publications Office's position on non-Commission documents (open question, v2#56 B5). +Publications Office's position on non-Commission documents. **Lesson** — a reuse policy is not a Creative Commons licence: copy the clause, not the label, and read what the grant covers before using its name. @@ -2085,7 +2080,7 @@ label, and read what the grant covers before using its name. ## wikibooks — Polish Wikibooks (rebuild from the official dump, 3.0/4.0 labels, GFDL review) **Investigated** — 2026-10-06 (October 2026 rights audit, `artifacts/rights_audit_2026-10/reports/wikis_ugc.md`, -`reports/citations.md` L17-26; slayerlabs/polish-dynaword-v2#57). +`reports/citations.md` L17-26). **Verdict** — `kept`, relabelled; rebuilt from the official dump so the label follows the page's last revision. Documents, characters and tokens are unchanged from v0.2.5 @@ -2107,7 +2102,7 @@ row (`wikibooks.attribution.jsonl`). **License evidence** — as for wikivoyage: Terms of Use oldid 554823 / 98524, the 3.0 and 4.0 legal code, pl.wikibooks `rightsinfo` (BY-SA 4.0), read 2026-10-06. Cutoff 2023-06-07 00:00 -UTC; 2 documents were last edited that day. E1 (v2#56) is still pending. +UTC; 2 documents were last edited that day. **GFDL** — 435 documents (259,065 tokens, 1.7%) were last edited before 2009-06-15 (the start of CC BY-SA on the Wikimedia sites, per the audit); they carry `CC-BY-SA-3.0`, counted @@ -2120,9 +2115,9 @@ own text is under the GNU FDL (42,834 tokens), 10 name a GFDL-licensed upstream 13 link the licence page only, 13 discuss licences, 2 match by accident. The largest is `wikibooks_30538` (35,619 tokens). No label and no drop follows from the review; the 17 own-text and upstream documents (49,737 tokens) are the ones where a GFDL-only grant could -matter, and keeping them is left to the maintainers; it stays an open question. +matter, and keeping them is left to the maintainers. -**Blockers** — none to merge. Open: E1; the 17 documents above. Two pages seen during the +**Blockers** — none to merge. Known limits: the 17 documents above. Two pages seen during the review and not checked: `wikibooks_27716` (145 tokens) lists third-party course sources with their licences, among them CC-BY-NC 3.0 and "All Rights Reserved"; `wikibooks_27071` (1,287 tokens) says it was moved in 2013 from the "Wolne podręczniki" portal with its creators' @@ -2131,7 +2126,7 @@ consent and does not state the original licence. The markup residue above also s ## wikibooks — 46 pages withheld (update to the section above) **Investigated** — 2026-10-06 (copyright sample and licence trace of the follow-up, then the -maintainer's decision; slayerlabs/polish-dynaword-v2#57). +maintainer's decision). **Verdict** — `kept`, 46 pages withheld. Maintainer approval 2026-10-06, relayed by the coordinator. The numbers in the section above (9,112 documents, 38,892,589 characters, @@ -2162,17 +2157,17 @@ boundary day and the 435 GFDL-era documents are unchanged. None of the 46 is amo documents of `wikibooks.gfdl-review.json`; only its `source_tokens` (15,313,229) and the share in its summary (0.80%) were regenerated. -**Blockers** — none. Open: the copyright sample read 79 of the 9,112 pages and 90 more by one +**Blockers** — none. Known limits: the copyright sample read 79 of the 9,112 pages and 90 more by one contributor; `wikibooks_27716` (145 tokens, lists CC-BY-NC and all-rights-reserved sources by name; kept) and `wikibooks_27071` (1,287 tokens, original licence not stated; kept); the 25 released pages that the "Od lamera do hakera" hub links in other books were not -traced; E1 (v2#56); the 2 boundary documents; the 17 own-text and upstream GFDL documents; +traced; the 2 boundary documents; the 17 own-text and upstream GFDL documents; the markup residue. ## wikivoyage — Polish Wikivoyage (rebuild from the official dump, 3.0/4.0 labels) **Investigated** — 2026-10-06 (October 2026 rights audit, `artifacts/rights_audit_2026-10/reports/wikis_ugc.md`, -`reports/citations.md` L17-26; slayerlabs/polish-dynaword-v2#57). +`reports/citations.md` L17-26). **Verdict** — `kept`, relabelled; rebuilt from the official dump so the label follows the page's last revision. Documents, characters and tokens are unchanged from v0.2.5 @@ -2198,17 +2193,17 @@ edited after the switch may carry earlier 3.0 text under 4.0 (3.0 §4(b)(ii)). T 2023-06-07 00:00 UTC, not the audit's "06-08 if time of day unknown": 06-08 would put that day's 4.0 edits under 3.0, which 4.0 §3(b)(1) does not allow; 6 documents were last edited on 2023-06-07 and may carry 3.0 text under a 4.0 label. The footer switch date was not checked. -The answer to E1 (v2#56) is still pending. GFDL era (last edit before 2009-06-15): 0 +GFDL era (last edit before 2009-06-15): 0 documents. Evidence in `data/wikivoyage/wikivoyage.license-evidence.json`. -**Blockers** — none to merge. Open: E1; the 6 boundary documents; copyright pastes (travel +**Blockers** — none to merge. Known limits: the 6 boundary documents; copyright pastes (travel text copied from guidebooks and tourist sites was not sampled for Wikivoyage); the markup residue above. ## wikivoyage — two pages withheld (update to the section above) **Investigated** — 2026-10-06 (copyright sample of the follow-up, then the maintainer's -decision; slayerlabs/polish-dynaword-v2#57). +decision). **Verdict** — `kept`, two pages withheld: `wikivoyage_1219` (Barcelona/Sagrada Família) and `wikivoyage_910` (Królewiec). Maintainer approval 2026-10-06, relayed by the coordinator. The @@ -2232,16 +2227,16 @@ pages skipped → 13,652 written → 9 non-Polish dropped → 13,643. Diff again parquet: only the two ids removed, every other row identical; the 6 documents of the boundary day and the 0 GFDL-era documents are unchanged. -**Blockers** — none. Open: the copyright sample read 80 of the 13,645 pages (40 per label), +**Blockers** — none. Known limits: the copyright sample read 80 of the 13,645 pages (40 per label), so 13,565 were not checked; two further pages stay in the release with the source's direction -unresolved (`wikivoyage_2477`, `wikivoyage_989`); E1 (v2#56); the 6 boundary documents; the +unresolved (`wikivoyage_2477`, `wikivoyage_989`); the 6 boundary documents; the markup residue. ## wikivoyage — markup residue removed, licence labels by contribution date (update to the sections above) -**Investigated** — 2026-10-17/18 (slayerlabs/polish-dynaword-v2#110, option B: label each record -by when its text was contributed, not by the page's last revision; slayerlabs/polish-dynaword-v2#116, -option A: remove category lines and file-link options first, then label the cleaned text). +**Investigated** — 2026-10-17/18 (the labels by contribution: label each record +by when its text was contributed, not by the page's last revision; the markup cleanup: +remove category lines and file-link options first, then label the cleaned text). **Verdict** — `kept`, text cleaned and relabelled: 13,640 documents, 44,719,971 characters, 16,959,180 tokens (was 13,643 / 45,176,480 / 17,125,240). Labels per record: `CC-BY-SA-3.0` @@ -2251,7 +2246,7 @@ option A: remove category lines and file-link options first, then label the clea and `pre_cutoff_revid`; the build record holds the stub dump, the count per basis and the cleanup; the card explains each basis. -**Residue cleanup (v2#116)** — `strip` is now v0.2.5's `strip_code` followed by `drop_residue`, +**Residue cleanup** — `strip` is now v0.2.5's `strip_code` followed by `drop_residue`, which removes `Kategoria:...` lines, bare file titles and file-link options (`thumb|250px|...`) and keeps captions. `fetch_wikimedia.py retext` applied it to the committed text: 13,171 rows changed, 456,509 characters and 166,060 tokens removed. Three pages fell under 200 characters @@ -2284,7 +2279,7 @@ rest. Rows labelled both still hold 58% of the tokens. **License evidence** — as in the sections above. Contributors' text carries the licence in force when it was contributed, so a page with text from both sides of the cutoff carries both. -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - Any added word makes a page 3.0 and 4.0; there is no threshold. - Text moved or merged from an older page into a page created after the cutoff is labelled 4.0 alone. @@ -2294,12 +2289,12 @@ when it was contributed, so a page with text from both sides of the cutoff carri - The comparison is on converted text, so words that `strip` drops (templates) are not compared. - The residue `drop_residue` leaves (see above) is compared like any other words. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## wikibooks — markup residue removed, licence labels by contribution date, one page withheld (update to the sections above) -**Investigated** — 2026-10-17/18 (slayerlabs/polish-dynaword-v2#110 option B and -slayerlabs/polish-dynaword-v2#116 option A, as for wikivoyage above). +**Investigated** — 2026-10-17/18 (the labels by contribution and +the markup cleanup, as for wikivoyage above). **Verdict** — `kept`, one more page withheld, text cleaned and relabelled: 9,048 documents, 38,064,404 characters, 15,261,326 tokens (was 9,066 / 38,195,523 / 15,313,229). Labels per @@ -2317,7 +2312,7 @@ in `DROPPED_PAGES["wikibooks"]` (47 pages now). `fetch_wikimedia.py retext` now listed after the build, as `prepare` would skip it, before it measures the cleanup; asked to withhold a page from a release that is already clean, it refuses. -**Residue cleanup (v2#116)** — as for wikivoyage. Of 9,065 documents (38,194,654 characters, +**Residue cleanup** — as for wikivoyage. Of 9,065 documents (38,194,654 characters, 15,312,861 tokens) left after the withholding, 2,087 changed: 130,250 characters and 51,535 tokens removed. 17 pages fell under 200 characters and were dropped (`wikibooks_1532`, `10162`, `14576`, `18215`, `21429`, `22859`, `23016`, `23110`, `23117`, `24149`, `24839`, `55101`, @@ -2372,7 +2367,7 @@ rerun of retext, relabel and datasheet is byte-identical. 69,072). Tokens and labels are updated and an `updated` note added; 39 of the 45 are 3.0 and 6 both. `wikibooks_3083`, whose page states CC BY-SA 3.0, was 4.0 by its last edit and is now 3.0. -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - Any added word makes a page 3.0 and 4.0; there is no threshold. - Text moved or merged from an older page into a page created after the cutoff is labelled 4.0 alone. @@ -2384,13 +2379,13 @@ both. `wikibooks_3083`, whose page states CC BY-SA 3.0, was 4.0 by its last edit - The 5 pages deleted as spam or duplicates and `wikibooks_20267`, now in a user's sandbox, stay in the release. - As in the sections above: the copyright sample read 79 of the pages and 90 more by one - contributor; E1 (v2#56); the 17 own-text and upstream GFDL documents. + contributor; the 17 own-text and upstream GFDL documents. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## wikipedia — licence labels by contribution date, seven pages withheld (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#110 option B, as for wikivoyage and +**Investigated** — 2026-10-18 (the labels by contribution, as for wikivoyage and wikibooks above; the deletion logs of released pages missing from the 2026-10-01 stub dump). **Verdict** — `kept`, seven more pages withheld, relabelled: 1,468,647 documents, 3,140,823,417 @@ -2415,11 +2410,11 @@ checked. They are in `COPIED_PAGES` (9 pages now) with the day and the log reaso `prepare` would, and adds it to the copyright sample's `rows_dropped_since`, so the sample's draw still reproduces; it refuses to run after `relabel`. -**No residue cleanup (v2#116)** — `strip_article` already drops category and file links, so +**No residue cleanup** — `strip_article` already drops category and file links, so `drop_residue` is not applied. Run on this release it would change 426 documents and remove 477,849 characters, nearly all content: flattened medal tables whose line starts `Kategoria:Złoto:Srebro:Brąz:` and goes on with the results (`wikipedia_1515505`), and field -labels such as `Kategoria: olej nieschnący` (`wikipedia_127177`). v2#116 read the 410 rows with a +labels such as `Kategoria: olej nieschnący` (`wikipedia_127177`). The 410 rows with a `Kategoria:` line as medal-table headers; most are, but 14 documents hold a category link on a line of its own (16 lines, e.g. `wikipedia_103834` `Kategoria:Wielcy marszałkowie zakonu krzyżackiego`), left by malformed links. Also left: 13 documents with an unclosed file link @@ -2458,7 +2453,7 @@ shipped revision). They are kept: their deletions are a quality call, not a righ deleted for copyright on 2017-05-23 and recreated by 2017-07-14; the released text was not compared with the deleted one. Counts per class are in the evidence's `deleted_since_dump`. -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - Any added word makes a page 3.0 and 4.0; there is no threshold. - Text moved or merged from an older page into a page created after the cutoff is labelled 4.0 alone. @@ -2471,12 +2466,12 @@ compared with the deleted one. Counts per class are in the evidence's `deleted_s - As in the sections above: pastes beyond the copyright sample, GFDL-era text, appendix headings, the NERGAL pass. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## wikinews — markup residue removed, licence labels by contribution date, switch window (update to the section above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#110 option B and -slayerlabs/polish-dynaword-v2#116 option A, as for wikivoyage above; the hours of the licence +**Investigated** — 2026-10-18 (the labels by contribution and +the markup cleanup, as for wikivoyage above; the hours of the licence switch). **Verdict** — `kept`, text cleaned and relabelled: 23,573 documents, 29,400,544 characters, @@ -2487,7 +2482,7 @@ documents (9,347,380 tokens, 85.2%), `CC-BY-2.5 AND CC-BY-4.0` 113 (81,128, 0.7% still released, 2,654 (1,120,223 tokens) are now 2.5, 113 both and 3,637 stay 4.0. Each sidecar line gains `license_basis` and `pre_cutoff_revid`, and `license_flags` where a flag below applies. -**Residue cleanup (v2#116)** — as for wikivoyage. 24,204 of the 24,386 rows changed: 3,124,102 +**Residue cleanup** — as for wikivoyage. 24,204 of the 24,386 rows changed: 3,124,102 characters and 1,171,145 tokens removed, 2,769,263 of the characters (89%) in category lines. 812 pages fell under 200 characters and were dropped (26 of 54-99 characters, 284 of 100-149, 502 of 150-199), short news items such as `wikinews_1836` "2005-04-05: Premier Wielkiej Brytanii ogłosił termin wyborów" (124). One more @@ -2535,10 +2530,10 @@ date for the clause. The statement is not relied on: they are labelled by contri 2.5, 13 both). **License evidence** — as in the section above, plus the notice revisions. `CC-BY-4.0` now covers -only text saved after the edit notice named 4.0; 2.5 text keeps 2.5, so the open question above (a +only text saved after the edit notice named 4.0; 2.5 text keeps 2.5, so the point above (a 4.0 label on 2.5 text resting on the terms page alone) no longer arises. -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - The window rule (both for text saved between 08:07:33 and 23:19:21 UTC) is our assessment; if it changes, the 25 window rows are relabelled. - Any added word makes a page 2.5 and 4.0; there is no threshold. @@ -2552,12 +2547,12 @@ only text saved after the edit notice named 4.0; 2.5 text keeps 2.5, so the open - The sidecar's attribution fields (permalink, history link, licence URLs, a note on the conversion) are a separate change. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## wiktionary_examples — licence labels by contribution date (update to the section above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#110, option B: label each example by -when it was contributed, not by the page's last revision). v2#116 does not touch this source: rows +**Investigated** — 2026-10-18 (the labels by contribution: label each example by +when it was contributed, not by the page's last revision). The markup cleanup does not touch this source: rows are the `{{przykłady}}` lines, and the shipped text has no category lines or file-link options. **Verdict** — `kept`, relabelled; text, ids and counts unchanged (1,818 documents, 534,521 @@ -2599,14 +2594,14 @@ cited lines. A copy without a marker cannot be detected, like any unmarked quota **License evidence** — as in the section above. The 3.0 → 4.0 relabel of pre-2023 text, read from 3.0 §4(b), is gone: each example keeps the licence it was contributed under. -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - The cutoff is midnight UTC; an example added on 2023-06-07 counts as 4.0. No shipped page was created that day; the latest pre-cutoff revision compared is from 2023-06-06 21:55 UTC. - An example moved from another page after the cutoff is labelled 4.0. - Words are split on whitespace, so a comma removed from a word counts as a changed word (both), e.g. `wiktionary_examples_211962`. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## `studia_bas`: licence version resolved to CC BY 3.0 PL @@ -2644,7 +2639,7 @@ GET returned it on 2026-10-06. Retry that before routing a check to a human. ## biblioteka_nauki — licence versions restored from the API (2026-10-06) -**Verdict** — `added`, kept for v0.2.6 minus 83 rows (polish-dynaword-v2#57; maintainer approval +**Verdict** — `added`, kept for v0.2.6 minus 83 rows (maintainer approval 2026-10-06). 42,068 → 41,985 documents, 673,112,676 → 669,909,430 tokens (−3,203,246), 1,747,387,478 → 1,739,004,913 characters. The `license` column now carries the version the API gives per record: CC-BY-4.0 17,768, CC-BY-3.0-PL 8,098, CC-BY-3.0 2,413, CC-BY-2.0 1, CC-BY-SA-4.0 @@ -2684,7 +2679,7 @@ was assembled is not re-verified. ## sejm_api — "Przebieg posiedzenia" trailers cut, appended statements split out (2026-10-06) -**Finding** (slayerlabs/polish-dynaword-v2#57) — the PiotrSty snapshot appends to 34,980 +**Finding** (v0.2.6 rights audit) — the PiotrSty snapshot appends to 34,980 of 38,812 speeches the header of a later statement of the same sitting day ("Przebieg posiedzenia {name}: {term}. kadencja, {n}. posiedzenie, {d}. dzień - {label} … ({dd-mm-yyyy})"), and after 2,466 of those headers that statement's text. The trailers @@ -2723,7 +2718,7 @@ in 90% of rows hid in plain sight because each row still began with the right sp ## sejm_api_2011_2022 — trailers cut before the cross-source dedup (2026-10-06) -**Finding** (slayerlabs/polish-dynaword-v2#57) — the same "Przebieg posiedzenia" trailers +**Finding** (v0.2.6 rights audit) — the same "Przebieg posiedzenia" trailers as in `sejm_api` (section above) are in 105,920 of the 118,902 pre-dedup speeches: 97,723,744 characters. Hub PR 76 only stripped them from the shingled text when it scored containment; the published rows kept them. @@ -2747,7 +2742,7 @@ itself dropped. Kept 2011-2019 rows go from 1,697 to 1,281. Parquet sha256 ## sejm_interpellations — licence evidence and SIS caveat (2026-10-06) -**Finding** (slayerlabs/polish-dynaword-v2#57) — the source had no license-evidence.json. The +**Finding** (v0.2.6 rights audit) — the source had no license-evidence.json. The Regulamin Sejmu places interpellations, replies and written questions in the System Informacyjny Sejmu (arts. 192 ust. 7, 193 ust. 2, 195 ust. 2), whose terms page asks for a source note and bars SIS material from commercial offers; nothing on api.sejm.gov.pl says its output is part of SIS. @@ -2760,10 +2755,10 @@ hashes, the SIS wording (Wayback 2026-06-03), the placement articles, the readin commercial clause is not an Open Data Act art. 15 ust. 1 condition, and the third-party sample. The datasheet states the caveats and gives the requested source note; the registry `added` is 2026-09-05 and the entry has a `legal_note`. The Parquet rows still carry the global `ADDED` -(2026-07-19) until `build_dynaword.py` stamps the registry date (v2#80). +(2026-07-19) until `build_dynaword.py` stamps the registry date (the v0.2.6 card and registry edits). **Not established** — the reading of the SIS terms (an inference, not confirmed); the SIS page on the fetch date (bot -challenge); the Kancelaria Sejmu BIP reuse page; personal names (NERGAL, v2#60). +challenge); the Kancelaria Sejmu BIP reuse page; personal names (NERGAL). ## sejm_committee_transcripts — only statements by official speakers (2026-10-07) @@ -2788,7 +2783,7 @@ and by `src/clean_sejm_committee_transcripts.py`, which re-filters the pinned pr stored turn is cut at each label line (piece 0 keeps the id and author, later pieces get the label as author and the id `_`), page blocks (page number + stenographer initials, `Pełny Zapis Przebiegu Posiedzenia:` title, `Komisji ... (Nr N)`) are removed as a unit with a word hyphenated -across one rejoined (v2#95), and every piece is classified. 653,411 turns → 740,018 pieces → +across one rejoined, and every piece is classified. 653,411 turns → 740,018 pieces → 613,722 records (727,570 raw + 86,607 split out; joint-sitting duplicates 74,117, exact duplicates 77, under 15 characters 16,080, not official 110,181), 443,928,915 → 298,555,500 characters, 166,310,754 → 112,003,155 tokens; the 110,181 dropped pieces are 127,167,730 characters (28.6% @@ -2849,7 +2844,7 @@ role-anchored labels. Cut at everything that looks like a label, then classify. ## sejm_api_2011_2022 — dedup re-pinned to the PPC TEI `parliamentary` (2026-10-08) -**Finding** (slayerlabs/polish-dynaword-v2#54, option 5A) — the cross-source dedup scored +**Finding** — the cross-source dedup scored against the v0.2.5 `parliamentary`, which Hub PR 108 replaces with a rebuild from the PPC TEI dump under a speaker allowlist. The rebuild keeps Sejm plenary text up to term 8 but drops speakers the allowlist does not match, so a dedup against it keeps rows the old shard dropped. @@ -2863,11 +2858,11 @@ heuristic. The duplicate outcome key `sejm_api_only` (same count as `only_sejm_a speeches 0.50-0.71 contained in a 2019-2023 Senate document) and 1,514 rows (7,126,113 characters) are kept again: 573 (4,908,128) whose speaker the allowlist drops (citizens' initiative representatives, the President's Chancellery, the Prosecutor General's office, agency -heads; slayerlabs/polish-dynaword-v2#99), 470 (1,084,769) not in the dump (435 of them +heads), 470 (1,084,769) not in the dump (435 of them "(tekst niewygłoszony)"), 357 (911,196) mostly in kept text but under 0.5 (315 lose mainly floor interjections), 114 (222,020) to other rebuild drops. The 23 speeches of MP Piotr van der Coghen stay dropped: the rebuild's name check keeps a member's name with a particle (decision -1A of 2026-10-08). Parquet sha256 `f6ec51dfd87b47b93905adcdd8f8dfb3f8449d6319df4153526c900bf258062f`. +of 2026-10-08). Parquet sha256 `f6ec51dfd87b47b93905adcdd8f8dfb3f8449d6319df4153526c900bf258062f`. **Re-pin (2026-10-08)** — Hub PR 111 repaired Windows-1250 misdecoding in `parliamentary` and dropped 18,612 exact copies, so its parquet is `07903953…`. `REFERENCES` is re-pinned to it and @@ -2877,10 +2872,9 @@ containment of a speech in one document, and the encoding repair changed no scor decisions (every speech scoring 0.3 or more, byte-identical). **Not established** — the hand checks in the card still date from Hub PR 76. The 573 rows whose -speaker no allowlist rule matches stay here until the allowlist is applied to this source -(slayerlabs/polish-dynaword-v2#99). +speaker no allowlist rule matches stay here until the allowlist is applied to this source. -**Update (2026-10-19)** — the allowlist is applied (slayerlabs/polish-dynaword-v2#99, section "sejm_api, +**Update (2026-10-19)** — the allowlist is applied (section "sejm_api, sejm_api_2011_2022 — speaker allowlist" below): the dedup against the re-pinned `sejm_api` leaves 34,601 rows (the 34,598 above and 3 more), 671 are dropped by speaker and 33,930 are published. The counts above are those of the dedup alone, against the earlier pin. @@ -2893,9 +2887,9 @@ published. The 33,930 rows published before are unchanged, in order and in every the 11 keys (all kept as `mp_no_party`, 7 on member and 4 on day evidence) and is re-pinned to `06723c31…`; the `sejm_api` table is byte-identical. -## parliamentary — filter effectiveness (v2#114) +## parliamentary — filter effectiveness -**Investigated** — 2026-10-18 and 19 (slayerlabs/polish-dynaword-v2#114; the allowlist is #54). +**Investigated** — 2026-10-18 and 19. **Verdict** — the allowlist is `kept` as built; no rule changed in this entry. Of the official text in the sittings it filters, it keeps 95.8% of the characters (95% interval 93.6-97.3%). In a hand-labelled sample it let one guest @@ -2986,7 +2980,7 @@ git (the sample holds speech text with names). C and E are eyeballed on 40, 20 and 20, not counted; B is counted from 70 labels of 2,378. - Recall treats every kept paragraph as official text; the kept sample has 1 guest in 240. - Sittings only. The 286,135 interpellation, question and reply records (kept whole; the allowlist does not apply to - them) are not in this sample; the check against the official texts (v2#114) is where they come in. + them) are not in this sample; the check against the official texts is where they come in. **Release steps** — none for this entry. If the allowlist is widened to the forms above, re-run `src/fetch_parliamentary.py`, the stats and the card totals, and re-pin `sejm_api_2011_2022` (its `REFERENCES` name @@ -2996,9 +2990,9 @@ the shard's parquet hash). the Jeffreys interval says up to 3.5%, and only the scan for the one mechanism that the single guest showed gave a number to plan with (0.3M characters). -## sejm_api, sejm_api_2011_2022 — speaker allowlist (v2#99) +## sejm_api, sejm_api_2011_2022 — speaker allowlist -**Investigated** — 2026-10-19 (slayerlabs/polish-dynaword-v2#99; the allowlist is #54, its check #114). Both sources +**Investigated** — 2026-10-19. Both sources kept every speaker of the plenary sittings; `parliamentary` and `sejm_committee_transcripts` keep the allowlist only. **Verdict** — the allowlist (`classify_speaker`, `MEMBER_RULES`), unchanged, is applied to both sources by a pinned @@ -3076,10 +3070,10 @@ prosecutors, the Rada Mediów Narodowych); X external guest. **Found on the way** - The allowlist refuses the President's Chancellery (secretaries of state, deputy heads), the Prosecutor General's office, IPN, agency heads (UOKiK, GUS, UODO, UdSC, GIP, GIS, the Civil Service, the NBP, the RCL) and foreign - parliaments; #114 lists them as left out by design. Refused roles are 65 of the 123 dropped `sejm_api` rows (53%) and + parliaments. Refused roles are 65 of the 123 dropped `sejm_api` rows (53%) and 650 of the 671 `sejm_api_2011_2022` rows (97%); the rest have no role evidence. Widening the allowlist would change all three sources. -- The rule table lacks the forms above; #114 lists government plenipotentiaries among the forms `parliamentary` misses. +- The rule table lacks the forms above; the forms `parliamentary` misses include government plenipotentiaries. The rules sit in `fetch_sejm_committee_transcripts.py` and `fetch_parliamentary.py`, so a change reaches the committee transcripts and `parliamentary` too. - `sejm_api` is a pinned reference of the `sejm_api_2011_2022` dedup; Hub PR 158 re-pinned it to the filtered release @@ -3110,7 +3104,7 @@ ministers. Label from the evidence of the same day, and read every drop when the ## wikinews — lone option lines removed (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the main leftover of the section +**Investigated** — 2026-10-18 (the markup cleanup: the main leftover of the section above, a line holding only an option word, removed in v0.2.6 after all). **Verdict** — `kept`, text cleaned again and relabelled: 23,573 documents, 29,399,003 characters, @@ -3156,7 +3150,7 @@ rule (their own PRs, next), their contract tests fail on `drop_residue(text) == ## wikinews — option words before captions removed (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the second rule change of the +**Investigated** — 2026-10-18 (the markup cleanup: the second rule change of the plwiki_talk section below, Hub PR 135, applied to this release; Hub PRs 137–139, one per source). **Verdict** — `kept`, text cleaned again: 23,573 documents, 29,397,981 characters, 10,968,912 @@ -3174,7 +3168,7 @@ a rerun of retext, relabel and datasheet changes nothing. ## wikivoyage — lone option lines removed, four table rows rebuilt (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the rule of the wikinews section +**Investigated** — 2026-10-18 (the markup cleanup: the rule of the wikinews section above, applied to this release). **Verdict** — `kept`, text cleaned again and relabelled: 13,640 documents, 44,720,085 characters, @@ -3201,7 +3195,7 @@ next), its contract test fails on `drop_residue(text) == text`. ## wikivoyage — option words before captions removed (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the second rule change of the +**Investigated** — 2026-10-18 (the markup cleanup: the second rule change of the plwiki_talk section below, Hub PR 135, applied to this release; Hub PRs 137–139, one per source). **Verdict** — `kept`, text cleaned again: 13,640 documents, 44,719,617 characters, 16,958,893 @@ -3221,7 +3215,7 @@ relabel and datasheet changes nothing. ## wikibooks — lone option lines removed, relabelled (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the rule of the wikinews section +**Investigated** — 2026-10-18 (the markup cleanup: the rule of the wikinews section above, applied to this release; the last of the three). **Verdict** — `kept`, text cleaned again and relabelled: 9,048 documents, 38,063,266 characters, @@ -3252,7 +3246,7 @@ of the source), the closest audit pattern's 25 documents 68,917 and `own_text` 4 ## wikibooks — option words before captions removed (update to the sections above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116: the second rule change of the +**Investigated** — 2026-10-18 (the markup cleanup: the second rule change of the plwiki_talk section below, Hub PR 135, applied to this release; Hub PRs 137–139, one per source). **Verdict** — `kept`, text cleaned again: 9,048 documents, 38,062,836 characters, 15,260,848 tokens @@ -3278,8 +3272,8 @@ documents. Matched tokens are now 121,964 (0.80% of the source), the closest pat ## plwiki_talk — file-link residue removed, licence labels by contribution date (update to the section above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116 option A, with category lines -kept; slayerlabs/polish-dynaword-v2#110 option B, as for wikivoyage above). +**Investigated** — 2026-10-18 (the markup cleanup, with category lines +kept; the labels by contribution, as for wikivoyage above). **Verdict** — `kept`, text cleaned and relabelled: 43,054 documents, 144,590,122 characters, 55,564,235 tokens (was 43,054 / 144,604,697 / 55,568,733). Labels per record: `CC-BY-SA-3.0` @@ -3290,7 +3284,7 @@ are now 3.0 (17,902,746 tokens), 8,528 both and 2,437 stay 4.0. Each sidecar lin `license_basis` and `pre_cutoff_revid`; `qa.json` holds the stub dump, the count per basis (`licence_labels`) and the cleanup (`residue_cleanup`); the card explains each basis. -**Residue cleanup (v2#116)** — both talk builders now end with `drop_residue(text, +**Residue cleanup** — both talk builders now end with `drop_residue(text, categories=False)` after the PII redaction: file-link options and bare file titles go, `Kategoria:` lines stay, since on talk pages they are discussion about categories. A record left under 500 characters is dropped as `too_little_text_after_residue_cleanup`. `src/clean_plwiki_talk.py retext` @@ -3340,7 +3334,7 @@ word (both); for 3 the API returns no pre-cutoff text (`pre_text_hidden`, both). in force when it was contributed, so a page with text from both sides of the cutoff carries both. 1,986 records were last edited before 2009-06-15, the GFDL era (see the card). -**Blockers** — none to merge. Open: +**Blockers** — none to merge. Known limits: - Any added word makes a page 3.0 and 4.0; there is no threshold. - Text moved or merged from an older page into a page created after the cutoff is labelled 4.0 alone. @@ -3350,11 +3344,11 @@ in force when it was contributed, so a page with text from both sides of the cut compared, and the residue `drop_residue` leaves is compared like any other words. - A rebuild from the dump labels by last revision; `relabel` has to follow it. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## plwiki_user_talk — file-link residue removed, licence labels by contribution date (update to the section above) -**Investigated** — 2026-10-18 (slayerlabs/polish-dynaword-v2#116 and #110, as for plwiki_talk +**Investigated** — 2026-10-18 (the markup cleanup and the labels by contribution, as for plwiki_talk above; same code, same stub dump). **Verdict** — `kept`, text cleaned and relabelled: 380,295 documents, 1,019,726,109 characters, @@ -3365,7 +3359,7 @@ main were 3.0 243,773 (160,360,307 tokens) and 4.0 136,754 (221,084,804). The 24 released stay 3.0; of the 4.0 rows, 32,804 are now 3.0 (39,073,338 tokens), 22,558 both and 81,196 stay 4.0. -**Residue cleanup (v2#116)** — `clean_plwiki_talk.py retext`: 27,221 rows changed; with the dropped +**Residue cleanup** — `clean_plwiki_talk.py retext`: 27,221 rows changed; with the dropped rows, 1,002,350 characters and 429,775 tokens went. 232 records fell under 500 characters and were dropped (`too_little_text_after_residue_cleanup`; 36 labelled 3.0 on main, 196 4.0), all of them 500–557 characters before; 171 hold little more than the pending-changes notice, which lost its @@ -3389,16 +3383,16 @@ records were last edited before 2009-06-15. **License evidence** — as for plwiki_talk above. **Blockers** — none to merge after the plwiki_talk PR, which carries the code: until both are -merged, this release fails its contract tests (labels and `drop_residue(text) == text`). Open: as for +merged, this release fails its contract tests (labels and `drop_residue(text) == text`). Known limits: as for plwiki_talk above. -README, CHANGELOG and totals are left to v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## uzp_orzeczenia_pl — G1 personal-data pass **Investigated** — 2026-10-18 and 19, re-scored for NERGAL 2.0.5 and 2.0.6 on 2026-10-21; firm rules extended and -the pass applied to the shard on 2026-10-21 (slayerlabs/polish-dynaword-v2#112; the legitimate-interest note is -shared with #55, NERGAL is #60). +the pass applied to the shard on 2026-10-21 (the legitimate-interest note is +shared with `saos`). **Verdict** — `kept`, no ruling dropped. `src/build_uzp_orzeczenia_pl.py g1` has run on the shard in this PR: 21,491 of 34,715 rulings change; characters 1,110,310,083 → 1,108,021,951, tokens 422,051,565 → 420,753,012. Against @@ -3572,7 +3566,7 @@ that count was 11 in S6 and S6 special recall read 11/16; after it, 1 and 15/16, ## uzp_orzeczenia_pl — section numbers restored from the IP filter (update to the section above) -**Investigated** — 2026-10-19 (slayerlabs/polish-dynaword-v2#112). +**Investigated** — 2026-10-19. **Verdict** — `kept`, the same 34,715 rulings with rebuilt text: `[REDACTED:IP]` tags 21,957 → 50, 2,793 documents changed, 1,110,310,083 characters and 422,051,565 tokens (was 1,110,428,704 / 422,043,881). This is the @@ -3611,11 +3605,11 @@ one; an address written with no network word, port or CIDR suffix near it would **Release steps** — `g1` has run on this shard, as in the section above, and added the slice version for the G1 parquet, with its stats, that the contract test requires. -README, CHANGELOG and totals are left to v2#74 and v2#80. +README, CHANGELOG and totals are left to the v0.2.6 card and registry edits. ## uzp_orzeczenia_pl — G1 rules, round 2, not applied (update to the sections above) -**Investigated** — 2026-10-21 (slayerlabs/polish-dynaword-v2#112). +**Investigated** — 2026-10-21. **Verdict** — `kept`, the shard unchanged. A second round of firm and address rules is in `src/build_uzp_orzeczenia_pl.py` but has not run on the shard: on the held-out sample it misses the address bar @@ -3692,10 +3686,10 @@ set before it is scored. ## eurlex — row review: third-party credits, UN ECE regulations and Parliament stubs dropped (update to the section above) -**Investigated** — 2026-10-19 (slayerlabs/polish-dynaword-v2#108). +**Investigated** — 2026-10-19. -**Verdict** — kept; 480 more documents dropped by a pinned row review (maintainer decisions 1A, 2A and 4A on -v2#108, 2026-10-19): 242,968 → 242,488 documents, 5,902,889,135 → 5,859,513,831 characters, 2,350,709,056 → +**Verdict** — kept; 480 more documents dropped by a pinned row review (maintainer decisions of +2026-10-19): 242,968 → 242,488 documents, 5,902,889,135 → 5,859,513,831 characters, 2,350,709,056 → 2,333,038,468 tokens. Every kept row is otherwise identical to v0.2.5. **Method** — `src/clean_eurlex.py` `CANDIDATE_RULES` (the (c) sign, photo headings, credits and permissions, @@ -3746,9 +3740,9 @@ is still the v0.2.5 scan report. ## kultura_bez_barier_pl — row review: two joint-project titles dropped, licence scope open (update to the section above) -**Investigated** — 2026-10-20 (slayerlabs/polish-dynaword-v2#111). +**Investigated** — 2026-10-20. -**Verdict** — kept; 2 of the 9 documents dropped by a pinned row review (maintainer decision 5A on v2#111, +**Verdict** — kept; 2 of the 9 documents dropped by a pinned row review (maintainer decision of 2026-10-20): 9 → 7 documents, 608,794 → 359,517 characters, 217,888 → 126,743 tokens, 316 → 214 pages (91,145 tokens, 41.8% of the shard). Every kept row is identical to the shard before the review; the licence basis fields are new in the sidecar. @@ -3772,7 +3766,7 @@ organisations named as authors or co-producers. Institut für Bildung und Kultur e.V. (kubia), and lists experts of all four. `paszport_do_sztuki`: "a joint project of the foundation and cultural institutions"; Łazienki Królewskie, Zachęta, the Wilanów Palace Museum and the National Museum in Warsaw took part and the foundation led it. -- **Licence scope (open)** — the catalogue's body sentence says the foundation releases "je" under CC BY-SA 3.0, right +- **Licence scope** — the catalogue's body sentence says the foundation releases "je" under CC BY-SA 3.0, right after naming the pictograms; the page's meta description ties the licence to the pictograms alone. The earlier reading above (the sentence covers the publications) is not established. The maintainer has asked the foundation. - **Licence basis** — `publisher` for 6 records (the PDF is linked from the catalogue page, read 2026-10-19), `file_note` @@ -3784,7 +3778,7 @@ still marks the 9 as selected; the 2 review drops are in the review table. **Not established** — the scope of the catalogue's licence statement; whether the individual authors of the 7 kept titles are staff or commissioned (the foundation's rights from them are not published); the NERGAL pass (unchanged). -## wolne_lektury — author and title filled, attribution sidecar, edition checks (v2#109) +## wolne_lektury — author and title filled, attribution sidecar, edition checks **Investigated** — whether every `wolne_lektury` row carries the author, translator and title Wolne Lektury (WL) gives, whether the full licence URL, the credits and the "Książka pochodzi z serwisu Wolne Lektury" line are @@ -3910,7 +3904,7 @@ details; by the maintainer's decisions of the same day: - Kept as WL wrote them, since none changes whether a row is free: 25 rows whose WL rights line gives a death year BN gives otherwise (for example "Wacław Rolicz-Lieder zm. 1940", BN 1912, 8 rows) and 6 rows whose WL `date.pd` is earlier than the translator's or author's death allows. -- Open: 74 cannot-tell row-flags on 69 kept rows, left as WL gives them and listed in v2#109. +- Left as WL gives them: 74 cannot-tell row-flags on 69 kept rows. **Not established** — the editors of the print editions and their death years; the first-edition form of any author name; what SpeakLeash changed and who removed the footer; whether @@ -3918,10 +3912,10 @@ name; what SpeakLeash changed and who removed the footer; whether ## biblioteka_nauki — row review: 4,142 rows dropped, per-record licence basis added (update to the sections above) -**Investigated** — 2026-10-20 (slayerlabs/polish-dynaword-v2#111). +**Investigated** — 2026-10-20. -**Verdict** — kept; 4,142 of 41,985 documents dropped by a pinned row review (maintainer decisions 1A, 2A and 3 on -v2#111, 2026-10-20): 41,985 → 37,843 documents (-9.9%), 1,739,004,913 → 1,534,529,869 characters, 669,909,430 → +**Verdict** — kept; 4,142 of 41,985 documents dropped by a pinned row review (maintainer decisions of +2026-10-20): 41,985 → 37,843 documents (-9.9%), 1,739,004,913 → 1,534,529,869 characters, 669,909,430 → 590,924,796 tokens (-78,984,634, -11.8%). Every kept row is identical to the shard before the review; the licence basis fields are new in the sidecar. @@ -3972,12 +3966,12 @@ The rules' measurements and the hand reads are in `data/biblioteka_nauki/bibliot version. The year rule is a lower bound: the years are those of the generic licence texts (the Polish port may be later, which would add rows), and the platform shows the licence an item has today. - **Printed NC/ND (4), another work (16), prior publication, permission and translation (63 rows), API flags (5)** — - decision 1A. 16 files are a different work from the one described: neither the title nor any author appears where the text + maintainer decision of 2026-10-20. 16 files are a different work from the one described: neither the title nor any author appears where the text starts, ends or is attributed (all 51 candidates read; 30 each of two looser sets were sampled and none was another work). Prior publication and translation rows were read in context for the tight families (reprint words in the front matter, permission, earlier publication, title markers, translator credit, translation statement); the broad translator-word family (1,326 rows, mostly footnotes) was not. -- **Restriction notice, no CC note (97)** — decision 2A: the front or back matter prints a restriction on copying or +- **Restriction notice, no CC note (97)** — maintainer decision of 2026-10-20: the front or back matter prints a restriction on copying or reproduction and no CC licence of its own. All 120 hits were read; 6 of the 110 hits outside `file_note` rows are not a notice on the work. This is the weakest evidence of the drops: it is a reader's judgement that the printed restriction contradicts the platform's CC label; no journal page was read to see which of the two the journal means. @@ -3998,7 +3992,7 @@ now for the rows the year rule does not catch; the false-negative rate of the `f words or a form the parser does not read were not counted); whether the 97 restriction-notice drops would stand if the journals' own licence pages were read; recall of the reprint and translation rules beyond the tight families. -## eltec_pol — author and title filled, attribution sidecar, edition checks (v2#109) +## eltec_pol — author and title filled, attribution sidecar, edition checks **Investigated** — whether every `eltec_pol` row carries the author and title ELTeC gives, whether the ELTeC record, the CC BY 4.0 URL and the Wolne Lektury (WL) overlap are recorded per document, and what the text and the edition @@ -4114,10 +4108,10 @@ texts digitised from Wolne Lektury. ## open_icm_pl — row review: 74 of 85 records dropped, per-record licence basis added (update to the section above) -**Investigated** — 2026-10-05 (repository check), 2026-10-20 (publisher pages, row review; slayerlabs/polish-dynaword-v2#111). +**Investigated** — 2026-10-05 (repository check), 2026-10-20 (publisher pages, row review). -**Verdict** — kept as a pilot slice of 11 records; 74 of the 85 dropped by a pinned row review (maintainer decisions 4A and -1A on v2#111, 2026-10-20): 85 → 11 documents, 6,219,019 → 1,203,239 characters, 2,358,174 → 441,475 tokens (1,916,699 tokens, +**Verdict** — kept as a pilot slice of 11 records; 74 of the 85 dropped by a pinned row review (maintainer decisions of +2026-10-20): 85 → 11 documents, 6,219,019 → 1,203,239 characters, 2,358,174 → 441,475 tokens (1,916,699 tokens, 81.3% of the shard, dropped). Three kept rows change in the `license` column only; the other 8 kept rows are identical to the shard before the review (the digest of every input row is in `open_icm_pl.licence-basis.json`, recomputed by a test). The licence basis fields are new in the sidecar. @@ -4166,20 +4160,20 @@ the first year of the licence version of the label it would carry after the rela **Kept as decided** — the 11 records above. `qa.json`, `decisions.jsonl` and `overlap_audit.json` describe the 100-record pilot and still list the 85 (and the 95 and 100); the 74 review drops are in the review table. The README row -and CHANGELOG for this source are older than v2#111 and were not changed. +and CHANGELOG for this source are older than the per-record licence basis and were not changed. **Not established** — the publisher statements are as read on 2026-10-20: for older articles a publisher may have applied a statement to its back issues later. The year rule compares years only and its table is a lower bound (a Polish port or a journal may have adopted a version later): `6fe4e956` was created in 2013 and its publisher page is dated 2013-06-24, before CC 4.0 was released (November 2013), yet it is kept with CC-BY-4.0; whether that licence applied when the text was -published is open. Three statements are journal-level, not article-level. `8c8e1344` has no version. +published is not established. Three statements are journal-level, not article-level. `8c8e1344` has no version. The 3 PDFs behind the relabelled records and all 77 `license.txt` bitstreams were not downloaded (the endpoint serves a CAPTCHA page to anonymous clients). The 64 depositor-only drops may include correctly labelled records: no statement found or readable is not a statement that the label is wrong. The NERGAL pass (unchanged). ## uzp_orzeczenia_pl — held off main until v0.2.8 (update to the sections above) -**Investigated** — 2026-10-21 (slayerlabs/polish-dynaword-v2#112). +**Investigated** — 2026-10-21. **Verdict** — `removed` from main until v0.2.8 (planned for v0.2.7 until 2026-10-22); the source was never released. The G1 pass leaves part of the sole traders' firm names and addresses unmasked, and round 2 (the section above) missed its address bar on the held-out @@ -4210,8 +4204,8 @@ while the folder is missing. **Investigated** — 2026-10-22. **Verdict** — `removed` from main until the scope of the catalogue's licence statement is answered; the source was -never released. The catalogue's CC BY-SA 3.0 sentence may cover only the accessibility pictograms (see "Licence scope -(open)" above), and main is as public as a release tag: the default config (`data/*/*.parquet`) served the shard to +never released. The catalogue's CC BY-SA 3.0 sentence may cover only the accessibility pictograms (see "Licence scope" +above), and main is as public as a release tag: the default config (`data/*/*.parquet`) served the shard to `load_dataset` and the viewer while it was on main. Removed: the whole `data/kultura_bez_barier_pl/` folder (shard, sample, attribution, decisions, review table, licence-basis evidence, QA, stats, datasheet and NOTICE), which comes back with the answer. Kept: the registry entry (`release: None`), `src/build_kultura_bez_barier_pl.py`, diff --git a/artifacts/source_license_review_v0_3.md b/artifacts/source_license_review_v0_3.md index ead9f1db3c2d473a223139c8aeb24093f867c51d..779cdb88a1e5bb3a649e375be8e049b85f44371e 100644 --- a/artifacts/source_license_review_v0_3.md +++ b/artifacts/source_license_review_v0_3.md @@ -46,7 +46,7 @@ Operational result: keep `WiktorS/polish-news` out of the clean open corpus. Rev 3. `PleIAs/Polish-PD`: sample OCR quality and filter aggressively. 4. `pelcra/PLLuMIC`: accept gated terms and import as `dialogue_sft` / final-phase source. 5. `ipipan/polqa`, `clarin-pl/poquad`, `clarin-pl/PUGG`, `clarin-pl/ComplexQA`: import as QA/eval/final-phase buckets after dedup. -6. `oscar-corpus/mOSCAR`: only if the above is not enough for modern web diversity and legal review is acceptable. +6. `oscar-corpus/mOSCAR`: only if the above is not enough for modern web diversity and a rights review accepts it. ## Required gates before publish diff --git a/artifacts/uzp_orzeczenia_pl_legitimate_interest.md b/artifacts/uzp_orzeczenia_pl_legitimate_interest.md index e5d55c7fe3c00f27ac3020960d34da6ae468e2fb..41697919a76b84a039f020490c20b90199864965 100644 --- a/artifacts/uzp_orzeczenia_pl_legitimate_interest.md +++ b/artifacts/uzp_orzeczenia_pl_legitimate_interest.md @@ -1,7 +1,7 @@ # Legitimate-interest note: personal data in `uzp_orzeczenia_pl` Our assessment of 2026-10-18, not legal advice. Written for this source; the reasoning is meant to be reused for -`saos` (slayerlabs/polish-dynaword-v2#55), whose filters differ. +`saos`, whose filters differ. ## What the rulings contain diff --git a/artifacts/uzp_orzeczenia_pl_ontology_manifest.json b/artifacts/uzp_orzeczenia_pl_ontology_manifest.json index bad27a08a5b52975cfe8deae49f6027410c27a25..4302d16f783c42880fdf7e3013391b860cafc08d 100644 --- a/artifacts/uzp_orzeczenia_pl_ontology_manifest.json +++ b/artifacts/uzp_orzeczenia_pl_ontology_manifest.json @@ -73,7 +73,7 @@ } ], "pending": [ - "formal legal review of art. 4(2) application", + "formal rights review of art. 4(2) application", "cross-source text deduplication", "benchmark contamination check", "review of quoted third-party text", diff --git a/configs/source_candidates_v0_3.json b/configs/source_candidates_v0_3.json index cadb519573eeb6c38435863be882c3e421318648..01d2321e7948fc4670e04e23d66cecb7979d5fa9 100644 --- a/configs/source_candidates_v0_3.json +++ b/configs/source_candidates_v0_3.json @@ -95,7 +95,7 @@ "target_bucket": "web_fallback", "priority": "medium", "decision": "maybe_after_legal_review", - "notes": "CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and legal review." + "notes": "CC-BY tag but web-crawl copyright/provenance risk remains. Only use after filtering and a rights review." }, { "repo_id": "oscar-corpus/OSCAR-2301", diff --git a/data/biblioteka_nauki/biblioteka_nauki.licence-basis.json b/data/biblioteka_nauki/biblioteka_nauki.licence-basis.json index 63338d3432044ecd8c5bcf52174e0e7e1e9b1b8f..f5a35a2a9731ef05c566b3b5b6ea8688d4af4b62 100644 --- a/data/biblioteka_nauki/biblioteka_nauki.licence-basis.json +++ b/data/biblioteka_nauki/biblioteka_nauki.licence-basis.json @@ -148,7 +148,6 @@ "rows_before_review_content_sha256": "cc4ad9ce16aaef3c7bc5197743ad58182e3d5011f78cbf53896083e7a8541954", "v0.2.5_parquet_sha256": "cc93cdd5ca3e6576a1da0aa294df1308e879b8516ac30911289e430c69a07b26" }, - "issue": "slayerlabs/polish-dynaword-v2#111", "journal_adoption": { "consequence": "an issue from before its journal adopted CC may remain wherever the publication year is not earlier than the licence version", "obtainable": false, @@ -513,7 +512,7 @@ "rows": 37843, "rows_sha256": "49a6272befa665daa9c36abd616c951efd0459e5d35a56adea1dc04440772744" }, - "note": "drops decided by the maintainer on 2026-10-20 (v2#111); the table lists every row a rule nominated, `drop` or `keep`, and nothing else", + "note": "drops decided by the maintainer on 2026-10-20; the table lists every row a rule nominated, `drop` or `keep`, and nothing else", "reasons": { "drop": { "api_flagged_reprint_translation": "the platform flags the item as a reprint or a translation (`reprintPublication` or `translationPublication`)", diff --git a/data/biblioteka_nauki/biblioteka_nauki.license-evidence.json b/data/biblioteka_nauki/biblioteka_nauki.license-evidence.json index d4f3c958dd1eda920b4144bd4f077fdb14903cc2..a857c78ca1517a2d54a1a8aac02fc5ee84a18872 100644 --- a/data/biblioteka_nauki/biblioteka_nauki.license-evidence.json +++ b/data/biblioteka_nauki/biblioteka_nauki.license-evidence.json @@ -5,7 +5,7 @@ "license_spdx": "MIXED (per row: CC-BY-2.0, CC-BY-3.0, CC-BY-3.0-PL, CC-BY-4.0, CC-BY-SA-3.0, CC-BY-SA-3.0-PL, CC-BY-SA-4.0)", "review_scope": "Licence name, URL and version of every one of the 42,068 rows of the previous release (v0.2.5 after the Public Domain Mark drop, Hub PR 62), read from the platform API. Not a review of the texts, of the authors' standing to license, or of third-party material inside the items.", "finding": "The API gives CC BY 2.0 / 3.0 / 3.0 PL / 4.0 and CC BY-SA 3.0 / 3.0 PL / 4.0 per record; v0.2.5 and the first v0.2.6 build collapsed all of them to 4.0 by keeping only license.iconId. The `license` column now holds the API's version. 12 rows the API no longer serves (HTTP 404) are withheld; so are, by the maintainer's decision of 2026-10-06, 56 rows whose text prints a NonCommercial or NoDerivatives licence and 15 rows whose text says it is reprinted or translated by permission of a publisher. articles_2011995 (API: CC BY-SA 4.0; earlier recovery: CC BY) is kept, labelled CC-BY-SA-4.0. No row's text changed.", - "after_the_review_of_2026_10_20": "The counts in this file (`shipped`, `withheld`, `flagged_action`, `verified`) describe the state of Hub PR 81, before the review of 2026-10-20 (polish-dynaword-v2#111): 4,142 of those 41,985 shipped rows are dropped, among them the 5 rows flagged as a reprint or translation. Current counts are in biblioteka_nauki.review.csv (the 4,205 reviewed rows, each with its decision and reason), biblioteka_nauki.licence-basis.json (the rules and measurements) and stats.json. The API licence per row is unchanged and still in biblioteka_nauki.license-api.json.", + "after_the_review_of_2026_10_20": "The counts in this file (`shipped`, `withheld`, `flagged_action`, `verified`) describe the state of Hub PR 81, before the review of 2026-10-20: 4,142 of those 41,985 shipped rows are dropped, among them the 5 rows flagged as a reprint or translation. Current counts are in biblioteka_nauki.review.csv (the 4,205 reviewed rows, each with its decision and reason), biblioteka_nauki.licence-basis.json (the rules and measurements) and stats.json. The API licence per row is unchanged and still in biblioteka_nauki.license-api.json.", "upstream_api": "https://bibliotekanauki.pl/api/{articles|books|chapters}/{id}", "retrieved": "2026-10-05..2026-10-06", "retrieval_script": "data/biblioteka_nauki/recover_license_versions.py (one global request clock, 3 workers, 0.15 s between request starts, back-off on 429/5xx, stops on 403 or a non-JSON 200; no CAPTCHA or terms page was met)", @@ -75,7 +75,7 @@ "text prints a NonCommercial or NoDerivatives licence (maintainer decision 2026-10-06)": 56, "text says it is reprinted or translated by permission of a publisher (maintainer decision 2026-10-06)": 15 }, - "maintainer_decision": "2026-10-06 (polish-dynaword-v2#57, Hub PR 81): keep the 12 HTTP 404 rows withheld; relabel articles_2011995 to CC-BY-SA-4.0 and keep it; withhold 56 rows whose text prints an NC or ND licence and 15 rows whose text says it is reprinted or translated by permission of a publisher; keep rows whose wording is a citation, a quoted work's notice, prose about licence types, a permission for a figure or table, or a translation permitted by the author alone. The ids and one reason per id are in src/clean_biblioteka_nauki.py (TEXT_NC_ND, TEXT_REPRINT) and in the stats `withheld`.", + "maintainer_decision": "2026-10-06 (Hub PR 81): keep the 12 HTTP 404 rows withheld; relabel articles_2011995 to CC-BY-SA-4.0 and keep it; withhold 56 rows whose text prints an NC or ND licence and 15 rows whose text says it is reprinted or translated by permission of a publisher; keep rows whose wording is a citation, a quoted work's notice, prose about licence types, a permission for a figure or table, or a translation permitted by the author alone. The ids and one reason per id are in src/clean_biblioteka_nauki.py (TEXT_NC_ND, TEXT_REPRINT) and in the stats `withheld`.", "flagged": { "translationPublication": 3, "reprintPublication": 2 diff --git a/data/biblioteka_nauki/biblioteka_nauki.md b/data/biblioteka_nauki/biblioteka_nauki.md index 5c199bc42017087000e9d66dbb8ad818e69a66e2..54e1a954362312288c57f09dbd0d0c60d3898029 100644 --- a/data/biblioteka_nauki/biblioteka_nauki.md +++ b/data/biblioteka_nauki/biblioteka_nauki.md @@ -17,7 +17,7 @@ name, URL, icon) on 2026-10-05/06, one request per row of the previous release (`data/biblioteka_nauki/recover_license_versions.py`). The API responses are committed as `biblioteka_nauki.license-api.json`. The earlier recovery stored only `license.iconId` (`cc-by` / `cc-by-sa`), which drops the version, so v0.2.5 labelled every row 4.0 although the API gives 2.0, 3.0, -3.0 PL and 4.0 (polish-dynaword-v2#57). +3.0 PL and 4.0. | `license` label | documents | API licence (`nameEn`) | |---|---:|---| @@ -38,8 +38,7 @@ recovery (CC BY); it is kept and labelled CC-BY-SA-4.0 (maintainer decision 2026 37,843 rows shipped, only the `license` column differs from the previous release; ids, order and text are unchanged. -Three items labelled "Domena publiczna" were dropped for v0.2.6 (`src/clean_biblioteka_nauki.py`, -polish-dynaword-v2#52): `books_2142716`, `books_2147851`, `articles_2097363` (376,155 tokens). +Three items labelled "Domena publiczna" were dropped for v0.2.6 (`src/clean_biblioteka_nauki.py`): `books_2142716`, `books_2147851`, `articles_2097363` (376,155 tokens). Biblioteka Nauki gives them API licence id 22, the CC Public Domain Mark 1.0, which is a label, not a waiver or a licence. They are original works first published 2019-2022, so the Polish life+70 term has not run out, and `books_2147851` itself prints "Copyright by Jerzy Zając 2019". @@ -51,7 +50,7 @@ licence check does not look at those flags; the 5 rows are dropped in the review 83 of the 42,068 rows of the previous release are not shipped. The ids, with one reason per id, are in `biblioteka_nauki.stats.json` (`withheld`) and, for the two text-based classes, in `src/clean_biblioteka_nauki.py`, whose build fails if a listed id is not reached. The text-based -classes were decided by the maintainer on 2026-10-06 (polish-dynaword-v2#57, Hub PR 81). +classes were decided by the maintainer on 2026-10-06 (Hub PR 81). | reason class | rows | what it is | |---|---:|---| @@ -64,8 +63,7 @@ types, a permission for a figure or table, or a translation permitted by the aut readings are one reader's judgement of about 300 characters of context around each match. ## Per-record licence basis -Each line of `biblioteka_nauki.attribution.jsonl` also says what the row's licence rests on -(polish-dynaword-v2#111): `licence_basis`, `licence_basis_url` and `licence_basis_date`. +Each line of `biblioteka_nauki.attribution.jsonl` also says what the row's licence rests on: `licence_basis`, `licence_basis_url` and `licence_basis_date`. | `licence_basis` | rows | what it is | URL | date | |---|---:|---|---|---| @@ -79,7 +77,7 @@ genuine notes of the work's own licence; rows that print a licence in a form the were not counted. ## Rows dropped after review -4,142 of the 41,985 rows left by the steps above are dropped (polish-dynaword-v2#111, maintainer +4,142 of the 41,985 rows left by the steps above are dropped (maintainer decisions of 2026-10-20). `biblioteka_nauki.review.csv` (`id,decision,reason`, pinned by SHA-256 in `src/clean_biblioteka_nauki.py`) lists the 4,205 rows a rule nominated, each with `drop` or `keep`, and nothing else; the build refuses to run when the rules and the table disagree. @@ -147,7 +145,7 @@ Minimal, per Dynaword guidelines (heavy filtering left to downstream use): - licence not confirmed by the API as an allowlisted CC BY / BY-SA version, HTTP 404 (`src/clean_biblioteka_nauki.py`): **12** - text prints a NonCommercial or NoDerivatives licence (`src/clean_biblioteka_nauki.py`): **56** - text says it is reprinted or translated by permission of a publisher (`src/clean_biblioteka_nauki.py`): **15** -- reviewed drops (`src/clean_biblioteka_nauki.py`, polish-dynaword-v2#111): **4,142** +- reviewed drops (`src/clean_biblioteka_nauki.py`): **4,142** - read 43,576 → kept 37,843 Token counts are a tiktoken (cl100k) proxy; no Llama-3 count is published. diff --git a/data/biblioteka_nauki/recover_attribution.py b/data/biblioteka_nauki/recover_attribution.py index 466fa2eaa0c52e1ee7a26fd8b3202a941edc0fde..f294d20722fb8d0ed41b7354d06f22da0f06e37a 100644 --- a/data/biblioteka_nauki/recover_attribution.py +++ b/data/biblioteka_nauki/recover_attribution.py @@ -16,8 +16,8 @@ HERE = os.path.dirname(os.path.abspath(__file__)) LIC = os.path.join(HERE, "licenses.jsonl") OUT = os.path.join(HERE, "attribution.jsonl") PROG = os.path.join(HERE, "attribution_progress.txt") -# The v0.2.4 run also kept "public-domain": the CC Public Domain Mark, a label rather than a grant -# (polish-dynaword-v2#52). src/clean_biblioteka_nauki.py drops it from the shipped Parquet; its KEEP +# The v0.2.4 run also kept "public-domain": the CC Public Domain Mark, a label rather than a grant. +# src/clean_biblioteka_nauki.py drops it from the shipped Parquet; its KEEP # set must equal this one. CLEAN = {"cc-by", "cc-by-sa", "cc0"} WORKERS = 8 diff --git a/data/biblioteka_nauki/recover_license_versions.py b/data/biblioteka_nauki/recover_license_versions.py index 2c2c57b93a268372c6c3cf72d7f0d258f615f1c1..56105f1edecb48088b4f06e2b1b6bc7f1e29dec7 100644 --- a/data/biblioteka_nauki/recover_license_versions.py +++ b/data/biblioteka_nauki/recover_license_versions.py @@ -1,10 +1,10 @@ #!/usr/bin/env python3 """Re-fetch the licence name, URL and version of every shipped Biblioteka Nauki row. -recover_licenses.py kept only `license.iconId` (cc-by / cc-by-sa), which drops the licence version -(polish-dynaword-v2#57). This asks `GET bibliotekanauki.pl/api/{type}/{id}` once per row of the -shipped Parquet and stores the API's own `license` object. It judges nothing: the allowlist and the -fail-closed handling live in src/clean_biblioteka_nauki.py. +recover_licenses.py kept only `license.iconId` (cc-by / cc-by-sa), which drops the licence version. +This asks `GET bibliotekanauki.pl/api/{type}/{id}` once per row of the shipped Parquet and stores the +API's own `license` object. It judges nothing: the allowlist and the fail-closed handling live in +src/clean_biblioteka_nauki.py. Polite by construction: one global request clock (`--interval`), a few workers, back-off on 429/5xx and connection errors (Retry-After honoured), and a circuit breaker. The run stops, and diff --git a/data/dziennik_ustaw/dziennik_ustaw.md b/data/dziennik_ustaw/dziennik_ustaw.md index 5a38f4be6c26c4a54455111414fd67f01bb7d21f..4d2c526bf8ede8fdc054aaf77a22ff86b40be36f 100644 --- a/data/dziennik_ustaw/dziennik_ustaw.md +++ b/data/dziennik_ustaw/dziennik_ustaw.md @@ -86,7 +86,7 @@ works. This is our assessment, not legal advice. **Credit:** Dziennik Ustaw; Kancelaria Sejmu RP for the ELI interface. As a precaution we also give the System Informacyjny Sejmu source note, although the terms page does not mention the -ELI interface and whether the note applies is open: +ELI interface: > Źródło: System Informacyjny Sejmu (Kancelaria Sejmu RP) diff --git a/data/eltec_pol/eltec_pol.md b/data/eltec_pol/eltec_pol.md index 6af8fa37d69d213ff9c0a295b2a68d8fac43b7d8..e51ea09525067e130e159b0f612b6c0b57645189 100644 --- a/data/eltec_pol/eltec_pol.md +++ b/data/eltec_pol/eltec_pol.md @@ -30,7 +30,7 @@ Fetched directly from the COST-ELTeC/ELTeC-pol GitHub repository (level1 TEI) by Author metadata present for **100** documents. Empty values mean the upstream record did not expose a machine-readable author field. ## Legal scope note -Flagged, nothing excluded (polish-dynaword-v2#109). 3 documents (eltec_pol_2455254, eltec_pol_2455279, eltec_pol_2455281) carry 150 numbered note markers (1, 61 and 88) and no note text, and their TEI files hold none either (no element; is title-page lines, is empty), so the notes are missing from ELTeC's files and the files do not say whose notes they would be. A fourth document (eltec_pol_2455282) has 33 markers, 17 of them in 17 note paragraphs of the text (569 characters). No TEI header names an editor of a print edition. One document (eltec_pol_2455267) keeps period spelling by our heuristic count, so the modernisation is not uniform. 10 documents contain a "Przedmowa" or "Wstęp" heading (4 of the "Wstęp" ones are chapter titles, restored with the other chapter titles); we read these as the authors' own and kept them. The appendix 'Dodatek' of eltec_pol_2455321 is the author's draft passages for a chapter, as in Wolne Lektury's text, whose base is S. Pigoń's edition (Glob, 1985), not the 1908 print the TEI header names; its short labels ('Brulionowe rzuty rozdziału...', '(A)', '[Rękopis nieczytelny]') are the editor's and are kept with the drafts. 4 documents contain 3,649 soft hyphens (U+00AD), invisible line-break hints that were digitised with the text. +Flagged, nothing excluded. 3 documents (eltec_pol_2455254, eltec_pol_2455279, eltec_pol_2455281) carry 150 numbered note markers (1, 61 and 88) and no note text, and their TEI files hold none either (no element; is title-page lines, is empty), so the notes are missing from ELTeC's files and the files do not say whose notes they would be. A fourth document (eltec_pol_2455282) has 33 markers, 17 of them in 17 note paragraphs of the text (569 characters). No TEI header names an editor of a print edition. One document (eltec_pol_2455267) keeps period spelling by our heuristic count, so the modernisation is not uniform. 10 documents contain a "Przedmowa" or "Wstęp" heading (4 of the "Wstęp" ones are chapter titles, restored with the other chapter titles); we read these as the authors' own and kept them. The appendix 'Dodatek' of eltec_pol_2455321 is the author's draft passages for a chapter, as in Wolne Lektury's text, whose base is S. Pigoń's edition (Glob, 1985), not the 1908 print the TEI header names; its short labels ('Brulionowe rzuty rozdziału...', '(A)', '[Rękopis nieczytelny]') are the editor's and are kept with the drafts. 4 documents contain 3,649 soft hyphens (U+00AD), invisible line-break hints that were digitised with the text. Statistics were recomputed directly from the released parquet file. diff --git a/data/eurlex/eurlex.license-evidence.json b/data/eurlex/eurlex.license-evidence.json index 48d6ab1f70145a94408970b7ed2c6acffd12ac91..6081e722042bbf77bd668ac52500af70329ac985 100644 --- a/data/eurlex/eurlex.license-evidence.json +++ b/data/eurlex/eurlex.license-evidence.json @@ -4,7 +4,6 @@ "reviewed_at": "2026-10-19", "label": "LicenseRef-EU-Reuse-Policy", "previous_label": "CC-BY-4.0", - "issue": "slayerlabs/polish-dynaword-v2#57, #108; open question: #56 B5", "reuse_basis": { "documents": [ { @@ -58,7 +57,7 @@ "rows": 242488, "chars": 5859513831, "tokens": 2333038468, - "change": "per-row license column CC-BY-4.0 -> LicenseRef-EU-Reuse-Policy, the 92 IASB-notice documents dropped (v2#57) and the 480 documents the row review drops (v2#108), by src/clean_eurlex.py; every kept row is otherwise identical to v0.2.5" + "change": "per-row license column CC-BY-4.0 -> LicenseRef-EU-Reuse-Policy, the 92 IASB-notice documents dropped and the 480 documents the row review drops, by src/clean_eurlex.py; every kept row is otherwise identical to v0.2.5" }, "document_kinds_heuristic": { "method": "first 200 characters of each document", @@ -108,7 +107,7 @@ "keep:legal_argument": 3, "keep:not_a_credit": 31 }, - "review_note": "Superseded by the v2#108 row review: each of the 97 documents is a review row; the split is by decision:reason. The 2026-10-06 first-occurrence labels (33 third-party, 25 EU, 7 binary, 32 noise) counted eurlex_1888527 and eurlex_1900544 as credits; both quote a (c) line inside a legal argument (two Advocate General's opinions) and are kept. eurlex_1825861, a Commission staff working document whose photographs need the rights holder's direct permission, is dropped." + "review_note": "Superseded by the row review: each of the 97 documents is a review row; the split is by decision:reason. The 2026-10-06 first-occurrence labels (33 third-party, 25 EU, 7 binary, 32 noise) counted eurlex_1888527 and eurlex_1900544 as credits; both quote a (c) line inside a legal argument (two Advocate General's opinions) and are kept. eurlex_1825861, a Commission staff working document whose photographs need the rights holder's direct permission, is dropped." }, "author_header_categories": { "method": "regex on the first 3000 characters; counts in the scan file", @@ -116,12 +115,11 @@ "eesc": 5154, "state_aid_sa": 2941, "un_ece_regulation": 253, - "note": "Not third-party under the notice by themselves: they are texts of EU bodies or Commission notices. They matter only if those bodies' reuse terms differ (not checked). The audit's rough shares (ECB ~4%, state aid ~2.5%) do not reproduce with these patterns. UN ECE regulations are reviewed and dropped in v2#108 by a wider rule (307 documents; see review); this header count is the v0.2.5 scan's." + "note": "Not third-party under the notice by themselves: they are texts of EU bodies or Commission notices. They matter only if those bodies' reuse terms differ (not checked). The audit's rough shares (ECB ~4%, state aid ~2.5%) do not reproduce with these patterns. UN ECE regulations are reviewed and dropped by a wider rule (307 documents; see review); this header count is the v0.2.5 scan's." }, "not_found": "No large-scale reproduction of non-EU copyrighted works was found by these patterns. Recall for third-party text they do not target is unknown (Inferred).", - "decision": "2026-10-06, maintainer: drop the 92 IASB-notice documents (Hub PR 71). 2026-10-19, maintainer (v2#108): drop the 480 documents the review marks drop (35 third-party credits, 307 UN ECE regulations, 138 European Parliament stubs). The other (c)-sign and author-header documents are kept.", + "decision": "2026-10-06, maintainer: drop the 92 IASB-notice documents (Hub PR 71). 2026-10-19, maintainer: drop the 480 documents the review marks drop (35 third-party credits, 307 UN ECE regulations, 138 European Parliament stubs). The other (c)-sign and author-header documents are kept.", "review": { - "issue": "slayerlabs/polish-dynaword-v2#108", "file": "data/eurlex/eurlex.review.csv", "sha256": "082feea1a6d99c2b3c2680189cef4577257a454008fd3e751b45300df51fe5a2", "decided": "2026-10-19, maintainer: drop third-party credit documents, UN ECE regulations republished in the Official Journal (widened rule, hand-checked), and the European Parliament divider and discharge stubs; keep the rest", @@ -775,6 +773,6 @@ "whether the ECB, EESC, Council, Parliament and the Court of Justice publish reuse terms of their own, and whether they differ from the notice", "the 'Unless otherwise specified' clause per document: only the IASB notice, the (c) sign, photo-credit lines and UN ECE regulation headers were searched for", "Official Journal documents quoting national, standards bodies' or other private texts in annexes, other than UN ECE regulations", - "the Publications Office's position on non-Commission documents (open question, v2#56 B5)" + "the Publications Office's position on non-Commission documents" ] } diff --git a/data/govpl/govpl.md b/data/govpl/govpl.md index dd515fbfee5a5ebbd429559a0afcdeff3eec994f..cc21396490457b091b280543ab30cd52d81b201f 100644 --- a/data/govpl/govpl.md +++ b/data/govpl/govpl.md @@ -11,7 +11,7 @@ gov.pl — Polish government press releases - **Added:** 2026-07-19; PAP reprints removed 2026-10-06; other third-party texts removed 2026-10-19; prosecutor-office releases removed 2026-10-22 ## Licensing — traceable basis -gov.pl offers its text under CC BY-SA 4.0. The site footer and https://www.gov.pl/web/gov/prawa-autorskie say: "Treści tekstowe publikowane w serwisie (z wyłączeniem treści audiowizualnych), są udostępniane na licencji typu Creative Commons: uznanie autorstwa - na tych samych warunkach 4.0 (CC BY-SA 4.0)." All rows rely on this offer as it stood when they were fetched (2026-07-19). Wayback captures of the page from 2026-07-18 (https://web.archive.org/web/20260718065324/https://www.gov.pl/web/gov/prawa-autorskie) and 2026-10-15 (https://web.archive.org/web/20261015193442/https://www.gov.pl/web/gov/prawa-autorskie) show the same text. Earlier footers were different: CC BY 3.0 PL from the first capture (2019-08-05) to 2022-08-17, CC BY-NC-ND 3.0 PL from 2022-08-19 to 2025-12-12, and today's text from 2025-12-18. By the date listed on gov.pl, 35,207 rows date from the CC BY-NC-ND 3.0 PL period, 24,201 from the CC BY 3.0 PL period and 7,381 from before 2019-08-05. That today's offer also covers texts first published under an earlier footer is our reading; it is not certain. The same page excludes works whose copyright belongs to third parties; using those needs the owners' consent. Articles crediting PAP and other third-party texts are therefore dropped (legal note). +gov.pl offers its text under CC BY-SA 4.0. The site footer and https://www.gov.pl/web/gov/prawa-autorskie say: "Treści tekstowe publikowane w serwisie (z wyłączeniem treści audiowizualnych), są udostępniane na licencji typu Creative Commons: uznanie autorstwa - na tych samych warunkach 4.0 (CC BY-SA 4.0)." All rows rely on this offer as it stood when they were fetched (2026-07-19). Wayback captures of the page from 2026-07-18 (https://web.archive.org/web/20260718065324/https://www.gov.pl/web/gov/prawa-autorskie) and 2026-10-15 (https://web.archive.org/web/20261015193442/https://www.gov.pl/web/gov/prawa-autorskie) show the same text. Earlier footers were different: CC BY 3.0 PL from the first capture (2019-08-05) to 2022-08-17, CC BY-NC-ND 3.0 PL from 2022-08-19 to 2025-12-12, and today's text from 2025-12-18. By the date listed on gov.pl, 35,207 rows date from the CC BY-NC-ND 3.0 PL period, 24,201 from the CC BY 3.0 PL period and 7,381 from before 2019-08-05; 5 rows whose mistyped year (such as 1024) falls before that date are not counted. That today's offer also covers texts first published under an earlier footer is our reading; it is not certain. The same page excludes works whose copyright belongs to third parties; using those needs the owners' consent. Articles crediting PAP and other third-party texts are therefore dropped (legal note). ## 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). v0.2.6 removes PAP reprints, the third-party texts listed in govpl.third-party-review.csv and the prosecutor offices' releases from the v0.2.5 Parquet with src/clean_govpl.py, which also writes govpl.attribution.jsonl: each row's gov.pl URL, subsite, title and date. diff --git a/data/open_icm_pl/open_icm_pl.checksums.json b/data/open_icm_pl/open_icm_pl.checksums.json index ab310bada0adc9e57959829c587932b1c7a1b718..a05bf80b1ea54f7903506db87ca811f7af321b3a 100644 --- a/data/open_icm_pl/open_icm_pl.checksums.json +++ b/data/open_icm_pl/open_icm_pl.checksums.json @@ -2,11 +2,11 @@ "NOTICE.md": "e4f645cd0c26e4408910ee78d3a0653519a48f76166c7ece644a6992168e8af7", "open_icm_pl.attribution.jsonl": "4b490d4505f226317435dd11069c0b071a5e58d497e42e151818439a62c4dfa3", "open_icm_pl.decisions.jsonl": "8f1d90bb052398bcd18eae457218f8b5b9d68ce8dd114168b1fff305570a4eda", - "open_icm_pl.licence-basis.json": "1f3df27ad104feac062fc4264c5393dbcd5f6abc8502ddacd0690fff2fbca6cb", - "open_icm_pl.md": "fe46629782610df7705c3360cb647a904c24f4a881d392426cbfe719dfb9a272", + "open_icm_pl.licence-basis.json": "4a3f97a164ddfc1eabc26f7312a268dee4e0a47db8f4eddc114bb0d40e70eeff", + "open_icm_pl.md": "8df2f53e731ee50d900a97182eacbe0a814c7c96acc3311a5efe7669d7aeb8f6", "open_icm_pl.overlap_audit.json": "95d29efa6a0038913bcb91a4bdc6ba25aa85d081eff5f85fedc9c63e2f50e967", "open_icm_pl.parquet": "8a5e2cdbd3bb5575907d2d14e740316b1df010fd24d8c230bf779b5a6f9aa399", - "open_icm_pl.publisher-check.json": "df988ed8ee92db30c8d39babebf513faa795eed3b902a876e60d65bdf7394039", + "open_icm_pl.publisher-check.json": "a127bace44823cb49ff7bbef57ef2cf2127d9737dc64cff0373dd08cdcb74353", "open_icm_pl.qa.json": "0f9bf4531e33d0ec141b50ad08756ac90c663eac0786691ac80bb0f6f265dcce", "open_icm_pl.review.csv": "f98a7dc73181b746e91a6033291a944599fc88cb69ce51a2c235c35cf647873a", "open_icm_pl.sample.jsonl": "8f79168ad93142aefeb159f0d527a89ad55e1c21971a0320222c51bdbf839ce0", diff --git a/data/open_icm_pl/open_icm_pl.licence-basis.json b/data/open_icm_pl/open_icm_pl.licence-basis.json index 328a9103b4bd1632ff02645b6bbc86984e9bc85b..93f86801c6487c37605b5301a97464826a379d18 100644 --- a/data/open_icm_pl/open_icm_pl.licence-basis.json +++ b/data/open_icm_pl/open_icm_pl.licence-basis.json @@ -20,7 +20,6 @@ "result": "8 rows had a hit: 2 file_note, 3 conflicts, 1 photo credit (a third-party note, not the work's: not a basis), 2 unrelated words; no other printed licence found", "rows_read": 85 }, - "issue": "slayerlabs/polish-dynaword-v2#111", "item_pages": "not requested: open.icm.edu.pl/robots.txt disallows /search, /browse/*, /info/* and admin paths for all agents and all paths for ClaudeBot", "licence_files": { "bytes": 2894, @@ -79,7 +78,7 @@ ], "read": "2026-10-20", "rows": 80, - "sha256": "df988ed8ee92db30c8d39babebf513faa795eed3b902a876e60d65bdf7394039", + "sha256": "a127bace44823cb49ff7bbef57ef2cf2127d9737dc64cff0373dd08cdcb74353", "what": "for each of the 80 records whose licence label only the repository states, whether the publisher's own page states a licence, as read on 2026-10-20" }, "repository_check": { diff --git a/data/open_icm_pl/open_icm_pl.md b/data/open_icm_pl/open_icm_pl.md index c5194d41da81a1b0b78ad9926454a503575f8ec0..1b5759986729a4c27714c3d973546e53c96e8e57 100644 --- a/data/open_icm_pl/open_icm_pl.md +++ b/data/open_icm_pl/open_icm_pl.md @@ -4,7 +4,7 @@ This target-specific slice is derived from the deterministic 100-record OPEN ICM - Acquired: 100; retained after source QA: 95 - Exact title/DOI overlaps with `biblioteka_nauki` excluded: 10 -- Dropped in the licence review (v2#111; no licence basis beyond the repository's own field, or the year rule): 74 +- Dropped in the licence review (no licence basis beyond the repository's own field, or the year rule): 74 - Proposed records: 11 - Proposed tokens: 441,475 (`cl100k_base` proxy) - Characters: 1,203,239; author coverage: 100.0% @@ -44,7 +44,7 @@ the status of every quoted third-party passage. (32), CC-BY-SA-3.0-PL (38), CC-BY-SA-3.0 (1), CC-BY-4.0 (7) and CC-BY-SA-4.0 (7). `Dozwolony użytek` and NC variants are rejected. -## Licence basis (v2#111) +## Licence basis The repository label (`dc.rights`) is set by the depositor, so it is not a basis by itself. A record is kept only if a second source states the licence; @@ -111,7 +111,8 @@ Not established: ## Scrubber and residual-PII spot check Scrubber that ran: **pattern redaction in `src/fetch_open_icm_pl.py`** (e-mail -> -`[REDACTED:EMAIL]`, labelled phone -> `[REDACTED:PHONE]`, ID/IBAN patterns; +`[REDACTED:EMAIL]`, labelled phone -> `[REDACTED:PHONE]`; it has no ID or IBAN rule, +and the 11 kept records hold no IBAN, account-number, 11-digit or ID-card pattern; pipeline counts over the 85-record shard before the licence review: 112 e-mail and 4 labelled-phone redactions; the 11 kept records hold 15 `[REDACTED:EMAIL]` and 2 `[REDACTED:PHONE]` placeholders). diff --git a/data/open_icm_pl/open_icm_pl.publisher-check.json b/data/open_icm_pl/open_icm_pl.publisher-check.json index 159af6e5fa5b918e7afd9ead100fe49001f70254..050e1273509aaefcb7824e82f9558061e5ef1cf9 100644 --- a/data/open_icm_pl/open_icm_pl.publisher-check.json +++ b/data/open_icm_pl/open_icm_pl.publisher-check.json @@ -11,7 +11,6 @@ "publisher_cc": "a publisher page states a Creative Commons licence (quote and scope given; `scope` is `article` when the article's own page or metadata carries it, `journal` when only a journal-level page does)", "publisher_other": "a publisher page was read and states no CC licence, or a NC/ND one, or none for this article" }, - "issue": "slayerlabs/polish-dynaword-v2#111", "read": "2026-10-20", "rows": [ { diff --git a/data/parliamentary/parliamentary.md b/data/parliamentary/parliamentary.md index cef681f920dc1637bb7453264a94ae3f67dbfdd0..4bbea92151d3842900a68028ac2664be9ae446af 100644 --- a/data/parliamentary/parliamentary.md +++ b/data/parliamentary/parliamentary.md @@ -29,24 +29,22 @@ The Sejm's interpellations, questions and the government's replies are held unti Parliamentary Corpora. PPC's CC BY licence covers its annotations; none of the linguistic annotation layers is shipped. - Credit for the Sejm material, as a precaution: "Źródło: System Informacyjny Sejmu (Kancelaria Sejmu RP)". - The dump came from IPI PAN's server, not from the Sejm's system, and whether the Sejm's - source note applies to it is open. The root `NOTICE.md` has the details. + The dump came from IPI PAN's server, not from the Sejm's system. The root `NOTICE.md` has + the details. - **License:** official parliamentary materials are excluded from copyright by [art. 4(2) of the Polish Copyright Act](https://eli.gov.pl/api/acts/DU/2025/24/text/O/D20250024.pdf); reuse is governed by the [Polish Open Data and Reuse of PSI Act](https://eli.gov.pl/api/acts/DU/2023/1524/text.html). IPI PAN's PPC page says "The parliamentary data is public domain." (and that the corpus - annotations are CC BY). We read the page on 2026-10-18; its footer says it was last edited on - 2026-10-02, and a copy is archived in polish-dynaword-v2 (`evidence/ppc_page_2026-10-18.html`, - pull request 120). We record the sentence as provenance, not as our legal basis: the basis is art. 4(2), our + annotations are CC BY). We read the page on 2026-10-18 and keep a copy of the page as read; its footer says it was last edited on + 2026-10-02. We record the sentence as provenance, not as our legal basis: the basis is art. 4(2), our assessment, and it does not rest on that page. The page does not date the sentence's first publication. Asked whether the sentence also covers IPI PAN's database right (art. 6 of the Act of 27 July 2001 on the protection of databases), IPI PAN confirmed by e-mail on 2026-10-19 that it covers its right as producer of the database, and agreed to the resource's inclusion in this collection under the collection's CC BY-SA 4.0 tag. That is IPI PAN's consent about its own rights and about the collection-level tag; it does not give the texts a licence and does not - speak for the Sejm or the Senate. The reply is archived in polish-dynaword-v2 - (`evidence/ipipan_reply_2026-10-19.md`, pull request 122). Asked for its basis, IPI + speak for the Sejm or the Senate. The reply is kept on file and is not published. Asked for its basis, IPI PAN answered (e-mail, 2026-10-07) that it is public information made available by statute (the Open Data Act and the Access to Public Information Act), with no agreement with the Chancelleries. Asked whether the documents it received from the Sejm Library (Biblioteka @@ -57,11 +55,9 @@ The Sejm's interpellations, questions and the government's replies are held unti the turns the allowlist keeps (MPs and senators, members of the government, heads of constitutional organs and Sejm and Senate staff). We do not treat statements of guests at sittings (people from outside Parliament and the administration) as official - documents, so they are left out (polish-dynaword-v2#54). The statement does not extend to third-party + documents, so they are left out. The statement does not extend to third-party texts read out or quoted inside a kept turn (for example citizens' letters), which are kept unfiltered as part of the record, and personal data is a separate matter (see "PII" under "Collection and normalization"). - ## What the texts are @@ -149,7 +145,7 @@ Every step lives in `src/fetch_parliamentary.py`; the shard is reproducible from | `sejm_committee_secretary` | "Sekretarz Komisji ... NAME" (base rule) | 543,439 | 8,392 | | `mp` | MP labels with a party tag (base rule) | 3,804 | 13 | - Evidence for the PPC rules (also in the code comments and on polish-dynaword-v2#54): "P. X" and + Evidence for the PPC rules (also in the code comments): "P. X" and "S. X" are announced as MPs and senators in the same texts ("Głos ma poseł Nowicki" before "P. Nowicki", "Głos ma s. Karnicka"); "P." before an office in 1919-39 is "Pan" and is cut before the label is classified (12 persons), and "P." in the Senate (17k characters) stays out. A marshal @@ -263,7 +259,7 @@ against `dziennik_ustaw` and a benchmark-overlap check remain targets). PII trea pattern-based (see above). The legal status above is our assessment, not legal advice. Training benefit is an untested hypothesis. -Filter check (polish-dynaword-v2#114, 2026-10-19; labels by one labeller, Claude): 480 paragraphs of speaker-attributed text, 40 in each of 12 strata (kept or dropped, times +Filter check (2026-10-19; labels by one labeller, Claude): 480 paragraphs of speaker-attributed text, 40 in each of 12 strata (kept or dropped, times pre-1989 plenary, pre-1989 committee, Sejm plenary and committee since 1989, Senate plenary, Senate committee), drawn at random in proportion to length. All shares are shares of characters, not of speeches. diff --git a/data/plwiki_talk/plwiki_talk.checksums.json b/data/plwiki_talk/plwiki_talk.checksums.json index 289175f225b36f916261d49cac7679e23355dae1..e3a477425e780440f010efbd1a891ba2550967eb 100644 --- a/data/plwiki_talk/plwiki_talk.checksums.json +++ b/data/plwiki_talk/plwiki_talk.checksums.json @@ -2,10 +2,10 @@ "NOTICE.md": "a5423296de5fa97853db553ad035bd6182c69c6d887e36f291f9d6b0ab8dcce6", "plwiki_talk.attribution.jsonl": "686c4873dcb9c2dba40ed2954e3d15faa28691d28b45e4b6368855f42995ee9e", "plwiki_talk.decisions.jsonl": "b8e064a147db4606efb724ab3cbcf73bb86eec64203e15de1e42e64d35863867", - "plwiki_talk.md": "8fcd1a0e11889fcb71b662cb566763a70fc5ce8de56f8283684900ddf252d2a1", + "plwiki_talk.md": "286eba45716a0ced5fe21af005038ea09f488f36c0692b9dbe8dcf524b2629a8", "plwiki_talk.overlap_audit.json": "5ef4592279700c06e3f74b99a46b1ddd80a0c732ba44c17caba130b18f9d39c0", "plwiki_talk.parquet": "340e7f90609893ae6cfd033112322ea077c33faf8fb7c6cb7d8c2e270b0079ca", - "plwiki_talk.qa.json": "4ee1b629145be3f54692e33a554bebb696462e283f27ca55e71fc2c41a5bb0b9", + "plwiki_talk.qa.json": "cc6d37b06b348456b07bc550a9b37158748d5a8b3939cb09158bb63f47903227", "plwiki_talk.sample.jsonl": "0a9cc8fdd13a48956efb6b589cd07541c6b7755348b9c089024efc360106705e", "plwiki_talk.stats.json": "4bab29a20f64b95a89a03bf1d8c70052956a002a5c4aa1d5c41637178debc050" } diff --git a/data/plwiki_talk/plwiki_talk.md b/data/plwiki_talk/plwiki_talk.md index a663b8a8c77405b8ef06f72701e3b49d796615b8..6316a278050ab8b48db2a58ae822bdb1dd2bf678 100644 --- a/data/plwiki_talk/plwiki_talk.md +++ b/data/plwiki_talk/plwiki_talk.md @@ -28,7 +28,7 @@ its quality was not measured. File-link residue the stripping leaves (image options such as `thumb|200px`, bare file titles) is removed; category lines stay, since the talk pages discuss categories. v0.2.6 -removed it from the committed text with `src/clean_plwiki_talk.py retext` (v2#116): +removed it from the committed text with `src/clean_plwiki_talk.py retext`: 536 records changed and none fell under 500 characters; near-duplicate decisions were not re-traced (`plwiki_talk.qa.json`, `residue_cleanup`). The review measurements below (spot check, overlap audit) were taken on the 43,054 records before it. @@ -101,7 +101,7 @@ the shipped `last_revision_at` and wikitext length (and the `permalink` revision data in them is redacted as in the text, by the same patterns and with the same false positives (two ISBNs in a row can read as an account number, a DOI or a `::` as an IP address); `qa.json` (`citations`) counts the redactions. -v0.2.5 labelled every row `CC-BY-SA-4.0`; before this relabel, main labelled each row by its page's +The contributed build (Hub PR 36) labelled every row `CC-BY-SA-4.0`; before this relabel, main labelled each row by its page's last revision alone (`CC-BY-SA-4.0` from 2023-06-07). Text quoted from other works is not under these licences. It is used under the quotation right diff --git a/data/plwiki_talk/plwiki_talk.qa.json b/data/plwiki_talk/plwiki_talk.qa.json index d212b4d27f88640a8989af4b7b0b35f0850745c9..de8b7d271776534739e90a4614895b104962a9ab 100644 --- a/data/plwiki_talk/plwiki_talk.qa.json +++ b/data/plwiki_talk/plwiki_talk.qa.json @@ -2,7 +2,6 @@ "benchmark_overlap": "pending", "citations": { "citations": 5215, - "issue": "slayerlabs/polish-dynaword-v2#110", "redacted": { "account_candidate": 3, "email": 2, @@ -35,7 +34,6 @@ "shipped_before_cutoff": 17990 }, "created_on_cutoff_day": 3, - "issue": "slayerlabs/polish-dynaword-v2#110", "stub": { "checked_at": "2026-10-18", "name": "plwiki-20261001-stub-meta-history.xml.gz", @@ -67,7 +65,6 @@ }, "dropped_duplicate": [], "dropped_short": [], - "issue": "slayerlabs/polish-dynaword-v2#116", "not_retraced": { "note": "near-duplicate decisions and rejected rows' characters are the build's", "rejected_as_copies_of_dropped_rows": 0 diff --git a/data/plwiki_user_talk/plwiki_user_talk.checksums.json b/data/plwiki_user_talk/plwiki_user_talk.checksums.json index 38b4d8b5a855824479451ca59589031c318dbf3a..4bf5f1324d727de27217aa1e702698bb7ca08f70 100644 --- a/data/plwiki_user_talk/plwiki_user_talk.checksums.json +++ b/data/plwiki_user_talk/plwiki_user_talk.checksums.json @@ -2,10 +2,10 @@ "NOTICE.md": "3f0c91b0658a4831f6d6063164532e2f531ac42f90044e5bf71fa649f687ae48", "plwiki_user_talk.attribution.jsonl": "6d8502cce055525c00afb267df38a8dc22573f7a6a1710fe44457b719a21972b", "plwiki_user_talk.decisions.jsonl": "20758b5be755965f3c2e1f45abdbffa49cdbae2aea1cc1ab715d9fba38def0c1", - "plwiki_user_talk.md": "8668881ddb8f29961770b6c6e40d6e0bd4b58607f324ffdc63407f594e434a71", + "plwiki_user_talk.md": "03e37e1bee783dfde7f5f5283e3f538693455489812dce60face246e900f4e8c", "plwiki_user_talk.overlap_audit.json": "52bbe088455f25ed082470c8ffd93ddcebfef633f514cf3c6dc565afc35afc6e", "plwiki_user_talk.parquet": "13ccc93cf72528a2cda5045a16d6f942af5f1a39727d9c3781fa903ea4a794f9", - "plwiki_user_talk.qa.json": "f6796a8e3015a8bcaf0b2ba9c7b34c9b91eb7bbf0940c88d242e725981d054a8", + "plwiki_user_talk.qa.json": "2f1a227eae8df37df66ea1f77b8ac567212b3cc0f9a6c11e83842aabe42d21d7", "plwiki_user_talk.sample.jsonl": "00864a3a50bf20cf434fa2379e27c5b00a12f7a210a2a55449e49ee7880d5e5a", "plwiki_user_talk.stats.json": "37733b981591ca4ad7e64f172da7af8f953b4a3020b7e45cf887a291eb639983" } diff --git a/data/plwiki_user_talk/plwiki_user_talk.md b/data/plwiki_user_talk/plwiki_user_talk.md index 82c025ac58abeb0f55fa1951f94173fb1733a04c..16e40030fd8d5f57b180edb728dab087feb02439 100644 --- a/data/plwiki_user_talk/plwiki_user_talk.md +++ b/data/plwiki_user_talk/plwiki_user_talk.md @@ -29,7 +29,7 @@ plwiki_talk slice. File-link residue the stripping leaves (image options such as `thumb|200px`, bare file titles) is removed; category lines stay, since the talk pages discuss categories. v0.2.6 -removed it from the committed text with `src/clean_plwiki_talk.py retext` (v2#116): +removed it from the committed text with `src/clean_plwiki_talk.py retext`: 27,221 records changed and 232 fell under 500 characters and were dropped (`too_little_text_after_residue_cleanup` in the decisions); near-duplicate decisions were not re-traced (`plwiki_user_talk.qa.json`, `residue_cleanup`). The review measurements @@ -103,7 +103,7 @@ the shipped `last_revision_at` and wikitext length (and the `permalink` revision data in them is redacted as in the text, by the same patterns and with the same false positives (two ISBNs in a row can read as an account number, a DOI or a `::` as an IP address); `qa.json` (`citations`) counts the redactions. -v0.2.5 labelled every row `CC-BY-SA-4.0`; before this relabel, main labelled each row by its page's +The contributed build (Hub PR 40) labelled every row `CC-BY-SA-4.0`; before this relabel, main labelled each row by its page's last revision alone (`CC-BY-SA-4.0` from 2023-06-07). Text quoted from other works is not under these licences. It is used under the quotation right diff --git a/data/plwiki_user_talk/plwiki_user_talk.qa.json b/data/plwiki_user_talk/plwiki_user_talk.qa.json index fef9714756436c83dff0dca52fb1489fa2fb9173..7936195f4024e7404f31cbf8e09ddcc933d6dc0f 100644 --- a/data/plwiki_user_talk/plwiki_user_talk.qa.json +++ b/data/plwiki_user_talk/plwiki_user_talk.qa.json @@ -2,7 +2,6 @@ "benchmark_overlap": "pending", "citations": { "citations": 3200, - "issue": "slayerlabs/polish-dynaword-v2#110", "redacted": { "email": 1, "ipv4": 4, @@ -33,7 +32,6 @@ "shipped_before_cutoff": 243737 }, "created_on_cutoff_day": 57, - "issue": "slayerlabs/polish-dynaword-v2#110", "stub": { "checked_at": "2026-10-18", "name": "plwiki-20261001-stub-meta-history.xml.gz", @@ -994,7 +992,6 @@ "id": "plwiki_user_talk_5373770" } ], - "issue": "slayerlabs/polish-dynaword-v2#116", "not_retraced": { "note": "near-duplicate decisions and rejected rows' characters are the build's", "rejected_as_copies_of_dropped_rows": 0 diff --git a/data/sejm_api/sejm_api.md b/data/sejm_api/sejm_api.md index 35351aafd4b1c6c1026860246b78716610ed5fae..d83b8b5714bb4c02fb8182187c378c91d30fa036 100644 --- a/data/sejm_api/sejm_api.md +++ b/data/sejm_api/sejm_api.md @@ -41,8 +41,7 @@ The same page says that SIS material, in particular live streams and archive mat produced by iTV Sejm, "nie mogą być elementem komercyjnej oferty żadnej agencji, stacji telewizyjnej, portalu ani innego podmiotu". We report that clause as information only. It is not a licence term of this dataset, and we have not verified whether it reaches these texts -or binds a re-user. A dated copy of the page (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`) -is kept in polish-dynaword-v2 (`evidence/sis_copyright_2026-10-19.*`, pull request 121); +or binds a re-user. We keep a copy of the page as read on 2026-10-19 (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`); the root `NOTICE.md` has the details. ## Provenance and reproducibility @@ -97,7 +96,7 @@ is `id, text, source, added, created, token_count, license, author`. ## Trailer cut -The rights audit (slayerlabs/polish-dynaword-v2#57) found that the snapshot +The v0.2.6 rights audit found that the snapshot appends to 34,980 of the 38,812 fetched speeches a "Przebieg posiedzenia" header of a later statement of the same sitting day, and sometimes that statement's text. `src/clean_sejm_api.py` cuts every trailer (23,485,670 characters). An @@ -118,7 +117,7 @@ texts that became exact duplicates are dropped. The plenary stenograms record everyone who takes the floor, and the snapshot keeps them all: members, ministers, and also guests such as representatives of citizens' legislative initiatives, heads of agencies, prosecutors and a foreign parliament's -speaker. Since slayerlabs/polish-dynaword-v2#99 this source applies the allowlist of +speaker. Since v0.2.6 this source applies the allowlist of `parliamentary` and `sejm_committee_transcripts`: MPs and senators, government members, organs acting in their official capacity, and chancellery staff. A speech whose speaker held none of these roles on that sitting day is dropped. A text that was not delivered diff --git a/data/sejm_api_2011_2022/sejm_api_2011_2022.md b/data/sejm_api_2011_2022/sejm_api_2011_2022.md index a6305a726a82b568dac6b6c1a1020632fd3eda7b..de6024e2916f1456acebe5355a6699c393cab9cc 100644 --- a/data/sejm_api_2011_2022/sejm_api_2011_2022.md +++ b/data/sejm_api_2011_2022/sejm_api_2011_2022.md @@ -10,7 +10,7 @@ from the already merged `sejm_api` 2023-onward artifact. - Source documentation: https://api.sejm.gov.pl/sejm.html - Domain: political/spoken - Language: Polish (`pl`) -- License: `public-domain (official documents)` (a descriptive term, not a licence; see "Licensing and privacy") +- **License:** `public-domain (official documents)` (a descriptive term, not a licence; see "Licensing and privacy") - Created: 2011-11-08 through 2022-12-14 - Added: 2026-08-31 - Contributor: Piotr Styła (`PiotrSty` on Hugging Face; `PiotrStyla` on GitHub) @@ -49,7 +49,7 @@ from the already merged `sejm_api` 2023-onward artifact. ## Trailer cut -The rights audit (slayerlabs/polish-dynaword-v2#57) found that the snapshot +The v0.2.6 rights audit found that the snapshot appends to 105,920 of the 118,902 speeches a "Przebieg posiedzenia" header of a later statement of the same sitting day, and sometimes that statement's text. `src/clean_sejm_api_2011_2022.py` cuts every trailer (97,723,744 characters) with @@ -68,17 +68,17 @@ published, 34 of them cut from a speech that is itself dropped as contained. ## Existing-source overlap -The rights audit (slayerlabs/polish-dynaword-v2#57) found that this source +The v0.2.6 rights audit found that this source re-publishes text already in `parliamentary`. A speech is dropped when one document of a pinned reference set holds at least half of its 5-word shingles (containment >= 0.5 over NFKC-casefolded `\w+` tokens, the tokenisation of the repo's `near_dedup`, in `src/shingle_containment.py`; the trailers are cut first, see "Trailer cut"). The reference set is every Parquet whose registry `release` is not `None`: -`parliamentary` (the PPC TEI rebuild of slayerlabs/polish-dynaword-v2#54, Hub PR 108, with +`parliamentary` (the PPC TEI rebuild, Hub PR 108, with Hub PR 111's encoding repair and exact-copy drop) and `sejm_api` (after its own trailer cut), each pinned by SHA-256 in `REFERENCES`. Re-pinning from Hub PR 108's `parliamentary` to Hub PR 111's left every output of this script byte-identical except the pin in the stats. -Re-pinning `sejm_api` to its allowlist-filtered release (slayerlabs/polish-dynaword-v2#99) +Re-pinning `sejm_api` to its allowlist-filtered release publishes 3 rows more (Wiewiórowski 2014-08-29, Bielak-Jomaa 2015-04-22, Nowak 2019-05-16), all contained in one `sejm_api` document that the filter removed, and changes no other row. The comparison with the v0.2.5 build below was measured before that change. @@ -119,7 +119,7 @@ Against the v0.2.5 `parliamentary` this step dropped 93,861 rows. Against the re speaker because no allowlist rule matches: representatives of citizens' legislative initiative committees, the President's Chancellery, the Prosecutor General's office and agency heads. The allowlist did not apply to this source then; it does since - slayerlabs/polish-dynaword-v2#99 (see "Speaker allowlist"), after this comparison. The + v0.2.6 (see "Speaker allowlist"), after this comparison. The figures here are those of the containment step and do not include that drop. - 470 rows (1,084,769 characters) are not in the dump: under 0.3 of their shingles occur in its Sejm sittings of the same day. 435 of them are statements entered into @@ -133,7 +133,7 @@ Against the v0.2.5 `parliamentary` this step dropped 93,861 rows. Against the re speaker lines inside a turn (8) and a committee chair who is not a member (1). The 23 speeches of MP Piotr van der Coghen stay dropped: the rebuild keeps a name with a -particle when it is a member's (slayerlabs/polish-dynaword-v2#54, decision 1A). +particle when it is a member's. Known limits: containment is measured against single reference documents, not a union, and a threshold of 0.5 with no minimum size also drops short formulaic speeches. The @@ -148,7 +148,7 @@ the speech's own wording in the reference (4 of 10 between 0.3 and 0.5, 10 of 10 The snapshot keeps everyone who takes the floor in the plenary sittings: members, ministers, and also guests such as representatives of citizens' legislative initiatives, heads of -agencies, prosecutors and the President's Chancellery. Since slayerlabs/polish-dynaword-v2#99 +agencies, prosecutors and the President's Chancellery. Since v0.2.6 this source applies the allowlist of `parliamentary` and `sejm_committee_transcripts`: MPs and senators, government members, organs acting in their official capacity, and chancellery staff. A speech whose speaker held none of these roles on that sitting day is dropped. A text @@ -253,8 +253,7 @@ The same page says that SIS material, in particular live streams and archive mat produced by iTV Sejm, "nie mogą być elementem komercyjnej oferty żadnej agencji, stacji telewizyjnej, portalu ani innego podmiotu". We report that clause as information only. It is not a licence term of this dataset, and we have not verified whether it reaches these texts -or binds a re-user. A dated copy of the page (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`) -is kept in polish-dynaword-v2 (`evidence/sis_copyright_2026-10-19.*`, pull request 121); +or binds a re-user. We keep a copy of the page as read on 2026-10-19 (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`); the root `NOTICE.md` has the details. The source release heuristically redacts email addresses, PESEL diff --git a/data/sejm_committee_transcripts/sejm_committee_transcripts.md b/data/sejm_committee_transcripts/sejm_committee_transcripts.md index d60b15ad72a029563811c9ca2a68518429afdf8f..251eda42e7fc8abf30dbfc6a41bdd23500f56948 100644 --- a/data/sejm_committee_transcripts/sejm_committee_transcripts.md +++ b/data/sejm_committee_transcripts/sejm_committee_transcripts.md @@ -13,11 +13,12 @@ heads of constitutional organs, Sejm and Senate staff; see "Speaker allowlist"): `GET /sejm/term{n}/committees/{code}/sittings/{num}/pdf`. Each record pins its exact source PDF endpoint in `sejm_committee_transcripts.attribution.jsonl` (`source_url`); the per-sitting `content_sha1` fingerprints the transcript body. -- License: no licence is attached to the texts. Our assessment is that the kept - transcripts, which record statements by official speakers, are excluded from copyright by - [art. 4 pkt 2 of the Polish Copyright Act](https://eli.gov.pl/api/acts/DU/2025/24/text/O/D20250024.pdf); - the per-record `license` value `public-domain (official documents)` is a descriptive term - for that status, not a licence (see "Legal status" below). The +- **License:** `public-domain (official documents)` (the `license` value of every record; + a descriptive term, not a licence). No licence is attached to the texts. Our assessment + is that the kept transcripts, which record statements by official speakers, are excluded + from copyright by + [art. 4 pkt 2 of the Polish Copyright Act](https://eli.gov.pl/api/acts/DU/2025/24/text/O/D20250024.pdf) + (see "Legal status" below). The [Polish Open Data and Reuse of PSI Act, arts. 2(12), 5, 6, 14, 15, 17](https://eli.gov.pl/api/acts/DU/2023/1524/text.html) is cited as the reuse framework. No upstream Creative Commons grant is claimed. Evidence snapshot: `sejm_committee_transcripts.license-evidence.json` (verified 2026-09-18; @@ -65,8 +66,7 @@ The same page says that SIS material, in particular live streams and archive mat produced by iTV Sejm, "nie mogą być elementem komercyjnej oferty żadnej agencji, stacji telewizyjnej, portalu ani innego podmiotu". We report that clause as information only. It is not a licence term of this dataset, and we have not verified whether it reaches these texts -or binds a re-user. A dated copy of the page (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`) -is kept in polish-dynaword-v2 (`evidence/sis_copyright_2026-10-19.*`, pull request 121); +or binds a re-user. We keep a copy of the page as read on 2026-10-19 (SHA-256 `cb4d21a44f5b09d50cdf95518aad77632b2750b5df6535c1d8aa894152b80469`); the root `NOTICE.md` has the details. ## What the texts are diff --git a/data/studia_bas/studia_bas.license-evidence.json b/data/studia_bas/studia_bas.license-evidence.json index efc3b3c9e2b2cfdc6cab257973fa48ce46e72d6d..8170d4139b4dd8081672947632157da4f36ce31d 100644 --- a/data/studia_bas/studia_bas.license-evidence.json +++ b/data/studia_bas/studia_bas.license-evidence.json @@ -297,7 +297,7 @@ }, "pdf_notices": { "retrieved_at": "2026-10-06T17:08Z/17:12Z", - "note": "A maintainer downloaded each issue PDF in a browser from orka.sejm.gov.pl; scripted GETs to the issue agent got an HTTP 403 from the host's bot protection (slayerlabs/polish-dynaword-v2#79). url is the browser's recorded download source. Every file's sha256 equals its eligible_pdfs entry, so these are the bytes the build read. Text was extracted with PyMuPDF; a notice counts when, after whitespace normalisation, it is pdf_issue_editorial_notice or pdf_article_license_notice word for word. No other licence wording occurs: the remaining matches for licencj-/licens- are article prose (licencjat, patent licences, music licences).", + "note": "A maintainer downloaded each issue PDF in a browser from orka.sejm.gov.pl; scripted GETs to the issue agent got an HTTP 403 from the host's bot protection. url is the browser's recorded download source. Every file's sha256 equals its eligible_pdfs entry, so these are the bytes the build read. Text was extracted with PyMuPDF; a notice counts when, after whitespace normalisation, it is pdf_issue_editorial_notice or pdf_article_license_notice word for word. No other licence wording occurs: the remaining matches for licencj-/licens- are article prose (licencjat, patent licences, music licences).", "issue_editorial_notices": 17, "article_notices": 115, "article_notices_vs_rows": "115 articles carry the notice; the build read 115 and kept 112 (3 dropped by the language gate, in issues 67, 69 and 82).", diff --git a/data/ted_pl/ted_pl.license-evidence.json b/data/ted_pl/ted_pl.license-evidence.json index fda807dc58c55bbefeb795c391b54e6dd46c7a25..3d4f17fe888ddf3393a8339d70b28083e95031df 100644 --- a/data/ted_pl/ted_pl.license-evidence.json +++ b/data/ted_pl/ted_pl.license-evidence.json @@ -4,8 +4,8 @@ "second_read_at": "2026-10-06T00:19:00Z", "license": "TED notice status, no licence granted", "license_spdx": "LicenseRef-TED-Notice-Status", - "status": "no-licence-status-recorded-held-for-nergal", - "review_scope": "Rights status and PII pattern scan. 15,544 shipped notices re-fetched; 1,320 removed by TED buyer legal type in the v0.2.6 rebuild (buyer_type_rebuild_2026_10) and 14 as third-party text (third_party_sample_review_2026_10, third_party_screen_2026_10); 14,210 retained. Source stays release: None until the NERGAL pass (slayerlabs/polish-dynaword-v2#60). Method: .agents/skills/source-rights-review. V = read on the page on the retrieval date; I = inferred, not verified, not confirmed.", + "status": "no-licence-status-recorded", + "review_scope": "Rights status and PII pattern scan. 15,544 shipped notices re-fetched; 1,320 removed by TED buyer legal type in the v0.2.6 rebuild (buyer_type_rebuild_2026_10) and 14 as third-party text (third_party_sample_review_2026_10, third_party_screen_2026_10); 14,210 retained. The source ships in v0.2.6 without a NERGAL pass, which runs before v0.2.7. Method: .agents/skills/source-rights-review. V = read on the page on the retrieval date; I = inferred, not verified, not confirmed.", "finding": "No licence is granted for the notice text and none is claimed; LicenseRef-TED-Notice-Status names a status, not a licence, and the label is provisional. (1) EU: the TED legal notice states that procurement notices in the Supplement to the OJEU can be freely reused for commercial or non-commercial purposes unless otherwise noted (V); we follow it as terms of reuse, not as a grant, because the Decision it names covers Commission documents (I). (2) PL, our assessment: notices of Polish public-sector contracting authorities may be official documents excluded from copyright (Copyright Act art. 4 pkt 2, a contested reading), many short or formulaic passages are not protected works, and the Open Data Act supports re-use where it applies (I). Only notices whose TED buyer legal type is a public authority, a body governed by public law or a public undertaking are kept. Third-party works and personal data are not covered; status outside Poland has not been assessed. Open points are listed in not_checked.", "basis_eu": { "mark": "V", @@ -143,8 +143,8 @@ "whether each company contracting authority is a 'podmiot zobowiazany' under art. 3", "whether the 'urzedowe dokumenty' carve-out of Copyright Act art. 4 pkt 2 covers a tender notice", "equivalence between TED notice content and the same content on the national BZP platform", - "the confirmation of the Polish status by a ruling or an authority's statement (open question)", - "personal names (NERGAL pass, v2#60)", + "the confirmation of the Polish status by a ruling or an authority's statement", + "personal names (NERGAL pass)", "the raw TED downloads are kept only in the working directory of the rebuild, not in the repository", "the buyer legal type declared to TED is taken as given; pre-eForms notices use the Search API's mapping of the older authority-type code" ], diff --git a/data/ted_pl/ted_pl.md b/data/ted_pl/ted_pl.md index d1543f3f26e116d1aff20f7783cd607871fc4b06..7f37c6e9e689ec015de515640e95a87aff7b5e34 100644 --- a/data/ted_pl/ted_pl.md +++ b/data/ted_pl/ted_pl.md @@ -39,7 +39,7 @@ notices of private contracting entities are excluded (see "Filtering"). We grant no licence for these texts, and none follows from the TED legal notice, whose terms we follow. `LicenseRef-TED-Notice-Status` names this status; it is not a licence, and the label is provisional. Clause text, URLs, retrieval dates and -page hashes are in `ted_pl.license-evidence.json` (slayerlabs/polish-dynaword-v2#57). +page hashes are in `ted_pl.license-evidence.json`. **EU: TED legal notice** (, read 2026-10-05, sha256 of the page as read `c010943c01af22cf9cb30a32ca4044a3a1ee4e36a090e2dd2d8ee3d15a498997`). diff --git a/data/wikibooks/wikibooks.build.json b/data/wikibooks/wikibooks.build.json index 855e3efde1e88163e9cfb5646da7a04483a9b866..a842c27f8583b13934fc6b31a31a94921fb5549c 100644 --- a/data/wikibooks/wikibooks.build.json +++ b/data/wikibooks/wikibooks.build.json @@ -449,7 +449,6 @@ "title": "Linux/SteamOS" } ], - "issue": "slayerlabs/polish-dynaword-v2#116", "rows_changed": 2141, "step": "fetch_wikimedia.drop_residue" }, diff --git a/data/wikibooks/wikibooks.gfdl-review.json b/data/wikibooks/wikibooks.gfdl-review.json index b83df99c15e3bf248622321e0de5b2a81c121fc6..43d3ca33f4dad58662a6acbf2378495d981d8e16 100644 --- a/data/wikibooks/wikibooks.gfdl-review.json +++ b/data/wikibooks/wikibooks.gfdl-review.json @@ -549,6 +549,6 @@ ], "updated": { "at": "2026-10-19", - "note": "Tokens and labels follow the release after the markup cleanup (slayerlabs/polish-dynaword-v2#116) and the labels by contribution date (v2#110). The pattern and the closest audit pattern match the same 45 and 25 documents in the cleaned text, so the classes and notes stand. Tokens before: matched 122,192, source 15,313,229, closest 69,072. The lone file-link option lines dropped later the same day (v2#116) took wikibooks_1712 from 5,309 to 5,307 tokens: matched 121,973 to 121,971, source 15,261,326 to 15,260,992, closest 68,919 to 68,917; same 45 and 25 documents. Re-cleaning with the file-link rules of Hub PR 135 (v2#116), also on 2026-10-18, took wikibooks_24460 from 4,442 to 4,435 tokens: matched 121,971 to 121,964, source 15,260,992 to 15,260,848, closest 68,917 to 68,910; same 45 and 25 documents. On 2026-10-19 the 4 documents created after 2008-11-01 were withheld, and 3 pages carrying {{GFDL-tekst}} (no pattern match here: the template is dropped with the markup): matched 45 to 41 (121,964 to 85,331 tokens), source 15,260,848 to 15,220,800, closest 25 to 22 (68,910 to 67,896)." + "note": "Tokens and labels follow the release after the markup cleanup and the labels by contribution date. The pattern and the closest audit pattern match the same 45 and 25 documents in the cleaned text, so the classes and notes stand. Tokens before: matched 122,192, source 15,313,229, closest 69,072. The lone file-link option lines dropped later the same day took wikibooks_1712 from 5,309 to 5,307 tokens: matched 121,973 to 121,971, source 15,261,326 to 15,260,992, closest 68,919 to 68,917; same 45 and 25 documents. Re-cleaning with the file-link rules of Hub PR 135, also on 2026-10-18, took wikibooks_24460 from 4,442 to 4,435 tokens: matched 121,971 to 121,964, source 15,260,992 to 15,260,848, closest 68,917 to 68,910; same 45 and 25 documents. On 2026-10-19 the 4 documents created after 2008-11-01 were withheld, and 3 pages carrying {{GFDL-tekst}} (no pattern match here: the template is dropped with the markup): matched 45 to 41 (121,964 to 85,331 tokens), source 15,260,848 to 15,220,800, closest 25 to 22 (68,910 to 67,896)." } } diff --git a/data/wikibooks/wikibooks.md b/data/wikibooks/wikibooks.md index a5f9055be3ae84858b65dc9590d59286b5145dbc..95ac021ed025701b7b6ee9899d867cd8d72267fc 100644 --- a/data/wikibooks/wikibooks.md +++ b/data/wikibooks/wikibooks.md @@ -97,7 +97,7 @@ date; the text set is the same except for the 54 pages withheld by the rights re Articles (namespace 0) only. Redirects, empty pages and pages shorter than 200 characters are skipped. Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5, then `drop_residue` removes what that leaves of category and file links: `Kategoria:...` lines, bare file -titles and file-link options (`thumb|250px|...`); captions stay ([v2#116](https://github.com/slayerlabs/polish-dynaword-v2/issues/116)). +titles and file-link options (`thumb|250px|...`); captions stay. It was applied to the committed text (`fetch_wikimedia.py retext`): 2,141 rows changed, 131,743 characters and 51,983 tokens removed, and 17 pages that fell under 200 characters were dropped (ids and titles in `wikibooks.build.json`). Templates and comments are dropped; `` diff --git a/data/wikinews/wikinews.build.json b/data/wikinews/wikinews.build.json index a964b4d0d6c3605a9b5d8753badcb31682f6f4bd..bea4961193cb2124eff542e46c2100ffc978779a 100644 --- a/data/wikinews/wikinews.build.json +++ b/data/wikinews/wikinews.build.json @@ -4137,7 +4137,6 @@ "title": "Od 1 lutego 2026 na polskojęzycznej Wikipedii rozpoczął działalność MszBot" } ], - "issue": "slayerlabs/polish-dynaword-v2#116", "rows_changed": 24206, "step": "fetch_wikimedia.drop_residue" }, diff --git a/data/wikinews/wikinews.md b/data/wikinews/wikinews.md index 261217f1497beb69b10696007aa5729bd944c7f6..bbe3db5c190a3d5954259522d4e709ae2f3c6688 100644 --- a/data/wikinews/wikinews.md +++ b/data/wikinews/wikinews.md @@ -119,7 +119,7 @@ date; the text set is the same except for the 1 page withheld by the rights revi Articles (namespace 0) only. Redirects, empty pages and pages shorter than 200 characters are skipped. Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5, then `drop_residue` removes what that leaves of category and file links: `Kategoria:...` lines, bare file -titles and file-link options (`thumb|250px|...`); captions stay ([v2#116](https://github.com/slayerlabs/polish-dynaword-v2/issues/116)). +titles and file-link options (`thumb|250px|...`); captions stay. It was applied to the committed text (`fetch_wikimedia.py retext`): 24,206 rows changed, 3,126,538 characters and 1,172,397 tokens removed, and 812 pages that fell under 200 characters were dropped, as was 1 whose cleaned text repeated a lower page id's (ids and titles in `wikinews.build.json`). Templates and comments are dropped; `` diff --git a/data/wikipedia/wikipedia.build.json b/data/wikipedia/wikipedia.build.json index a6b8f7d0e653786f6f1badc4ca2411e831872674..a397659e1fbd5751d7ab7b0cf17fac4b3bb347f8 100644 --- a/data/wikipedia/wikipedia.build.json +++ b/data/wikipedia/wikipedia.build.json @@ -6,7 +6,6 @@ "citations": 7476723, "dumpstatus_url": "https://dumps.wikimedia.org/plwiki/20260901/dumpstatus.json", "file": "citations/wikipedia.citations.parquet", - "issue": "slayerlabs/polish-dynaword-v2#110", "rows": 1468647, "rows_with_citations": 1165616, "sha256": "c667e5df36ab36eb7b812daa6f792c541d2023799b50157c6e3b9fc0d47e3fd3", diff --git a/data/wikipedia/wikipedia.license-evidence.json b/data/wikipedia/wikipedia.license-evidence.json index 23c293a638ada9346a8d97a3a770c81a31a02fbd..a695ec16016f435d5efce5242f431c8d54c570da 100644 --- a/data/wikipedia/wikipedia.license-evidence.json +++ b/data/wikipedia/wikipedia.license-evidence.json @@ -244,7 +244,7 @@ ], "note": "the sample was drawn from this earlier build; test_copyright_sample_matches_the_release reproduces it from the released ids plus rows_dropped_since, each of which must be a copyright drop" }, - "strata_are": "the labels by last revision the release carried before the relabel by contribution (v2#110): CC-BY-SA-3.0 for a page last edited before 2023-06-07, CC-BY-SA-4.0 from that day (src/fetch_wikipedia.py license_for_revision)" + "strata_are": "the labels by last revision the release carried before the relabel by contribution: CC-BY-SA-3.0 for a page last edited before 2023-06-07, CC-BY-SA-4.0 from that day (src/fetch_wikipedia.py license_for_revision)" }, "not_checked": [ "pastes from copyrighted sources beyond the sample above", diff --git a/data/wikivoyage/wikivoyage.build.json b/data/wikivoyage/wikivoyage.build.json index 7bcccc1745292c76f8617f2c2a46cb1acc69dc73..ee2b9143b4d6d2b33af63c17af1c3cf544823901 100644 --- a/data/wikivoyage/wikivoyage.build.json +++ b/data/wikivoyage/wikivoyage.build.json @@ -25415,7 +25415,6 @@ "title": "Gorzewo (powiat gostyniński)" } ], - "issue": "slayerlabs/polish-dynaword-v2#116", "rows_changed": 7163, "step": "fetch_wikimedia.drop_residue" }, diff --git a/data/wikivoyage/wikivoyage.md b/data/wikivoyage/wikivoyage.md index 41b7fbda42d5825a292dcf06c2c607df46d49cca..d506a4b647464aa038e2ca3781d8c3126605647f 100644 --- a/data/wikivoyage/wikivoyage.md +++ b/data/wikivoyage/wikivoyage.md @@ -89,7 +89,7 @@ date; the text set is the same except for the 6,330 pages withheld by the rights Articles (namespace 0) only. Redirects, empty pages and pages shorter than 200 characters are skipped. Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5, then `drop_residue` removes what that leaves of category and file links: `Kategoria:...` lines, bare file -titles and file-link options (`thumb|250px|...`); captions stay ([v2#116](https://github.com/slayerlabs/polish-dynaword-v2/issues/116)). +titles and file-link options (`thumb|250px|...`); captions stay. It was applied to the committed text (`fetch_wikimedia.py retext`): 7,163 rows changed, 312,998 characters and 115,346 tokens removed, and 3 pages that fell under 200 characters were dropped (ids and titles in `wikivoyage.build.json`). Templates and comments are dropped; `` diff --git a/data/wolne_lektury/wolne_lektury.license-evidence.json b/data/wolne_lektury/wolne_lektury.license-evidence.json index 876e9ba40ed9218220583489f9daf3d06507e2f7..f591f88b17f2f2bc589384afa9f81e5bbf42e798 100644 --- a/data/wolne_lektury/wolne_lektury.license-evidence.json +++ b/data/wolne_lektury/wolne_lektury.license-evidence.json @@ -100,7 +100,7 @@ } }, "method": "each row's BN records found by the author's surname and the title of the work and of its print edition; our author and translators compared with BN's fields 100, 245$c and 700, and for public-domain rows BN's death years with 1955 and with WL's date.pd. Every row flagged for an author or translator was read by hand, the other flags in samples.", - "open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them; they are listed in polish-dynaword-v2#109", + "open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them", "pseudonym_with_real_name": { "meaning": "Zofia Trzeszczkowska wrote as Adam M-ski. Most of WL's headers give \"M-ski, Adam [Zofia Trzeszczkowska]\"; natural_order() keeps the bracket after the name.", "rows": 22, @@ -1495,7 +1495,7 @@ "wolne_lektury_2373148" ], "print_after_1955": { - "finding": "the rows printed after 1955 (`edition_review.ids.print_after_1955`), 1,310 at the time (these and the 174 in HELD), checked against BN's catalogue (polish-dynaword-v2#109): for each print, the people named in Wolne Lektury's editor credit, in its edition string and in BN's records of the same title and year, and whether one of them died after 1955 or has no known death year (a later editor). 891: no later editor chose the works and nothing of a later editor's is in the text. 388 are in selections a later editor made: the 174 of two of them are held out of this release (`selections.held`), the other 214 are kept, as are 12 of the 891 whose print's title is itself a selection (`selections.kept`). 30 are prints of 1996 or later, inside the 30-year term of a scholarly edition (art. 99² of the Polish copyright act), none of whose apparatus is in the text; kept. 1 (wolne_lektury_2377379) had a later editor's notes inside the restored author's notes; stripped (`footnote_check.editor_notes_stripped`).", + "finding": "the rows printed after 1955 (`edition_review.ids.print_after_1955`), 1,310 at the time (these and the 174 in HELD), checked against BN's catalogue: for each print, the people named in Wolne Lektury's editor credit, in its edition string and in BN's records of the same title and year, and whether one of them died after 1955 or has no known death year (a later editor). 891: no later editor chose the works and nothing of a later editor's is in the text. 388 are in selections a later editor made: the 174 of two of them are held out of this release (`selections.held`), the other 214 are kept, as are 12 of the 891 whose print's title is itself a selection (`selections.kept`). 30 are prints of 1996 or later, inside the 30-year term of a scholarly edition (art. 99² of the Polish copyright act), none of whose apparatus is in the text; kept. 1 (wolne_lektury_2377379) had a later editor's notes inside the restored author's notes; stripped (`footnote_check.editor_notes_stripped`).", "rows": 1136, "wl_date_pd_wrong": { "wolne_lektury_2374660": "WL's date.pd 2012 is wrong (Konopnicka died 1910); the row is public domain either way." diff --git a/data/wolne_lektury/wolne_lektury.md b/data/wolne_lektury/wolne_lektury.md index 3f01fe1c6577ee1f92038c2198a7ec9462ea9738..51c0301de59e90f49b196400f13a6fc4b22cb25d 100644 --- a/data/wolne_lektury/wolne_lektury.md +++ b/data/wolne_lektury/wolne_lektury.md @@ -11,7 +11,7 @@ Wolne Lektury (school readings) - **Added:** 2026-06-15 ## Licensing — traceable basis -Each document's `license` is the one its own Wolne Lektury book states in dc:rights / dc:rights.license, never its parent collection's (src/wolne_lektury_licences.py, polish-dynaword-v2#57). Documents are matched to books by text: the same head and tail, or, where Wolne Lektury has edited a text since the scrape, a 5-word-shingle share of at least 0.6 at both ends; 17 were matched by hand. A label is set only when the rights text is unambiguous: a public-domain statement with no year after 1955, or one licence with its version. wolne_lektury.licences.tsv lists each document's book (its slug on wolnelektury.pl), the Wolne Lektury rights text and the label. wolne_lektury.attribution.jsonl has one line per document, in the order of the Parquet: title, author, translator, the link to the work on wolnelektury.pl, the full licence URL with its version (CC BY-SA 3.0 PL, 3.0 Unported and 4.0 are kept apart; Wolne Lektury's own link for each of the 34 "3.0 PL" documents names the Unported text and is kept next to ours), every person and note Wolne Lektury credits, the print edition and publisher it names, the line "Książka pochodzi z serwisu Wolne Lektury" and a note on how the text was processed. The released text is Wolne Lektury's plain-text export without its footer, with the author's and translator's notes of the book added at the end where it has them; the footer's content is restored in the sidecar. Our assessment is that these are Wolne Lektury's modernised versions of the print editions, not the editions as first printed. The edition a text follows is the one in Wolne Lektury's print-edition field, kept in the sidecar as `source_edition` (named for 5,856 of the 5,900 documents). Wolne Lektury's editorial notes are not taken over (see the scope note). +Each document's `license` is the one its own Wolne Lektury book states in dc:rights / dc:rights.license, never its parent collection's (src/wolne_lektury_licences.py). Documents are matched to books by text: the same head and tail, or, where Wolne Lektury has edited a text since the scrape, a 5-word-shingle share of at least 0.6 at both ends; 17 were matched by hand. A label is set only when the rights text is unambiguous: a public-domain statement with no year after 1955, or one licence with its version. wolne_lektury.licences.tsv lists each document's book (its slug on wolnelektury.pl), the Wolne Lektury rights text and the label. wolne_lektury.attribution.jsonl has one line per document, in the order of the Parquet: title, author, translator, the link to the work on wolnelektury.pl, the full licence URL with its version (CC BY-SA 3.0 PL, 3.0 Unported and 4.0 are kept apart; Wolne Lektury's own link for each of the 34 "3.0 PL" documents names the Unported text and is kept next to ours), every person and note Wolne Lektury credits, the print edition and publisher it names, the line "Książka pochodzi z serwisu Wolne Lektury" and a note on how the text was processed. The released text is Wolne Lektury's plain-text export without its footer, with the author's and translator's notes of the book added at the end where it has them; the footer's content is restored in the sidecar. Our assessment is that these are Wolne Lektury's modernised versions of the print editions, not the editions as first printed. The edition a text follows is the one in Wolne Lektury's print-edition field, kept in the sidecar as `source_edition` (named for 5,856 of the 5,900 documents). Wolne Lektury's editorial notes are not taken over (see the scope note). ## Provenance Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key `wolne_lektury_corpus`) of Wolne Lektury's plain-text export. What SpeakLeash did to the text is not documented, and who removed the export's footer is not established. In this repository a text is changed in three ways, in this order: leading and trailing whitespace is trimmed (src/build_dynaword.py); two glosses that Wolne Lektury's editors put in square brackets in the main text of two documents (90 characters) are removed, and the sidecar's `modification_note` quotes each (src/clean_wolne_lektury.py); and the 459 texts whose Wolne Lektury book has author's or translator's notes get those notes as sections at the end ("Przypisy autora", "Przypisy tłumacza"; src/wolne_lektury_notes.py), without Wolne Lektury's editorial notes and with its editors' glosses and the editor's notes signed "przyp. red." stripped from them (see the scope note). This repository removes no other text. Whole documents are dropped: 63 eltec_pol novels, 2 for want of a usable licence, 2 whose translation is not free and 174 printed in two selections held out of this release (src/clean_wolne_lektury.py; counts in wolne_lektury.stats.json); the length, language, OCR and duplicate filters dropped none. The text we received lacks some of Wolne Lektury's text, without a mark: checked against Wolne Lektury's book XML (read 2026-10-20), 17 documents lack about 20,600 characters, mostly letters, songs and other passages quoted inside a character's speech in plays and dialogues (e.g. the loan terms in Molière's Skąpiec, 27 paragraphs of Aretino's Żywoty kurtyzan, a dialogue recalled in Żeromski's Róża). The text closes up over each gap, and in a play a speaker's name can stand over an empty speech. Whether Wolne Lektury's text of the time had these passages, or its export or SpeakLeash dropped them, is not established; the documents are listed in wolne_lektury.license-evidence.json (`paragraphs_removed_without_a_mark`). Documents lacking under 100 characters are not listed, and elsewhere Wolne Lektury's XML also differs from our text by later corrections of wording (e.g. a revised translation of Trzej muszkieterowie). Wolne Lektury's metadata, fetched from its public API and book XML, fills `author` ("Autorzy oryginału: A; Tłumaczenie: T" for a translation) and the sidecar; src/build_wolne_lektury_attribution.py writes both and wolne_lektury.license-evidence.json, and checks every text against its SHA-1. @@ -34,7 +34,7 @@ Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key `wolne_ Author metadata present for **5,863** documents. Where `author` is empty, Wolne Lektury names no author or translator (see the scope note). ## Legal scope note -For v0.2.6, 63 documents whose text is an eltec_pol novel are dropped (share of a document's 5-word shingles found in one ELTeC novel >= 0.9; src/clean_wolne_lektury.py, polish-dynaword-v2#72). eltec_pol keeps those 50 novels whole under CC BY 4.0. Three documents only partly in an ELTeC novel are kept: both tomes of Mniszek's Trędowata (the ELTeC text is shorter) and Kochanowski's Pieśń IX, quoted in Łoziński's Oko proroka. Every pair is listed in wolne_lektury.eltec_pairs.tsv. 2 documents are also dropped because Wolne Lektury gives them no usable licence: two Horace odes translated by Paweł Kozioł, one marked only "CC BY-SA" with no version, the other public domain for Marceli Motty's translation and "CC BY-SA" for Kozioł's (polish-dynaword-v2#57). 2 more are dropped after a check of Wolne Lektury's credits against the National Library's catalogue (polish-dynaword-v2#109): Wolne Lektury marks both public domain, but Nietzsche's "Wola mocy" is a joint translation by Konrad Drzewiecki and Stefan Frycz (d. 1960), and Wells's "Wehikuł czasu" follows a 1985 print whose translation an editor born in 1932 revised. The same check corrected the translators of 3 documents and found that the print edition named for a fourth (Hebbel's diaries) is another book; these 4 carry a `metadata_note` in the sidecar. In Montaigne's Próby (3 documents) Wolne Lektury's translator's notes credit the translated quotations to Edmund Cięglewicz, while the National Library's record of the print edition credits Tadeusz Sinko (d. 1966) and Cięglewicz jointly; which quotations each translated is not established. Wrong death years in the rights lines of 25 documents and early public-domain dates of 6 are kept as Wolne Lektury gives them; none changes whether a document is free. Nothing else this check flagged is excluded. `author` is Wolne Lektury's name form (pseudonyms and cryptonyms as Wolne Lektury gives them); the first-edition form of a name is not established. 37 documents have no author because Wolne Lektury gives only "Autor nieznany" or "Praca zbiorowa"; Wolne Lektury has no field for the original title of a translation. Of the public-domain documents, 1,136 name a print edition published after 1955, 58 a critical edition and 229 an introduction, notes or commentary. For the prints after 1955, the people named in Wolne Lektury's credits, in its print-edition field and in the National Library's records of the print were checked for editors who died after 1955 or whose death year is not known (polish-dynaword-v2#109; `edition_review` in the evidence file); otherwise the editors of those editions and their death years are not established. 174 documents are held out of this release until the books' contents are checked, because from their verse lines we estimate that they fill about two fifths or more of the two selections they were printed in: 94 Baczyński poems, 155–197 of the 314 pages of "Poezje" (PIW 1977, selected by Kazimierz Wyka; National Library record 1509594), and 80 poems, 95–128 of the 251 pages of the anthology "Z rodu Anhellich" (Wydawnictwo Dolnośląskie 1991, selected by Stanisław Stabro; record 1051496). The other 226 documents printed in selections made by later editors (e.g. Pawlikowska-Jasnorzewska's "Poezje", collected by Matylda Wiśniewska, 1958; Grabiński's "Utwory wybrane", selected by Artur Hutnikiewicz, 1980; Norwid's "Pisma wierszem i prozą", selected by Juliusz W. Gomulicki, 1984) are included as single public-domain texts, without the editors' introductions or notes. 238 documents keep period spelling by our heuristic count, so the modernisation is not uniform. The text of 10 documents (all under LAL 1.3, no print edition named) has a "Komentarz" heading, which we read as Wolne Lektury's own commentary. The 45 sections headed "Od tłumacza" (44, in 43 documents) or "Uwagi Wydawcy" (1) are part of the printed source, not Wolne Lektury's: Wolne Lektury's book XML marks each as a main-text heading, not a note. The "Od tłumacza" sections are printed as the translators' prefaces, to translations that are public domain or, for Michał Friedman's (d. 2006), under the document's CC BY-SA 3.0 PL licence; the "Uwagi Wydawcy" in Kant's "O potędze ducha" are the notes of Kant's German editor, Christoph Wilhelm Hufeland (d. 1836), in Adam Stögbauer's translation, not a modern publisher's note. In a hand check of 40 random documents, 3 carried matter from the print edition (a publisher's address, a list of editions, an introduction) and none carried Wolne Lektury's credits or notes. The export had no footnotes. From Wolne Lektury's book XML (read 2026-10-20) the author's and translator's notes are restored at the end of the 459 texts that have them: 8,099 author's notes under "Przypisy autora" in 336 texts and 10,838 translator's notes under "Przypisy tłumacza" in 168 texts. Wolne Lektury's editorial notes are not restored, and the 668 glosses its editors added inside 632 of the restored notes (in square brackets, signed "red. WL", "WL" or the like; 131 texts, 77,065 characters) are stripped from them; brackets without that signature are kept. The 23 editor's notes signed "przyp. red." inside 23 restored author's notes (5 texts, 4,792 characters; 19 of them in Stendhal's "O miłości") are stripped the same way; where one bracket holds a translator's note and then an editor's, the translator's part is kept. Two empty notes and three that the export had kept in the text are left out. Wolne Lektury serves no XML for one document (Korczak) and the second book of one merged document was not read, so their notes are not checked. Every public-domain document with translator's notes has its book's public-domain date, which counts the translator. +For v0.2.6, 63 documents whose text is an eltec_pol novel are dropped (share of a document's 5-word shingles found in one ELTeC novel >= 0.9; src/clean_wolne_lektury.py). eltec_pol keeps those 50 novels whole under CC BY 4.0. Three documents only partly in an ELTeC novel are kept: both tomes of Mniszek's Trędowata (the ELTeC text is shorter) and Kochanowski's Pieśń IX, quoted in Łoziński's Oko proroka. Every pair is listed in wolne_lektury.eltec_pairs.tsv. 2 documents are also dropped because Wolne Lektury gives them no usable licence: two Horace odes translated by Paweł Kozioł, one marked only "CC BY-SA" with no version, the other public domain for Marceli Motty's translation and "CC BY-SA" for Kozioł's. 2 more are dropped after a check of Wolne Lektury's credits against the National Library's catalogue: Wolne Lektury marks both public domain, but Nietzsche's "Wola mocy" is a joint translation by Konrad Drzewiecki and Stefan Frycz (d. 1960), and Wells's "Wehikuł czasu" follows a 1985 print whose translation an editor born in 1932 revised. The same check corrected the translators of 3 documents and found that the print edition named for a fourth (Hebbel's diaries) is another book; these 4 carry a `metadata_note` in the sidecar. In Montaigne's Próby (3 documents) Wolne Lektury's translator's notes credit the translated quotations to Edmund Cięglewicz, while the National Library's record of the print edition credits Tadeusz Sinko (d. 1966) and Cięglewicz jointly; which quotations each translated is not established. Wrong death years in the rights lines of 25 documents and early public-domain dates of 6 are kept as Wolne Lektury gives them; none changes whether a document is free. Nothing else this check flagged is excluded. `author` is Wolne Lektury's name form (pseudonyms and cryptonyms as Wolne Lektury gives them); the first-edition form of a name is not established. 37 documents have no author because Wolne Lektury gives only "Autor nieznany" or "Praca zbiorowa"; Wolne Lektury has no field for the original title of a translation. Of the public-domain documents, 1,136 name a print edition published after 1955, 58 a critical edition and 229 an introduction, notes or commentary. For the prints after 1955, the people named in Wolne Lektury's credits, in its print-edition field and in the National Library's records of the print were checked for editors who died after 1955 or whose death year is not known (`edition_review` in the evidence file); otherwise the editors of those editions and their death years are not established. 174 documents are held out of this release until the books' contents are checked, because from their verse lines we estimate that they fill about two fifths or more of the two selections they were printed in: 94 Baczyński poems, 155–197 of the 314 pages of "Poezje" (PIW 1977, selected by Kazimierz Wyka; National Library record 1509594), and 80 poems, 95–128 of the 251 pages of the anthology "Z rodu Anhellich" (Wydawnictwo Dolnośląskie 1991, selected by Stanisław Stabro; record 1051496). The other 226 documents printed in selections made by later editors (e.g. Pawlikowska-Jasnorzewska's "Poezje", collected by Matylda Wiśniewska, 1958; Grabiński's "Utwory wybrane", selected by Artur Hutnikiewicz, 1980; Norwid's "Pisma wierszem i prozą", selected by Juliusz W. Gomulicki, 1984) are included as single public-domain texts, without the editors' introductions or notes. 238 documents keep period spelling by our heuristic count, so the modernisation is not uniform. The text of 10 documents (all under LAL 1.3, no print edition named) has a "Komentarz" heading, which we read as Wolne Lektury's own commentary. The 45 sections headed "Od tłumacza" (44, in 43 documents) or "Uwagi Wydawcy" (1) are part of the printed source, not Wolne Lektury's: Wolne Lektury's book XML marks each as a main-text heading, not a note. The "Od tłumacza" sections are printed as the translators' prefaces, to translations that are public domain or, for Michał Friedman's (d. 2006), under the document's CC BY-SA 3.0 PL licence; the "Uwagi Wydawcy" in Kant's "O potędze ducha" are the notes of Kant's German editor, Christoph Wilhelm Hufeland (d. 1836), in Adam Stögbauer's translation, not a modern publisher's note. In a hand check of 40 random documents, 3 carried matter from the print edition (a publisher's address, a list of editions, an introduction) and none carried Wolne Lektury's credits or notes. The export had no footnotes. From Wolne Lektury's book XML (read 2026-10-20) the author's and translator's notes are restored at the end of the 459 texts that have them: 8,099 author's notes under "Przypisy autora" in 336 texts and 10,838 translator's notes under "Przypisy tłumacza" in 168 texts. Wolne Lektury's editorial notes are not restored, and the 668 glosses its editors added inside 632 of the restored notes (in square brackets, signed "red. WL", "WL" or the like; 131 texts, 77,065 characters) are stripped from them; brackets without that signature are kept. The 23 editor's notes signed "przyp. red." inside 23 restored author's notes (5 texts, 4,792 characters; 19 of them in Stendhal's "O miłości") are stripped the same way; where one bracket holds a translator's note and then an editor's, the translator's part is kept. Two empty notes and three that the export had kept in the text are left out. Wolne Lektury serves no XML for one document (Korczak) and the second book of one merged document was not read, so their notes are not checked. Every public-domain document with translator's notes has its book's public-domain date, which counts the translator. Statistics were recomputed directly from the released parquet file. diff --git a/src/attribution_common.py b/src/attribution_common.py index b6b2213b42a22e1cdde927d6c68c8d503fbdb01b..0dae191273f67161569bdb935e38003e01d9c168 100644 --- a/src/attribution_common.py +++ b/src/attribution_common.py @@ -1,4 +1,4 @@ -"""Helpers shared by the literary attribution builders (wolne_lektury, eltec_pol; polish-dynaword-v2#109). +"""Helpers shared by the literary attribution builders (wolne_lektury, eltec_pol). A builder writes a sidecar (one JSON line per Parquet row, same order, sorted keys) and a Parquet whose `author` column is filled from it. Every sidecar line carries `text_sha1` and `with_authors` refuses a table diff --git a/src/build_dziennik_ustaw_attribution.py b/src/build_dziennik_ustaw_attribution.py index b3b60dfd7acf913632f1362e7d3c05c25c3913b2..eb642f955ba6a5670ea393c938325f72b0d28b9f 100644 --- a/src/build_dziennik_ustaw_attribution.py +++ b/src/build_dziennik_ustaw_attribution.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Rebuild the per-row ELI sidecar of the dziennik_ustaw shard and its per-row `created` dates (v2#107). +"""Rebuild the per-row ELI sidecar of the dziennik_ustaw shard and its per-row `created` dates. The shard was built by `build_dynaword.py` from the output of `fetch_eli.py`, which kept the ELI address of each act in `meta` but the build dropped it, and the fetch output is not on disk. This script recovers diff --git a/src/build_eltec_pol_attribution.py b/src/build_eltec_pol_attribution.py index eb2d976caeb7aa8ff4b5fabcace539808c064010..f03e65b65a7d7e261b10fe1510436641273da9af 100644 --- a/src/build_eltec_pol_attribution.py +++ b/src/build_eltec_pol_attribution.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Author, title and attribution sidecar for every eltec_pol row (polish-dynaword-v2#109). +"""Author, title and attribution sidecar for every eltec_pol row. The Parquet has no ELTeC filename. Row `eltec_pol_2455231 + n` is the n-th ELTeC-pol file in name order, the order src/fetch_eltec.py read them in (GitHub's listing of `level1`). Each file's metadata is the matching row diff --git a/src/build_eurlex_attribution.py b/src/build_eurlex_attribution.py index f3197eecc6baa762ce6608a783739a83e5b3a470..34ca99e2055f40360324abb9b1f45f9b875eb532 100644 --- a/src/build_eurlex_attribution.py +++ b/src/build_eurlex_attribution.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Per-record EUR-Lex links, issuing institution and attribution text for the eurlex shard (v2#108). +"""Per-record EUR-Lex links, issuing institution and attribution text for the eurlex shard. The shard keeps no URL per row. The identifier of each document is in the first line(s) of its text: an Official Journal file name (`L_2018252PL.01000101.xml`), a CELEX number on an "EUR-Lex - - PL" diff --git a/src/build_kultura_bez_barier_pl.py b/src/build_kultura_bez_barier_pl.py index 9dbb54a25214c72c6c05e4e6fbf1cd439b30a0bd..168041d68585b2a307ba083322a336edc0630279 100644 --- a/src/build_kultura_bez_barier_pl.py +++ b/src/build_kultura_bez_barier_pl.py @@ -417,7 +417,7 @@ def prepare(out, target_revision): stats = load(root / "artifacts/stats.json") notice = f"""# Notice and attribution\n\nSource: {CATALOG}\n\nThe official catalogue describes the linked publications as authored by Fundacja Kultury bez Barier and states that they are made available under CC BY-SA 3.0. The catalogue HTML, raw PDFs, source URLs and SHA-256 digests are preserved. This is catalogue-level evidence; an embedded per-PDF license assertion is not claimed.\n\nDataset transformations: text extraction, removal of page-number-only lines, line-wrap repair, Unicode/whitespace normalization, limited PII-pattern redaction, exact and near deduplication. Images are not included in the training text. Attribution and a modification notice must be preserved under CC BY-SA 3.0.\n""" (root / "NOTICE.md").write_text(notice, encoding="utf-8") - readme = f"""---\nlicense: cc-by-sa-3.0\nlanguage:\n- pl\ntask_categories:\n- text-generation\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: data/train-00000-of-00001.parquet\n---\n\n# Kultura bez Barier PL\n\nPolish text extracted from openly published accessibility guides by Fundacja Kultury bez Barier.\n\n- Input publications: {stats['discovered']}\n- Retained records: {stats['kept']}\n- Extracted pages: {stats['pages']}\n- Tokens: {stats['tokens']:,} (`cl100k_base` proxy)\n- License evidence: catalogue-level CC BY-SA 3.0 declaration\n- Author coverage: {stats['author_coverage']:.1%}\n\nSee `NOTICE.md` and `artifacts/` for the source inventory, raw PDFs, attribution, selection decisions, QA, checksums, samples and Slayer ontology manifest.\n\n## Limitations\n\nThe source catalogue provides the licensing statement; an embedded statement was not found or required for every PDF. Maintainer/legal review of that scope remains appropriate. PDF extraction may flatten tables and omit visual meaning. Cross-source DynaWord deduplication, benchmark-overlap checks and controlled training ablations remain pending.\n""" + readme = f"""---\nlicense: cc-by-sa-3.0\nlanguage:\n- pl\ntask_categories:\n- text-generation\nconfigs:\n- config_name: default\n data_files:\n - split: train\n path: data/train-00000-of-00001.parquet\n---\n\n# Kultura bez Barier PL\n\nPolish text extracted from openly published accessibility guides by Fundacja Kultury bez Barier.\n\n- Input publications: {stats['discovered']}\n- Retained records: {stats['kept']}\n- Extracted pages: {stats['pages']}\n- Tokens: {stats['tokens']:,} (`cl100k_base` proxy)\n- License evidence: catalogue-level CC BY-SA 3.0 declaration\n- Author coverage: {stats['author_coverage']:.1%}\n\nSee `NOTICE.md` and `artifacts/` for the source inventory, raw PDFs, attribution, selection decisions, QA, checksums, samples and Slayer ontology manifest.\n\n## Limitations\n\nThe source catalogue provides the licensing statement; an embedded statement was not found or required for every PDF. Maintainer review of that scope remains appropriate. PDF extraction may flatten tables and omit visual meaning. Cross-source DynaWord deduplication, benchmark-overlap checks and controlled training ablations remain pending.\n""" (root / "README.md").write_text(readme, encoding="utf-8") digest_map = checksums(root) save(root / "artifacts/checksums.json", digest_map) @@ -451,7 +451,7 @@ def prepare(out, target_revision): "relations": [{"source": dataset_version, "predicate": "DERIVED_FROM", "target": source_version}, {"source": dataset_version, "predicate": "GENERATED_BY", "target": build_run["id"]}, {"source": dataset_version, "predicate": "VALIDATED_AGAINST", "target": validation["id"]}], - "pending": ["cross-source deduplication", "benchmark contamination check", "maintainer/legal review of catalogue-level license scope", "controlled training ablation"]} + "pending": ["cross-source deduplication", "benchmark contamination check", "maintainer review of catalogue-level license scope", "controlled training ablation"]} save(root / "artifacts/ontology.json", ontology) diff --git a/src/build_plwiki_talk_pl.py b/src/build_plwiki_talk_pl.py index e35ba010089115c34c2821ba9887d4d7a911155c..8c8d95eb65ab5cfc2c1e46e1ff4a073845e499cc 100644 --- a/src/build_plwiki_talk_pl.py +++ b/src/build_plwiki_talk_pl.py @@ -39,7 +39,7 @@ LICENSE_TERMS_URL = "https://foundation.wikimedia.org/w/index.php?title=Policy:T LICENSE_TERMS_URL_2014 = "https://foundation.wikimedia.org/w/index.php?title=Policy:Terms_of_Use&oldid=98524" # The build labels each row by its page's last revision (rights.license_for_revision): CC BY-SA 3.0 # under the 2014 Terms of Use, 4.0 under the Terms in force since 2023-06-07. The release is then -# relabelled by contribution (clean_plwiki_talk.py relabel, v2#110). +# relabelled by contribution (clean_plwiki_talk.py relabel). LICENSE_EVIDENCE = { "CC-BY-SA-3.0": LICENSE_TERMS_URL_2014 + " (section 7 of the 2014-2023 Terms of Use, text licensing and attribution by page URL)", "CC-BY-SA-4.0": LICENSE_TERMS_URL + " (section 7, text licensing and attribution by page URL)", @@ -472,7 +472,7 @@ def build(out): pii.update(pii_counts) if not reason and len(text) < MIN_TEXT_CHARS: reason = "too_little_text_after_redaction" - text = drop_residue(text, categories=False) # file-link residue (v2#116); category lines are discussion here + text = drop_residue(text, categories=False) # file-link residue; category lines are discussion here if not reason and len(text) < MIN_TEXT_CHARS: reason = "too_little_text_after_residue_cleanup" key = exact_key(text) diff --git a/src/build_plwiki_usertalk_pl.py b/src/build_plwiki_usertalk_pl.py index 947b8d58ca113733cdcde81050252fc25fafc3eb..98acf682bcb81c4127165bd6616addd4ef4e4515 100644 --- a/src/build_plwiki_usertalk_pl.py +++ b/src/build_plwiki_usertalk_pl.py @@ -475,7 +475,7 @@ def build(out): pii.update(pii_counts) if not reason and len(text) < MIN_TEXT_CHARS: reason = "too_little_text_after_redaction" - text = drop_residue(text, categories=False) # file-link residue (v2#116); category lines are discussion here + text = drop_residue(text, categories=False) # file-link residue; category lines are discussion here if not reason and len(text) < MIN_TEXT_CHARS: reason = "too_little_text_after_residue_cleanup" key = exact_key(text) diff --git a/src/build_sejm_interpellations_attribution.py b/src/build_sejm_interpellations_attribution.py index 37d7b7486afcca4aa3dd79bff47e2ac224a5b016..d6d6c9e7f585703f9c10a4b831e5d840d7db97c4 100644 --- a/src/build_sejm_interpellations_attribution.py +++ b/src/build_sejm_interpellations_attribution.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Rebuild the per-record attribution sidecar of the sejm_interpellations shard (v2#107). +"""Rebuild the per-record attribution sidecar of the sejm_interpellations shard. The shard was built by `build_dynaword.py` from the raw fetch output of `fetch_sejm_interpellations.py` (`sejm_interpellations.jsonl.zst`, one JSON object per line: `text` plus `meta`). The build dropped the diff --git a/src/build_uzp_orzeczenia_pl.py b/src/build_uzp_orzeczenia_pl.py index 747d259c3dc94ab367b1d7fb86d280f17a87c60f..766b0306f7cbc715ca4ee07b75588e3fdf63c243 100644 --- a/src/build_uzp_orzeczenia_pl.py +++ b/src/build_uzp_orzeczenia_pl.py @@ -1014,7 +1014,7 @@ def verify(out): print(json.dumps(report, ensure_ascii=False, indent=2)) -# G1 personal-data pass (polish-dynaword-v2#112). NERGAL with person names masks every person; this ruling's bench +# G1 personal-data pass. NERGAL with person names masks every person; this ruling's bench # and clerk act in an official capacity and stay. Sole traders and civil partnerships trade under their own names, so # their firm names and street addresses are masked too, and a sentence linking a person to a criminal or health fact # is replaced whole. Run `g1` on the shard before the release upload, which must then pass mask_names=false so the diff --git a/src/build_wolne_lektury_attribution.py b/src/build_wolne_lektury_attribution.py index 78739762c673a56fbc7f9f5e5f6e0ff70e4e3273..c084067377e04372a011105ed92c0bcd4a14fb30 100644 --- a/src/build_wolne_lektury_attribution.py +++ b/src/build_wolne_lektury_attribution.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Author, translator and title for every wolne_lektury row, and its attribution sidecar (polish-dynaword-v2#109). +"""Author, translator and title for every wolne_lektury row, and its attribution sidecar. Each row is matched to its Wolne Lektury (WL) book by src/wolne_lektury_licences.py (`wolne_lektury.licences.tsv`). This script reads that book's RDF header (the `` element at the top of its XML, cached by @@ -141,7 +141,7 @@ EDITION_REVIEWED = { "publication (art. 36 pt 2), so free since 2018 and 2014 at the latest; this would change if the " "translator were identified (maintainer decision 2026-10-20).", "print_after_1955": "the rows printed after 1955 (`edition_review.ids.print_after_1955`), 1,310 at the time (these " - "and the 174 in HELD), checked against BN's catalogue (polish-dynaword-v2#109): for each " + "and the 174 in HELD), checked against BN's catalogue: for each " "print, the people named in Wolne Lektury's editor credit, in its edition string and in BN's " "records of the same title and year, and whether one of them died after 1955 or has no known " "death year (a later editor). 891: no later editor chose the works and nothing of a later " @@ -155,7 +155,7 @@ EDITION_REVIEWED = { "public domain either way."}, } # The check of WL's author and translator credits against the National Library's catalogue (BN, data.bn.org.pl), and -# what the maintainer decided on it (polish-dynaword-v2#109). The rows it showed are not free are dropped upstream +# what the maintainer decided on it. The rows it showed are not free are dropped upstream # (NOT_FREE in src/wolne_lektury_licences.py); bn_check() puts all of it in the evidence file. BN_CHECK = { "checked_at": "2026-10-20", @@ -178,11 +178,10 @@ BN_CHECK = { "catalogue_noise, 1 cannot_tell)", }, "public_domain_rows_with_a_bn_death_after_1955": "one, \"Wola mocy\", dropped (dropped_as_not_free)", - "open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them; they are listed in " - "polish-dynaword-v2#109", + "open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them", } # The public-domain rows printed in selections made by later editors that the maintainer decided on 2026-10-20 to keep -# as single texts (polish-dynaword-v2#109): none of the editors' introductions or notes is in their text. The rows of +# as single texts: none of the editors' introductions or notes is in their text. The rows of # the two other selections are held out upstream (HELD in src/wolne_lektury_licences.py); selections() puts both in the # evidence file. SELECTIONS_KEPT = { @@ -328,7 +327,7 @@ NORMALISATION_STEPS = [ "step": "set `author`; each row's text is checked against the SHA-1 in the sidecar and the table against " "`text_digest`"}, ] -# Main text of Wolne Lektury's book XML that the text we received lacks, with no mark at the gap (v2#109): row id, +# Main text of Wolne Lektury's book XML that the text we received lacks, with no mark at the gap: row id, # characters missing. Measured, not built: see unmarked_gaps_check(). UPSTREAM_UNMARKED_GAPS = { "wolne_lektury_2372086": 5454, "wolne_lektury_2372228": 5104, "wolne_lektury_2377105": 2314, diff --git a/src/clean_1000_novels.py b/src/clean_1000_novels.py index e54815e930af01119f76c737e6d3f08bff1ada7a..34a52adc90cd367979449d7d17180c1e403dafb6 100644 --- a/src/clean_1000_novels.py +++ b/src/clean_1000_novels.py @@ -4,13 +4,13 @@ CLARIN-PL replied (October 2026) that handle 11321/312 holds metadata only: CLARIN does not distribute the texts and holds no rights documentation, so no licence covers them. A row is kept only when the per-text rights screen finds it public domain in Poland: - polish-dynaword-v2/evidence/1000_novels_rights_screen.csv - (written by polish-dynaword-v2/scripts/novels_rights_screen.py) + evidence/1000_novels_rights_screen.csv among the paper's ancillary files + (written by the paper's scripts/novels_rights_screen.py) Kept rows are labelled `public-domain`, and `author` credits the author and any translator. Title, death year, screen basis and CLARIN file name go to `1000_novels.attribution.jsonl`. After the screen, a row is dropped when it duplicates a wolne_lektury or eltec_pol document -(slayerlabs/polish-dynaword-v2#45; the maintainer chose to keep those two sources whole): +(the maintainer chose to keep those two sources whole): cover = |S(row) & union of S(doc) over the source's documents| / |S(row)| >= DUP_AT @@ -20,13 +20,13 @@ Lektury footer is cut from the row before scoring; the released text is not chan screened row's cover against each source, and the documents holding >= MATCH_AT of its shingles, go to `1000_novels.dedup.tsv`. -The inputs are the v0.2.5 Parquet, the screen CSV (polish-dynaword-v2 main since v2 PR #73) +The inputs are the v0.2.5 Parquet, the screen CSV (among the paper's ancillary files) and the wolne_lektury and eltec_pol Parquets, all pinned by SHA-256. The three Parquets predate the October 2026 rights audit and are no longer published: the release tags v0.2.0-v0.2.5 that held them were deleted after the audit (the 1000_novels one was also deleted from the repository's storage on 2026-10-21). The pins record which files a rerun needs; with them in place: - python3 src/clean_1000_novels.py --screen ../polish-dynaword-v2/evidence/1000_novels_rights_screen.csv + python3 src/clean_1000_novels.py --screen evidence/1000_novels_rights_screen.csv # from the paper's ancillary files """ from __future__ import annotations @@ -48,7 +48,7 @@ SOURCE = "1000_novels" ROOT = Path(__file__).resolve().parents[1] DATA = ROOT / "data" / SOURCE INPUT_SHA256 = "27be09e5e2347dcf1a83e94b6c210ca26bdd89365bc3563e88ea5af9846990ea" # v0.2.5 -# polish-dynaword-v2 evidence/1000_novels_rights_screen.csv for v0.2.6; also in 1000_novels.license-evidence.json +# evidence/1000_novels_rights_screen.csv among the paper's ancillary files, for v0.2.6; also in 1000_novels.license-evidence.json SCREEN_SHA256 = "7fefc75f8fcbd07e5ec98842276765ffef9520b6acb4e24b4751c67cc3d2081c" UPSTREAM = "https://clarin-pl.eu/dspace/handle/11321/312" LICENSE = "public-domain" @@ -183,7 +183,7 @@ def build(input_path: Path, screen_path: Path, out_dir: Path, ref_paths: dict[str, Path] = REFERENCE_PATHS) -> dict: if (found := sha256_file(screen_path)) != SCREEN_SHA256: raise SystemExit(f"{screen_path} is not the pinned rights screen: SHA-256 {found}, expected " - f"{SCREEN_SHA256}; regenerate it with polish-dynaword-v2/scripts/novels_rights_screen.py " + f"{SCREEN_SHA256}; regenerate it with the paper's scripts/novels_rights_screen.py " "or update SCREEN_SHA256 and 1000_novels.license-evidence.json together") check_pin(input_path, INPUT_SHA256, UNPUBLISHED) check_references(ref_paths) diff --git a/src/clean_biblioteka_nauki.py b/src/clean_biblioteka_nauki.py index 13260a44ad3ddf9f5cd73e7d712c527610bd6d34..b84b6690bf9db1988695b1db893000fc3e89596d 100644 --- a/src/clean_biblioteka_nauki.py +++ b/src/clean_biblioteka_nauki.py @@ -6,10 +6,9 @@ bibliotekanauki.pl/api/{type}/{id} (`license.iconId`) by data/biblioteka_nauki/r Dropped: `public-domain`. The platform shows it for items tagged with the CC Public Domain Mark 1.0 (API licence id 22, https://creativecommons.org/publicdomain/mark/1.0/). The Mark is a label, not a waiver or a licence, and the 3 tagged items are original works first published 2019-2022, so -the Polish life+70 term cannot have run out (polish-dynaword-v2#52, -artifacts/rights_audit_2026-10/reports/academic.md). Any other licence value fails the run. +the Polish life+70 term cannot have run out (artifacts/rights_audit_2026-10/reports/academic.md). Any other licence value fails the run. -Relabel (polish-dynaword-v2#57): `iconId` drops the licence version, so v0.2.5 and the first v0.2.6 +Relabel (v0.2.6 rights audit): `iconId` drops the licence version, so v0.2.5 and the first v0.2.6 build said cc-by / cc-by-sa while the API gives 2.0, 3.0, 3.0 PL and 4.0. The `license` column now carries the API's own licence, e.g. `CC-BY-3.0-PL`, read from the sidecar data/biblioteka_nauki/biblioteka_nauki.license-api.json (written by recover_license_versions.py from one @@ -18,7 +17,7 @@ with each other and with the stored label are labelled. A row the API did not re anything else, is withheld (dropped and listed in stats `withheld`), never kept under a guessed label. No other column changes. -Maintainer decisions of 2026-10-06 (polish-dynaword-v2#57, Hub PR 81), applied by id, one reason per id: +Maintainer decisions of 2026-10-06 (v0.2.6 rights audit, Hub PR 81), applied by id, one reason per id: API_OVERRIDES `articles_2011995` is labelled with the API's current CC BY-SA 4.0 although the earlier recovery stored cc-by; the row is kept. TEXT_NC_ND 56 rows whose own text prints a NonCommercial and/or NoDerivatives licence while the API @@ -27,7 +26,7 @@ Maintainer decisions of 2026-10-06 (polish-dynaword-v2#57, Hub PR 81), applied b permission (Oxford University Press and 12 other publishers or journals). Withheld. The build fails if a listed id is not reached, i.e. not among the rows that would otherwise be kept. -Per-record licence basis and the reviewed drops (polish-dynaword-v2#111, maintainer decisions of 2026-10-20). The rows left by the +Per-record licence basis and the reviewed drops (maintainer decisions of 2026-10-20). The rows left by the steps above are scanned with src/licence_basis_biblioteka_nauki.py (the rules and the hand decisions). `biblioteka_nauki.review.csv` (`id,decision,reason`, pinned by SHA-256) holds one decision for every row a rule nominates and for nothing else; the build refuses to run when it differs from what the rules give. Rows it marks `drop` are removed: the 88 rows of the clear-cut reasons, the 97 rows with a diff --git a/src/clean_eurlex.py b/src/clean_eurlex.py index 9966de4a06bcfd462804251dd42cc96a8b6fc42b..a151be4ee57b27adaa6d10e6a0b3df53f9ebfee0 100644 --- a/src/clean_eurlex.py +++ b/src/clean_eurlex.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""eurlex rights-audit actions (slayerlabs/polish-dynaword-v2#57). +"""eurlex rights-audit actions. clean (default): the v0.2.5 release labelled every row `CC-BY-4.0`. The EUR-Lex legal notice licenses under CC BY 4.0 only "the editorial content of this website, the summaries @@ -12,8 +12,7 @@ except its `license`. Raises, and leaves the parquet as it was, if any row carri other than the old or the new label, if a row carries the IASB notice but is not in the pinned list, or if a pinned id is missing from the input or lacks the notice. -It also applies `eurlex.review.csv` (slayerlabs/polish-dynaword-v2#108, maintainer decisions -1A, 2A and 4A of 2026-10-19). A row is a candidate when one of `CANDIDATE_RULES` matches it: +It also applies `eurlex.review.csv` (maintainer decisions of 2026-10-19). A row is a candidate when one of `CANDIDATE_RULES` matches it: a (c) sign or photo credit, a UN ECE regulation, or a European Parliament stub. The review holds one hand-checked decision for every candidate and for nothing else; the build refuses to run when they disagree. Drops: third-party credits (`third_party_credit`), UN ECE @@ -77,7 +76,7 @@ HEADER_RULES = { "un_ece_regulation": re.compile(r"Regulamin\w* nr \d+[^\n]{0,80}(Europejskiej Komisji Gospodarczej|EKG ONZ)", re.I), } -# Review candidates (v2#108): name -> (pattern, characters searched or None for the whole text, +# Review candidates: name -> (pattern, characters searched or None for the whole text, # only rows shorter than this or None). Wide on purpose; the review decides each match. CANDIDATE_RULES = { "copyright_sign": (WHOLE_TEXT_RULES["copyright_sign"], None, None), diff --git a/src/clean_global_voices.py b/src/clean_global_voices.py index 17fc2d0e964eb953e7674c8105623c3115d418fe..b84fa4858a97a91f271990aa885f03494d3d6505 100644 --- a/src/clean_global_voices.py +++ b/src/clean_global_voices.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Drop Global Voices posts republished from partner outlets (slayerlabs/polish-dynaword-v2#50). +"""Drop Global Voices posts republished from partner outlets. Global Voices licenses "content created by Global Voices" under CC BY 3.0. Posts it republished from partner outlets (PRI's The World, Hong Kong Free Press, The Stand News, Meta.mk, 350.org, diff --git a/src/clean_govpl.py b/src/clean_govpl.py index 01e1dc4ba48142c6f081992b24a899f2f096f0d2..c38df125b887387dd1aa163dab8987cbb3b9e514 100644 --- a/src/clean_govpl.py +++ b/src/clean_govpl.py @@ -4,11 +4,11 @@ gov.pl's copyright page (https://www.gov.pl/web/gov/prawa-autorskie) licenses the site's text under CC BY-SA 4.0 but excludes works whose copyright belongs to third parties. Articles that credit PAP (Polish Press Agency) as their source are such -works (slayerlabs/polish-dynaword-v2#51). `fetch_govpl.pap_rule` names them; this +works. `fetch_govpl.pap_rule` names them; this script removes them from the released Parquet, so ids and the other rows stay as they are (a rebuild through build_dynaword.py would renumber ids). -Other third-party texts are dropped by `govpl.third-party-review.csv` (polish-dynaword-v2#106): +Other third-party texts are dropped by `govpl.third-party-review.csv`: one decision per article that carries a "Źródło:" line (`ZRODLO`) and is not a PAP reprint, plus six articles reprinted from or written for other outlets. A "Źródło:" article stays only when its text is credited to a public office (`credit_public_office`) or the line credits diff --git a/src/clean_kultura_bez_barier_pl.py b/src/clean_kultura_bez_barier_pl.py index 72ed1480b7403d9fc3067d8e48d3d1def2d265c9..00772bfe02bfc2c36611b8ce597822574695b53a 100644 --- a/src/clean_kultura_bez_barier_pl.py +++ b/src/clean_kultura_bez_barier_pl.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Mask the phone numbers left in kultura_bez_barier_pl (v0.2.6 rights audit, slayerlabs/polish-dynaword-v2#57). +"""Mask the phone numbers left in kultura_bez_barier_pl (v0.2.6 rights audit). The builder's labelled-phone regex missed "Tel./SMS", "tel:", "+ 48" and landlines with "wew.", so the accessibility-coordinator directory in `podsumowanie_wizyt_studyjnych` shipped with names and phone numbers. diff --git a/src/clean_plwiki_talk.py b/src/clean_plwiki_talk.py index 02b527c743452039aa94edda86938e458bddfcc2..caede0dbebe7bae32e662f47089c7c1d7817cc1d 100644 --- a/src/clean_plwiki_talk.py +++ b/src/clean_plwiki_talk.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Clean and relabel the committed plwiki talk releases in place, without re-reading the dump. -retext (v2#116): applies fetch_wikimedia.drop_residue to the text as the builders now do, keeping +retext: applies fetch_wikimedia.drop_residue to the text as the builders now do, keeping the category lines, which the talk pages discuss. A changed row gets its tokens recounted; one that falls under MIN_TEXT_CHARS is dropped as `too_little_text_after_residue_cleanup`, and one whose cleaned text repeats an earlier kept row's (the builders' candidate order and key) as @@ -11,14 +11,14 @@ cleaned text repeats an earlier kept row's (the builders' candidate order and ke (`source_text_qa_rejected`, `residue_cleanup`). Near-duplicates are not re-traced: the rejected rows' decisions stay the build's. -relabel (v2#110): labels each row by contribution from wiki_history.py compare's labels, as the +relabel: labels each row by contribution from wiki_history.py compare's labels, as the wikipedia shard is: text added before 2023-06-07 keeps CC-BY-SA-3.0, a page created from that day is CC-BY-SA-4.0, a page with text from both sides carries both ("CC-BY-SA-3.0 AND CC-BY-SA-4.0"). Rewrites the parquet `license` column, the attribution (wiki_history.apply_labels and `license_evidence`), the sample `license`, stats `license_counts` and qa `licence_labels` (the stub dump and the cases). A rebuild labels by last revision, so relabel follows it. -provenance (v2#110 3B): adds each record's `citations` (fetch_wikimedia.page_sources: the bodies and +provenance: adds each record's `citations` (fetch_wikimedia.page_sources: the bodies and Cytuj*/Cite* templates of the page's wikitext, each through the builders' redact_pii) and `source_notes` (empty: no talk-page template says where text came from), read again from the build's pages-meta-current dump, whose shards must be in --dumps. A record whose page is missing from the dump, or whose revision there is not the shipped one @@ -138,7 +138,6 @@ def retext(folder: Path, source: str) -> None: qa = load(path("qa.json")) qa["source_text_qa_rejected"] += len(gone) qa["residue_cleanup"] = { - "issue": "slayerlabs/polish-dynaword-v2#116", "step": "clean_plwiki_talk.py retext: fetch_wikimedia.drop_residue, category lines kept", "rows_changed": len(changed), "before": before, "after": after, "dropped_short": [{"id": i, "chars": chars} for i, chars in short.items()], @@ -177,7 +176,7 @@ def relabel(folder: Path, source: str, labels_path: Path, stub_path: Path) -> No day = WIKIS[source]["cutoff"][:10] qa = load(path("qa.json")) qa["licence_labels"] = { - "issue": "slayerlabs/polish-dynaword-v2#110", "stub": load(stub_path), + "stub": load(stub_path), "cases": dict(Counter(lab["case"] for lab in labels)), "created_on_cutoff_day": sum(lab["case"] == "created_after_cutoff" and lab["first_at"].startswith(day) for lab in labels), } @@ -233,7 +232,7 @@ def provenance(data: Path, dumps: Path, sources=SOURCES, workers: int = 7) -> No folder = data / source keep_line_ending(write_lines, folder / f"{source}.attribution.jsonl", side) qa = load(folder / f"{source}.qa.json") - qa["citations"] = {"issue": "slayerlabs/polish-dynaword-v2#110", "shards": shards, + qa["citations"] = {"shards": shards, "rows_with_citations": sum(bool(rec["citations"]) for rec in side), "citations": sum(len(rec["citations"]) for rec in side), "redacted": {k: v for k, v in sorted(redactions.items()) if v}} diff --git a/src/clean_samorzad_gov_pl.py b/src/clean_samorzad_gov_pl.py index b7a4e4b7ec20ff72e0913367d104840434f9c8ba..546891e37a6db5891cef18978c8686377ea9d701 100644 --- a/src/clean_samorzad_gov_pl.py +++ b/src/clean_samorzad_gov_pl.py @@ -48,7 +48,7 @@ _SITE_NAME_RE = re.compile( ) _TITLE_RE = re.compile(r"]*>(.*?)", re.IGNORECASE | re.DOTALL) -# Third-party carve-out (slayerlabs/polish-dynaword-v2#49). gov.pl's copyright +# Third-party carve-out. gov.pl's copyright # page says the service also carries works whose rights belong to third parties # and whose use needs the owners' consent, so the operator-declared platform # licence does not reach them. Each rule below is one hand-checked slice. diff --git a/src/clean_sejm_api.py b/src/clean_sejm_api.py index 84358a37518d73bc38bbdd80ce2da819452c6999..a8049e8101431b9f18bccab2f12d9a88c755f1a3 100644 --- a/src/clean_sejm_api.py +++ b/src/clean_sejm_api.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Cut the "Przebieg posiedzenia" trailers off the sejm_api speeches (slayerlabs/polish-dynaword-v2#57). +"""Cut the "Przebieg posiedzenia" trailers off the sejm_api speeches. The PiotrSty snapshot appends to most speeches the header of a later statement of the same sitting day, and sometimes that statement's text (see sejm_api_common.split_trailers). This script cuts every @@ -7,7 +7,7 @@ trailer and keeps a trailer's speech as a row of its own under the header's spea (sejm_api_common.split_release_rows); rows that fall under the 200-character minimum after the cut, and texts that become exact duplicates, are dropped. -Then the speaker allowlist is applied (slayerlabs/polish-dynaword-v2#99, src/sejm_api_speakers.py): a row stays only +Then the speaker allowlist is applied (src/sejm_api_speakers.py): a row stays only when the pinned table sejm_api.speaker-filter.csv says its speaker held an allowed role (MP, senator, government member, constitutional organ, chancellery staff) on that sitting day. The table is written offline from the PPC plenary headers and the committee transcripts; see src/sejm_api_speakers.py to regenerate it. diff --git a/src/clean_sejm_api_2011_2022.py b/src/clean_sejm_api_2011_2022.py index f9e47d10388bdea7ff9d5a4306fc19c52327374a..9ccdea797e869d9fb7a973d5f0913abe422f80d6 100644 --- a/src/clean_sejm_api_2011_2022.py +++ b/src/clean_sejm_api_2011_2022.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Drop sejm_api_2011_2022 speeches already contained in a pinned reference set (slayerlabs/polish-dynaword-v2#57). +"""Drop sejm_api_2011_2022 speeches already contained in a pinned reference set. The rights audit found that sejm_api_2011_2022 overlaps `parliamentary` (Sejm sittings to the end of term 8, sejm_api_common.PARLIAMENTARY_SEJM_END) and the since-removed `parlamint_pl`. A speech is @@ -16,7 +16,7 @@ document can be a whole sitting while a speech is a few paragraphs. It is measur reference documents, not a union of them. The reference set is REFERENCES: every Parquet whose registry `release` is not None, each pinned by -SHA-256. `parliamentary` is the PPC TEI rebuild of slayerlabs/polish-dynaword-v2#54 (option C). When a +SHA-256. `parliamentary` is the PPC TEI rebuild. When a reference changes, re-pin REFERENCES and rerun this script on the restored input; nothing here follows the registry silently. @@ -28,7 +28,7 @@ sejm_api_2011_2022.decisions.jsonl with the best score against each reference gr (`parliamentary:-` from the record id, or the source key). Speeches under five words have no shingles and are never dropped. -Last, the speaker allowlist (slayerlabs/polish-dynaword-v2#99, src/sejm_api_speakers.py): a row stays only when the +Last, the speaker allowlist (src/sejm_api_speakers.py): a row stays only when the pinned table sejm_api_2011_2022.speaker-filter.csv says its speaker held an allowed role (MP, senator, government member, constitutional organ, chancellery staff) on that sitting day. Dedup runs first. Of the 34,601 rows that reach the filter it drops 671 (terms 7-8: 526 of 1,684; term 9: 145 of 32,917); counts per role group are in the stats and the card. @@ -77,7 +77,7 @@ INPUT_SHA256 = { REFERENCES = { "parliamentary": (ROOT / "data/parliamentary/parliamentary.parquet", "d72c17f4590a397876bfa920b364c794bfefcac4fd94ab9adffa946a9269ba70"), - "sejm_api": (ROOT / "data/sejm_api/sejm_api.parquet", # after src/clean_sejm_api.py, speaker allowlist included (v2#99) + "sejm_api": (ROOT / "data/sejm_api/sejm_api.parquet", # after src/clean_sejm_api.py, speaker allowlist included "462c63b8332d5b506f71bd934f1416fe9727eeb106ab1b9ab1e5153701eaaa3c"), } FILTER_SHA256 = "06723c3164272485a82867171eea7e33e6e5fb1e79670bcd93b2218795fd490f" # sejm_api_2011_2022.speaker-filter.csv diff --git a/src/clean_wolne_lektury.py b/src/clean_wolne_lektury.py index c0fb9dcaf2ccd7e0ccbd62842645ba494227600d..16def66c2d56ff9bdca036330a5bb82390f08a91 100644 --- a/src/clean_wolne_lektury.py +++ b/src/clean_wolne_lektury.py @@ -1,8 +1,7 @@ #!/usr/bin/env python3 -"""Drop wolne_lektury documents whose text is an eltec_pol novel (slayerlabs/polish-dynaword-v2#72), -label each kept row with its own Wolne Lektury licence (polish-dynaword-v2#57), strip the two glosses Wolne Lektury's -editors added to the main text, then restore the author's and translator's notes at the end of the texts that have them -(polish-dynaword-v2#109). +"""Drop wolne_lektury documents whose text is an eltec_pol novel, +label each kept row with its own Wolne Lektury licence, strip the two glosses Wolne Lektury's +editors added to the main text, then restore the author's and translator's notes at the end of the texts that have them. Half of the 100 ELTeC-pol novels are also in Wolne Lektury. The maintainer chose (2026-10-06) to drop the Wolne Lektury copies and keep eltec_pol whole, because ELTeC's CC BY 4.0 is the clean @@ -13,7 +12,7 @@ licence. Wolne Lektury splits long novels into tomes, so the test is containment S() is the set of 5-word shingles over NFKC-casefolded \\w+ tokens (the tokenisation of the repo's near_dedup), and `novel` is the ELTeC novel sharing the most shingles with the WL doc; the shingling and scoring code is in src/shingle_containment.py. -A trailing Wolne Lektury footer is cut from WL text before scoring (the #45 measurement's rule); +A trailing Wolne Lektury footer is cut from WL text before scoring (the rule of the 1000_novels dedup); the released text is not changed. Docs scoring >= DROP_AT are dropped. Docs scoring >= REPORT_AT but below DROP_AT are only partly in an ELTeC novel; they are kept and listed. Both groups are written to wolne_lektury.eltec_pairs.tsv. @@ -33,10 +32,10 @@ Before the notes, strip_text_glosses() removes the glosses of WL's editors from module: two, in two rows), as the maintainer decided on 2026-10-20 for the glosses in the notes. restoration() strips those glosses, and the editor's notes signed "przyp. red.", from the notes. -Both input Parquets are pinned by SHA-256. Since v2#109 each source's author column is filled by its own +Both input Parquets are pinned by SHA-256. Each source's author column is filled by its own builder (src/build_wolne_lektury_attribution.py, src/build_eltec_pol_attribution.py), which changes the Parquet bytes. The ELTeC builder also restores the chapter titles and one and one part -into the text (v2#109), so the pairs file was scored on the v0.2.5 ELTeC text, not the released one. +into the text, so the pairs file was scored on the v0.2.5 ELTeC text, not the released one. Scoring the released text gives the same 66 pairs and the same 63 drops, with scores up to 0.0121 higher (the pairs file keeps the v0.2.5 scores). Both v0.2.5 Parquets, pinned by SHA-256, predate the October 2026 rights audit and are no longer published: diff --git a/src/eltec_tei.py b/src/eltec_tei.py index 2a9ce24e8a52d0e2f2a5942059fa2ee3557fc96b..463211e05361238f4e2098d4fe43ec11eed893ba 100644 --- a/src/eltec_tei.py +++ b/src/eltec_tei.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""What the ELTeC-pol level-1 TEI files say about each eltec_pol novel (polish-dynaword-v2#109). +"""What the ELTeC-pol level-1 TEI files say about each eltec_pol novel. The 100 TEI files (61 MB) are not in this repository. `eltec_tei.jsonl` next to eltec_meta.tsv holds, for each file of COST-ELTeC/ELTeC-pol at commit COMMIT (folder `level1`): its size, SHA-256 and git blob SHA-1, the SHA-1 of the text diff --git a/src/fetch_govpl.py b/src/fetch_govpl.py index 352a2bc23434b48c5027d29f8a780af6f44b5a5f..4e809780c4c8c36fa50d03e907e99e13fc1731a1 100644 --- a/src/fetch_govpl.py +++ b/src/fetch_govpl.py @@ -33,12 +33,12 @@ from html_text import html_to_text KEY = "govpl" # build_dynaword reads .jsonl.zst MIN_CHARS = 200 # same floor as build_dynaword; skip stubs early -# PAP attribution forms seen in the fetched articles (hand-checked, issue -# slayerlabs/polish-dynaword-v2#51). A photo credit ("fot. PAP") is not one of them. +# PAP attribution forms seen in the fetched articles (hand-checked). +# A photo credit ("fot. PAP") is not one of them. _PAP = r"(?:\bPAP\b|\bPolsk\w*\s+Agencj\w*\s+Prasow\w*)" PAP_RULES = { # "Źródło: /PAP, MKiDN/", "Źródła: PAP, Culture.pl", "Źródło informacji: PAP/MKIDN", - # "Żródło: Polska Agencja Prasowa". Covers the issue's rule + # "Żródło: Polska Agencja Prasowa". Covers the rule # (?i)\bźr[óo]d[łl]o\s*:\s*/?[^\n]{0,60}\bPAP\b and its misspellings. "source_line": re.compile( r"(?i)\b[źżz]r[óo]d[łl][oa](?:\s+informacji)?\s*:?\s*/?[^\n]{0,60}" + _PAP), diff --git a/src/fetch_parliamentary.py b/src/fetch_parliamentary.py index 8e8f80a1225358f65a7f85113affb06b4c6cf252..cd6b4ac83e2368e054ac71c13d4476c205b46d1e 100644 --- a/src/fetch_parliamentary.py +++ b/src/fetch_parliamentary.py @@ -3,23 +3,23 @@ Upstream: the per-term TEI zips that the PPC page (https://clip.ipipan.waw.pl/PPC) links, dump of 2025-05-21 (https://kdp.ipipan.waw.pl/static/ppcdump-tei/-tei.zip), pinned below by size and SHA-256. It replaces the earlier unlabelled copy of PPC taken from SpeakLeash (`PPC_corpus`), whose committee transcripts mixed -guests' statements with the official speakers' (polish-dynaword-v2#54, option C). +guests' statements with the official speakers'. -Scope (polish-dynaword-v2#54, decided 2026-10-07: "1A / 2A but document / 3 A / 4A / 5 A"): -- 1A: every term of the dump, 1919-2025, except the Sejm of 2019-2023 and 2023-2027 (DROP_PREFIXES), which +Scope (decided 2026-10-07): +- Every term of the dump, 1919-2025, except the Sejm of 2019-2023 and 2023-2027 (DROP_PREFIXES), which sejm_api, sejm_committee_transcripts and sejm_interpellations cover. Kept: the Sejm and Senate of the Second Republic, the Krajowa Rada Narodowa and the Sejm of the PRL, the Sejm and Senate since 1989 and the Senate of 2019-2025. -- 2A: in sittings (plenary and committee) only turns by MPs and senators, members of the government, heads +- In sittings (plenary and committee) only turns by MPs and senators, members of the government, heads of constitutional organs and Sejm/Senate staff are kept: the sejm_committee_transcripts allowlist (classify_speaker) plus PPC_RULES below, each with its evidence. Everything else is dropped, among it committee guests, witnesses of investigative committees, the President's Chancellery (KPRP), heads of agencies other than the constitutional organs, the Government Legislation Centre (RCL), ministry departments and the heads of state ("Naczelnik Państwa", "Prezydent RP"). -- 3A: the allowlist applies to plenary sittings too. -- 4A: interpellations, questions and the government's replies are kept whole (no speaker filter). Held until +- The allowlist applies to plenary sittings too. +- Interpellations, questions and the government's replies are kept whole (no speaker filter). Held until v0.2.7 (HOLD_INTERPELLATIONS, decided 2026-10-29): they are counted as `interpellation_held` and not built. -- 5A: this source stays the dedup reference of sejm_api_2011_2022 (clean_sejm_api_2011_2022.py re-pins it). +- This source stays the dedup reference of sejm_api_2011_2022 (clean_sejm_api_2011_2022.py re-pins it). Speakers. A sitting's header lists its speakers (): role (roleName), forenames and surnames. PPC strips the party tags that the base allowlist keys MPs on, so a person is classified by role + a placeholder @@ -104,8 +104,8 @@ MANIFEST = ( ("2019-2023", 2086326237, "21d987b939728c08fa9d08df37fb3851f321b49b5da0102c59ef5e7eb2629932"), ("2023-2027", 792882488, "61716f169d4378b158a54fb3f6c93c4ee69b876fab04811807d16bd0c435578c"), ) -DROP_PREFIXES = ("2019-2023/sejm/", "2023-2027/sejm/") # 1A: the sejm_* sources cover the Sejm from term 9 -# 4A is on hold until v0.2.7: an interpellation's typical record is a named person's case, as in +DROP_PREFIXES = ("2019-2023/sejm/", "2023-2027/sejm/") # the sejm_* sources cover the Sejm from term 9 +# Interpellations are on hold until v0.2.7: an interpellation's typical record is a named person's case, as in # sejm_interpellations, so the interpellation, question and reply records wait for the NERGAL pass. HOLD_INTERPELLATIONS = True # Interpellations of terms 3-7 carry no date: `created` is the term (Sejm terms, first to last day). @@ -131,7 +131,7 @@ _C1_MAP = str.maketrans({"\x9c": "ś", "\x9f": "ź", "\x8c": "Ś", "\x8f": "Ź", "\x96": "–"}) _DATE_PART = re.compile(r"(?:(\d{4})-)?(?:(\d{2})-)?(\d{2})") -# ------------------------------------------------------------------ PPC rules (2A) +# ------------------------------------------------------------------ PPC rules # Chars below are the census of the whole dump (2026-10-07, utterance text of the label, all terms). # Historic ministry words ("Minister Skarbu", "Minister Wyznań Religijnych i Oświecenia Publicznego", # "Minister Przemysłu Chemicznego") and "RP" ("Minister Finansów RP") on top of the base list. diff --git a/src/fetch_rock_pollub_pl.py b/src/fetch_rock_pollub_pl.py index 0a06a842d6e45f00c956d6c8d3a8eac804c5d54d..e36057d63e191f70bb3cb7576d58e8287ad8dae1 100644 --- a/src/fetch_rock_pollub_pl.py +++ b/src/fetch_rock_pollub_pl.py @@ -429,7 +429,7 @@ def build(out): "target": "hf:dataset:SlayerLab/polish-dynaword@" + target_audit["revision"]}] if target_audit else []), "pending": ["Biblioteka Nauki text overlap", "full collection inventory", "cross-source deduplication", - "benchmark contamination check", "legal review of third-party textual excerpts", "controlled training ablation"]} + "benchmark contamination check", "rights review of third-party textual excerpts", "controlled training ablation"]} save(root / "artifacts/ontology.json", ontology) print(json.dumps(stats, ensure_ascii=False, indent=2)) diff --git a/src/fetch_sejm_api.py b/src/fetch_sejm_api.py index d0c24caff8b4a5224d65e6dd3901fbf8092b2c08..34d59186e0af6fd616d4c11ca2f778d7bacc7971 100644 --- a/src/fetch_sejm_api.py +++ b/src/fetch_sejm_api.py @@ -433,7 +433,7 @@ def build_contribution( ) write_json(artifact_dir / "sejm_api_ontology_manifest.json", manifest) # The card (sejm_api.md) and NOTICE.md are kept by hand in the repository since the - # v0.2.6 rights audit (v2#107); this build does not write them, so a rerun cannot + # v0.2.6 rights audit; this build does not write them, so a rerun cannot # bring back an older text. (src_dir / "sources.py").write_text( insert_source_registry_entry(registry, end_date=stats["created_max"]), diff --git a/src/fetch_sejm_committee_transcripts.py b/src/fetch_sejm_committee_transcripts.py index 59fb4e0de91b9dd1f1857b2735baacb33eb1b8f6..183f989e73fdc1021751077640155a83ef7e9311 100644 --- a/src/fetch_sejm_committee_transcripts.py +++ b/src/fetch_sejm_committee_transcripts.py @@ -198,7 +198,7 @@ _STATE_PREFIX = rf"(?i:{_OFFICE_NOUN})(?: {_OFFICE_WORD}){{0,14}}[ ,–-]+" _STATE_RANK = r"(?:[Pp]od)?[Ss]ekretarza? [Ss]tanu" _STATE_BODY = rf"(?:[ ,–-]+(?:(?i:{_STATE_SECRETARY_WORDS})|{_MINISTRY_ABBREVIATION}))*" # "w MRiPS", "w Ministerstwie Zdrowia" # A state secretary's label names a government body, never the President's office ("Kancelaria Prezydenta", -# KPRP, BPM stay out: 1A) and never a former post ("były podsekretarz stanu", "b. sekretarz stanu"). +# KPRP, BPM stay out) and never a former post ("były podsekretarz stanu", "b. sekretarz stanu"). _GOVERNMENT_BODY = (rf"(?:{_MINISTRY_ABBREVIATION}|(?i:ministerst)|KPRM|Kancelarii Prezesa Rady Ministrów" r"|Komitetu (?:do [Ss]praw|ds\.) Pożytku Publicznego)") _NOT_STATE_SECRETARY = r"(?:Prezydent|KPRP|KP RP|BPM|(?i:\bbył|ówczesn|dawn)|\bb\.)" diff --git a/src/fetch_wikimedia.py b/src/fetch_wikimedia.py index 131dd40cd2dcdcef0f009d91f23f94c2175b3aa1..170c009fea234fd0b0bdd9d0c6d4d6f6ac84e002 100644 --- a/src/fetch_wikimedia.py +++ b/src/fetch_wikimedia.py @@ -3,11 +3,11 @@ v0.2.0-v0.2.5 labelled every row with one licence (Wikinews CC-BY-2.5, the others CC-BY-SA-3.0). Each row now carries the label of its page's last revision -(`license_for_revision` in src/rights.py): v0.2.6 rights audit, slayerlabs/polish-dynaword-v2#57. +(`license_for_revision` in src/rights.py): v0.2.6 rights audit. The dump date is pinned to the one the v0.2.5 text came from (the rebuild changes labels, ids, authors and dates, not the text); the dump file is checked against the sha1 in dumpstatus.json and in the dump's sha1sums.txt. `strip` now also drops the category lines and -file-link options strip_code leaves (slayerlabs/polish-dynaword-v2#116); `retext` applies that +file-link options strip_code leaves; `retext` applies that step to a committed release, so the pages-articles dump is not re-read. B= @@ -17,9 +17,9 @@ step to a committed release, so the pages-articles dump is not re-read. python3 src/fetch_wikimedia.py attribution --out $B ... # data/ sidecars + evidence python3 src/fetch_wikimedia.py datasheet --out $B ... # data//.md -Labels by contribution (slayerlabs/polish-dynaword-v2#110, option B) replace the last-revision +Labels by contribution replace the last-revision labels on the committed release; the pages-articles dump is not re-read. H= - python3 src/fetch_wikimedia.py retext --out $H --sources wikivoyage # v2#116, before compare; reads + python3 src/fetch_wikimedia.py retext --out $H --sources wikivoyage # before compare; reads # $H/raw_dump/ for WITHHELD_TEMPLATES (wikivoyage, wikibooks) python3 src/wiki_history.py download --dump plwikivoyage --out $H python3 src/wiki_history.py scan --stub $H/plwikivoyage-20261001-stub-meta-history.xml.gz \\ @@ -161,7 +161,7 @@ def strip(wikitext: str) -> str | None: return None -# What strip_code leaves of category and file links (slayerlabs/polish-dynaword-v2#116): a category +# What strip_code leaves of category and file links: a category # link becomes a line "Kategoria:X", a file link its options and caption ("thumb|250px|Caption"), # its options alone ("20px") or, with neither, its title ("File:X.ogg"). CATEGORY_LINE = re.compile(r"[ \t]*(?:[Kk]ategoria|[Cc]ategory)[ \t]*:[^\n]*") @@ -220,7 +220,7 @@ def withheld_template(key: str, wikitext: str) -> str | None: return None -# The templates kept as a page's `source_notes` (v2#110, 3B): where its text came from. Wikinews: the +# The templates kept as a page's `source_notes`: where its text came from. Wikinews: the # imports (IMPORT_TEMPLATES); Wikibooks: the licence templates, not {{Licencja}}, which holds the author's # e-mail; Wikivoyage's ({{Atrybucja}}, {{Import}}) are on withheld pages only; the talk pages keep citations only # (clean_plwiki_talk.py provenance). Wikipedia has no entry: no shipped article carries such a template, and its @@ -344,7 +344,7 @@ def template_holds(out: Path, key: str, build: dict, side: list[dict]) -> dict[i def provenance(out: Path, data_dir: Path, key: str) -> None: - """Add each sidecar record's `citations` and `source_notes` (page_sources, v2#110 3B), read from the build's + """Add each sidecar record's `citations` and `source_notes` (page_sources), read from the build's own dump at the shipped revision (shipped_pages), and update build.json's `attribution_sha256`. Run after retext and before relabel, which adds the imports' licences to the labels (with_imports).""" path = data_dir / f"{key}.attribution.jsonl" @@ -388,7 +388,7 @@ def _clean_line(line: str, rules) -> str | None: def drop_residue(text: str, categories: bool = True) -> str: """`text` without category lines, bare file titles and file-link options; captions stay. A line left empty goes, and blank lines collapse as strip_code collapses them. `categories=False` keeps - the category lines: on the talk pages they are discussion about categories (v2#116).""" + the category lines: on the talk pages they are discussion about categories.""" # ponytail: options glued to a word ("Ladadikathumb|") stay; a run glued after a letter is prose too often to cut rules = (CATEGORY_LINE,) * categories + (FILE_LINE, MARKUP_LINE, LONE_OPTION_LINE, OPTIONS_LINE) text = "\n".join(new for line in text.split("\n") if (new := _clean_line(line, rules)) is not None) @@ -572,7 +572,7 @@ def release_scope(key: str, recs: list[dict], table: dict) -> tuple[dict, dict]: def retext(out: Path, data_dir: Path, key: str) -> None: - """Apply drop_residue (v2#116) to the committed text, as `strip` now does, without re-reading the + """Apply drop_residue to the committed text, as `strip` now does, without re-reading the dump: recount the changed rows' tokens and drop the rows that fall under MIN_CHARS, which a rebuild would skip as `ns0_short`, and the rows whose cleaned text repeats a lower page id's, which it would skip as `exact_duplicate`, from the parquet and the sidecar. A page added to @@ -664,7 +664,7 @@ def retext(out: Path, data_dir: Path, key: str) -> None: {"pageid": str(rec["pageid"]), "title": rec["title"]}) build.update(attribution_rows=len(side), attribution_sha256=digest(path("attribution.jsonl").read_bytes())) build["residue_cleanup"] = { - "issue": "slayerlabs/polish-dynaword-v2#116", "step": "fetch_wikimedia.drop_residue", + "step": "fetch_wikimedia.drop_residue", "rows_changed": len(changed), "before": before, "after": after, "dropped_short": [{"id": rec["id"], "title": rec["title"], "chars": short[rec["id"]]} for rec in gone], "dropped_duplicate": [{"id": rec["id"], "title": rec["title"], "duplicate_of": dup_of[rec["id"]]} for rec in dups], @@ -718,7 +718,7 @@ def write_labels(out: Path, data_dir: Path, key: str, wiki: str, cutoff) -> tupl labels = [lab for line in (out / f"{key}.labels.jsonl").open(encoding="utf-8") if int((lab := json.loads(line))["pageid"]) not in withheld] notes = {rec["id"]: rec.get("source_notes") for rec in side} - for lab in labels: # v2#110 2A: imported text keeps its own licence; a label of no row fails in apply_labels + for lab in labels: # imported text keeps its own licence; a label of no row fails in apply_labels lab["license"] = with_imports(key, lab["license"], notes.get(lab["id"], [])) table = apply_labels(pq.read_table(path("parquet")), side, labels, key) groups = pq.ParquetFile(path("parquet")).metadata.row_group(0).num_rows # build_dynaword's batches, kept @@ -769,7 +769,7 @@ def licensing_text(key: str, ev: dict) -> str: f"day. A page last edited on or after the cutoff can still hold\n" f"2.5 text from earlier edits, and the [CC BY 2.5](https://creativecommons.org/licenses/by/2.5/legalcode) legal code (§4(a)) has no clause that lets an\n" f"adaptation be licensed under a later version (BY-SA 3.0 §4(b)(ii) has one). The 4.0 label for such\n" - f"pages rests on the site's terms page alone; the per-contribution labels (v2#110) from the relabel step do not.\n" + f"pages rests on the site's terms page alone; the per-contribution labels from the relabel step do not.\n" f"The terms page gives the day, not the time. The cutoff is midnight UTC, so the {n} pages last edited\n" f"on {day} are labelled 4.0. The configuration change was merged {sw['merged_utc']} UTC and deployed\n" f"by {sw['synced_by_utc']} UTC ([Gerrit change]({sw['gerrit']}), [{sw['phabricator'].rsplit('/', 1)[1]}]({sw['phabricator']});\n" @@ -780,7 +780,7 @@ def licensing_text(key: str, ev: dict) -> str: def label_order(before: str, after: str, labels) -> list[str]: - """The labels a card lists: the page's own (before, both, after), then those with an imported licence added (v2#110 2A).""" + """The labels a card lists: the page's own (before, both, after), then those with an imported licence added.""" own = (before, f"{before} AND {after}", after) return [*own, *sorted(set(labels) - set(own))] @@ -791,7 +791,7 @@ def contribution_text(key: str, build: dict, ev: dict, tok: int, flagged: Counte from wiki_history import CASES, CONVERTERS, WIKIS cfg, lab, scope, stub = WIKIS[key], build["licence_labels"], ev["release_scope"], build["licence_labels"]["stub"] before, after, day = cfg["before"], cfg["after"], cfg["cutoff"][:10] - window = "window_end" in cfg # wikinews: the switch has a known start and end (v2#110, E3) + window = "window_end" in cfg # wikinews: the switch has a known start and end module, convert = CONVERTERS[key] licence = {"before": before, "after": after, "mixed": f"{before} AND {after}"} rules = {**BASIS, "created_after_cutoff": "the page was created after the switch window"} if window else BASIS @@ -859,14 +859,14 @@ older page is not traced, so that page is `{after}` alone. `src/wiki_history.py` def links_text(host: str) -> str: - """The cards' account of wiki_history.record_links (v2#110); the hand-written wikipedia and talk cards carry it too.""" + """The cards' account of wiki_history.record_links; the hand-written wikipedia and talk cards carry it too.""" return (f"Each line also gives `permalink` (`https://{host}/w/index.php?oldid=`, the shipped revision),\n" f"`history_url` (`https://{host}/w/index.php?curid=&action=history`, the page history, which names\n" f"the contributors), `license_urls` (the deed of each licence in `license`) and `conversion` (how the text was made\n" f"from the wikitext, in one line). Neither link opens for a page deleted since.") -# v2#110 E2, our assessment in our own words; the cards carry it where the sidecar has `citations` +# Our assessment; the cards carry it where the sidecar has `citations` QUOTATIONS = ("Text quoted from other works is not under these licences. It is used under the quotation right\n" "(Art. 29 of the Polish copyright act), which holds while a quotation stays in its context with its\n" "author and source named. Each page is released as one record, not cut into quotations, and the\n" @@ -881,7 +881,7 @@ def citations_sentence(key: str, n_cites: int) -> str: def sources_text(key: str, side: list[dict]) -> str: - """The cards' account of the sidecar's `citations` and `source_notes` (page_sources, v2#110 3B).""" + """The cards' account of the sidecar's `citations` and `source_notes` (page_sources).""" shown =SOURCE_NOTE_TEMPLATES[key] - set(WITHHELD_TEMPLATES.get(key, ())) # a withheld page is in no row notes = ", ".join(f"`{{{{{name}}}}}`" for name in sorted(shown)) n_cites, n_notes = (sum(bool(rec[f]) for rec in side) for f in ("citations", "source_notes")) @@ -951,7 +951,7 @@ def datasheet(out: Path, data_dir: Path, key: str) -> None: b, gone, dups = clean["before"], clean["dropped_short"], clean.get("dropped_duplicate", []) conversion = f"""Wikitext is converted with mwparserfromhell `strip_code(normalize=True, collapse=True)`, as in v0.2.5, then `drop_residue` removes what that leaves of category and file links: `Kategoria:...` lines, bare file -titles and file-link options (`thumb|250px|...`); captions stay ([v2#116](https://github.com/slayerlabs/polish-dynaword-v2/issues/116)). +titles and file-link options (`thumb|250px|...`); captions stay. It was applied to the committed text (`fetch_wikimedia.py retext`): {clean['rows_changed']:,} rows changed, {b['chars'] - clean['after']['chars']:,} characters and {b['tokens'] - clean['after']['tokens']:,} tokens removed, and {len(gone)} pages that fell under {MIN_CHARS} characters were dropped{f", as {'was' if len(dups) == 1 else 'were'} {len(dups)} whose cleaned text repeated a lower page id's" * bool(dups)} (ids and titles in `{key}.build.json`). Templates and comments are dropped; `` @@ -979,13 +979,13 @@ text (sha1 of the stripped text), the lower page id is kept.""" f"revision, so how many released articles were created then is not known; {old['docs']:,} ({old['tokens']:,} tokens) were last edited before it.\n" f"All rows carry a CC BY label; nothing is dropped or relabelled for this.") links = "" - if by_contribution and "permalink" in side[0]: # wiki_history.record_links (v2#110) + if by_contribution and "permalink" in side[0]: # wiki_history.record_links links = "\n" + links_text(site["host"]) - if n_old := flagged["created_before_cc_by_2_5"]: # wikinews (v2#110, E3) + if n_old := flagged["created_before_cc_by_2_5"]: # wikinews links += (f"\nThe history is the article's list of authors; it credits them on every row, the {n_old:,} rows of pages created\n" f"before {old['date']} included. No usernames are copied.") quotes = "" - if "citations" in side[0]: # provenance (v2#110 3B) + if "citations" in side[0]: # provenance links += "\n" + sources_text(key, side) quotes = "\n\n" + QUOTATIONS review = "" @@ -1086,7 +1086,7 @@ ATTRIBUTION = { NOT_CHECKED = { "wikinews": """- pastes from copyrighted sources, including articles copied from press agencies or other publishers (no sample was run) - the 2.5 → 4.0 label of pages edited after the cutoff (a reading of the site's terms page, an inference, not confirmed; - the label here is by last revision; the per-contribution labels (v2#110) come from the relabel step), + the label here is by last revision; the per-contribution labels come from the relabel step), and the time of day of the switch - how many released articles were created before 2005-09-25, the public-domain date in the terms page - text imported from elsewhere under another licence or with extra attribution requirements @@ -1094,7 +1094,7 @@ NOT_CHECKED = { - personal data (the NERGAL scrub runs before v0.2.7)""", "wikivoyage": """- pastes from copyrighted sources (no sample was run) - the 3.0 → 4.0 label of pages edited after the cutoff (a reading of 3.0 §4(b)(ii), an inference, not confirmed; - the label here is by last revision; the per-contribution labels (v2#110) come from the relabel step), and the time of day of the switch + the label here is by last revision; the per-contribution labels come from the relabel step), and the time of day of the switch - text imported from elsewhere under another licence or with extra attribution requirements - text first contributed under GFDL before the 2009 move to CC BY-SA, and GFDL dual licensing; only the CC BY-SA grant is relied on diff --git a/src/fetch_wikipedia.py b/src/fetch_wikipedia.py index c15f22d8a37c278edfd4383acff52273bc2d01cd..65d3bf4ef29492090c19faa42fbc660da72084f5 100644 --- a/src/fetch_wikipedia.py +++ b/src/fetch_wikipedia.py @@ -1,8 +1,8 @@ #!/usr/bin/env python3 """Polish Wikipedia articles (ns 0) from the official plwiki dump, licence per record. -Replaces the SpeakLeash `plwiki` snapshot (v0.2.6 rights audit, -slayerlabs/polish-dynaword-v2#69). The dump date is pinned; every shard is +Replaces the SpeakLeash `plwiki` snapshot (v0.2.6 rights audit). +The dump date is pinned; every shard is checked against the sha1 in dumpstatus.json and in the dump's sha1sums.txt. B= @@ -15,7 +15,7 @@ checked against the sha1 in dumpstatus.json and in the dump's sha1sums.txt. python3 src/fetch_wikipedia.py attribution --out $B # data/wikipedia sidecars python3 src/fetch_wikipedia.py withhold --out $B # drops pages added to COPIED_PAGES since -Labels by contribution (slayerlabs/polish-dynaword-v2#110, option B) replace the last-revision +Labels by contribution replace the last-revision labels on the committed release; the pages-articles dump is not re-read. H= python3 src/wiki_history.py download --dump plwiki --out $H python3 src/wiki_history.py scan --stub $H/plwiki-20261001-stub-meta-history.xml.gz \\ @@ -26,7 +26,7 @@ labels on the committed release; the pages-articles dump is not re-read. H= python3 src/fetch_wikipedia.py citations --out $M # data/wikipedia/citations; build.json `citations` """ @@ -444,7 +444,7 @@ def withhold(data_dir: Path) -> None: def relabel(out: Path, data_dir: Path) -> None: - """Label each row by contribution (v2#110) from out/wikipedia.labels.jsonl (wiki_history.py + """Label each row by contribution from out/wikipedia.labels.jsonl (wiki_history.py compare): fetch_wikimedia.write_labels rewrites the parquet `license` column, the sidecar, stats and build record; this updates the licence evidence's labels and tokens. Text, ids and every other column are unchanged; rerunning changes nothing.""" @@ -526,7 +526,7 @@ def citations(dumps: Path, data_dir: Path, status: dict, workers: int) -> None: cites = [found[pageid][2] for _, pageid, _, _ in side] build = load(data_dir / f"{SOURCE}.build.json") build["citations"] = { - "issue": "slayerlabs/polish-dynaword-v2#110", "file": path.relative_to(data_dir).as_posix(), + "file": path.relative_to(data_dir).as_posix(), "dumpstatus_url": DUMPSTATUS_URL, "shards": shards, "rows": len(cites), "rows_with_citations": sum(map(bool, cites)), "citations": sum(map(len, cites)), "sha256": digest(path.read_bytes()), } diff --git a/src/fetch_wiktionary_examples.py b/src/fetch_wiktionary_examples.py index ec78a369c2f13761be5bce364b5b1b118bad4acc..fa23d39ef41038af06aab79a8d609bfd52b8a7ab 100644 --- a/src/fetch_wiktionary_examples.py +++ b/src/fetch_wiktionary_examples.py @@ -21,7 +21,7 @@ Only the standard library is required for parsing; `zstandard` is used for output compression (falls back to plain .jsonl with a warning). Each row and example is then labelled CC BY-SA 3.0, 4.0 or both by the date of -the contribution that added it (v2#110); see `relabel`. +the contribution that added it; see `relabel`. Usage: # download the dump yourself, then: @@ -290,7 +290,7 @@ def iter_pages(dump_path: Path): def relabel(out: Path, data_dir: Path) -> None: - """Label each released row by contribution date (v2#110) from out/.labels.jsonl + """Label each released row by contribution date from out/.labels.jsonl (wiki_history.py compare): an example the page's last revision before the cutoff already had, verbatim or shortened since, keeps CC BY-SA 3.0; one resembling an example there was edited after it and carries both licences; any other is 4.0. A row holding examples with diff --git a/src/language_gate.py b/src/language_gate.py index cd0505596f28cda607da06e4c1ee5e4e5c80e606..b679b417a1bf7a1da61cfbe1ee5a352bf35182af 100644 --- a/src/language_gate.py +++ b/src/language_gate.py @@ -1,7 +1,7 @@ """Shared Polish-language gate: a diacritic pre-check, then a three-window langid vote. The diacritic ratio alone dropped Polish documents with few diacritics: lists, tables -and template skeletons (slayerlabs/polish-dynaword-v2#77). A text whose ratio reaches +and template skeletons. A text whose ratio reaches MIN_POLISH_RATIO is Polish without a langid call; a text below it is kept only if the langid vote over its start, middle and end windows says "pl". diff --git a/src/licence_basis.py b/src/licence_basis.py index 375628c31efbfaea2cc20417d9ab3cf2d67cc715..908d5b80565db6ef4bbf73a21d661c98edf074d3 100644 --- a/src/licence_basis.py +++ b/src/licence_basis.py @@ -1,4 +1,4 @@ -"""Per-record licence basis (v2#111): the codes, the printed-CC-note reader and the sidecar check. +"""Per-record licence basis: the codes, the printed-CC-note reader and the sidecar check. Shared by biblioteka_nauki, open_icm_pl and kultura_bez_barier_pl. Each sidecar line gets licence_basis who states the licence for that record (CODES) diff --git a/src/licence_basis_biblioteka_nauki.py b/src/licence_basis_biblioteka_nauki.py index ae8f93051b56d50a2fc19fc4bf0eec677fdaf72f..2ff2591c65bdaa9999e0cc938d2868af9471f4aa 100644 --- a/src/licence_basis_biblioteka_nauki.py +++ b/src/licence_basis_biblioteka_nauki.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Per-record licence basis and the reviewed drops for biblioteka_nauki (v0.2.6, slayerlabs/polish-dynaword-v2#111). +"""Per-record licence basis and the reviewed drops for biblioteka_nauki (v0.2.6). The rules, the hand decisions and the evidence file. src/clean_biblioteka_nauki.py runs them in its build, on the rows it would otherwise ship, and applies the pinned review table; nothing here is run on its own. @@ -16,7 +16,7 @@ Review (`biblioteka_nauki.review.csv`: `id,decision,reason`, decision `drop` or nominates and that someone decided. The first `drop` in PRIORITY order gives a row its reason; a row some rule dropped keeps that reason when a later rule nominates it too; a row only `keep`-decided by an earlier rule is dropped by a later `drop`. A new rule is a new entry in PRIORITY, in `decisions` and in REASONS; the build refuses a pinned table that differs from what the -rules give. Maintainer decisions of 2026-10-20 (v2#111): the 88 rows of the clear-cut reasons, the 97 `restriction_notice_no_cc_note` +rules give. Maintainer decisions of 2026-10-20: the 88 rows of the clear-cut reasons, the 97 `restriction_notice_no_cc_note` rows and the rows created before their licence version existed are dropped; the other review rows are kept. `biblioteka_nauki.licence-basis.json` holds the counts, the rules with their measurements and hand checks, and the drops. @@ -343,7 +343,7 @@ def evidence(recs: list[dict], by_rule: dict[str, dict[str, tuple[str, str]]], f dropped_before = Counter(final[i][1] for i in proxy if any(d == DROP for d, _ in earlier[i])) # these keep the reason of their first drop flipped = Counter(earlier[i][0][1] for i in proxy if earlier[i] and all(d == KEEP for d, _ in earlier[i])) # kept by the others, dropped here result = { - "source": SOURCE, "issue": "slayerlabs/polish-dynaword-v2#111", "codes": list(lb.CODES), "counts": {c: counts.get(c, 0) for c in lb.CODES}, + "source": SOURCE, "codes": list(lb.CODES), "counts": {c: counts.get(c, 0) for c in lb.CODES}, "dates": {"file_note": "the row's `added` date", "depositor": DEPOSITOR_DATE}, "added_dates": sorted({r["added"] for r in shipped}), "by_label": {label: {c: sum(1 for r, b in zip(shipped, basis) if r["label"] == label and b[0] == c) for c in lb.CODES} for label in sorted({r["label"] for r in shipped})}, @@ -358,7 +358,7 @@ def evidence(recs: list[dict], by_rule: dict[str, dict[str, tuple[str, str]]], f }, "platform_check": {"retrieved": "2026-10-05..2026-10-06", "rows_asked": 42068, "answered_200": 42056, "http404": 12, "note": "the 12 http404 rows are withheld, so no shipped row has `none`; see biblioteka_nauki.license-evidence.json"}, - "publisher_check": {"done": False, "note": "no journal or publisher page was read; the issue allows `publisher` as a second basis"}, + "publisher_check": {"done": False, "note": "no journal or publisher page was read; `publisher` is allowed as a second basis"}, "journal_adoption": {"obtainable": False, "reason": "GET /api/journals/{id} returns the journal's current licence only, the shipped rows carry no journal key, and fetching every item takes about 26 hours at the polite rate", "consequence": "an issue from before its journal adopted CC may remain wherever the publication year is not earlier than the licence version", @@ -404,7 +404,7 @@ def evidence(recs: list[dict], by_rule: dict[str, dict[str, tuple[str, str]]], f for i in sorted(final) if sum(i in by_rule[rule] for rule in PRIORITY) > 1}, "review": {**pinned["review"], "rows": len(final), "reasons": {d: {k: v for k, v in group.items() if k in review_rows} for d, group in REASONS.items()}, "rule_order": list(PRIORITY), "by_reason": review_rows, "decided": decided, "source": measure(recs), "shipped": measure(shipped), - "note": "drops decided by the maintainer on 2026-10-20 (v2#111); the table lists every row a rule nominated, `drop` or `keep`, and nothing else", + "note": "drops decided by the maintainer on 2026-10-20; the table lists every row a rule nominated, `drop` or `keep`, and nothing else", "kept": pinned["kept"]}, "input": pinned["input"], } diff --git a/src/licence_basis_kultura_bez_barier_pl.py b/src/licence_basis_kultura_bez_barier_pl.py index 6b3c4946edb2206023c2f3bc4c2ac82958814fbe..dac17d03e70751b2678865999312aa14d29d39df 100644 --- a/src/licence_basis_kultura_bez_barier_pl.py +++ b/src/licence_basis_kultura_bez_barier_pl.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""kultura_bez_barier_pl, v0.2.6 (slayerlabs/polish-dynaword-v2#111): per-record licence basis and the reviewed drops. +"""kultura_bez_barier_pl, v0.2.6: per-record licence basis and the reviewed drops. 1. Drops the titles the pinned review table marks `drop` (`kultura_bez_barier_pl.review.csv`; every title is listed, with `drop` or `keep` and a reason). A kept row is not changed: the evidence file records a digest of the kept rows @@ -63,7 +63,7 @@ CATALOGUE_READ = "2026-10-19" # the day the page was fetched (robots.txt allows PROTOCOL = {"id": "protocol:licence-basis-v1", "procedure": "src/licence_basis_kultura_bez_barier_pl.py: the reviewed drops applied, licence_basis per kept record from the printed " "licence line or the catalogue listing; Parquet, sidecar, sample, stats, evidence file and manifest recomputed"} -# What each reason code means (v2#111: "the foundation's own titles, verified one by one"). The decisions are in the review table. +# What each reason code means. The decisions are in the review table. REASONS = { "drop": { "joint_project_other_organisations": "the front matter names four organisations that carried out the project (the State Fund for the Rehabilitation of Disabled " @@ -159,7 +159,7 @@ def manifest_update(manifest: dict, files: dict[str, bytes], run: dict) -> dict: "relations": manifest["relations"] + [{"source": version, "predicate": "DERIVED_FROM", "target": old_version}, {"source": version, "predicate": "GENERATED_BY", "target": run["id"]}], "pending": manifest["pending"] + ["scope of the foundation's CC BY-SA 3.0 statement (publications or only the pictograms): " - "to be asked of the foundation (v2#111)"]} + "to be asked of the foundation"]} def main(page_path: str) -> None: @@ -185,7 +185,7 @@ def main(page_path: str) -> None: kept_digest, source_tokens = sha(out["rows"]), sum(r["token_count"] for r in rows) dropped_tokens = sum(d["tokens"] for d in out["dropped"]) evidence = { - "source": SOURCE, "issue": "slayerlabs/polish-dynaword-v2#111", "codes": list(lb.CODES), "counts": out["counts"], + "source": SOURCE, "codes": list(lb.CODES), "counts": out["counts"], "catalogue": {"url": CATALOGUE_URL, "read": CATALOGUE_READ, "sha256": CATALOGUE_SHA256, "bytes": len(page_bytes), "robots_txt": "User-agent: * with an empty Disallow (everything allowed), read the same day", "statement": "the intro paragraph says the foundation offers its publications and the accessibility pictograms " diff --git a/src/licence_basis_open_icm_pl.py b/src/licence_basis_open_icm_pl.py index 23d0bcf1561702ac7e75fe25594e85f4503898dd..96982558706b30eb95db08cd344e7545aa02429a 100644 --- a/src/licence_basis_open_icm_pl.py +++ b/src/licence_basis_open_icm_pl.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""open_icm_pl, v0.2.6 (slayerlabs/polish-dynaword-v2#111): per-record licence basis, the reviewed drops and three relabels. +"""open_icm_pl, v0.2.6: per-record licence basis, the reviewed drops and three relabels. The 85 records of main carry a label that only the repository's `dc.rights` field states (the depositor sets it), except 2 whose text prints the licence and 3 whose text prints an NC or ND licence. This stage keeps a record only if a second source @@ -71,7 +71,7 @@ INPUT_SHA256 = { MANIFEST: "1365164cb50498bf7eab6da29f44c86f164b38316fa6b63341412c8b3d287782", } REVIEW_SHA256 = "f98a7dc73181b746e91a6033291a944599fc88cb69ce51a2c235c35cf647873a" -CHECK_SHA256 = "df988ed8ee92db30c8d39babebf513faa795eed3b902a876e60d65bdf7394039" +CHECK_SHA256 = "a127bace44823cb49ff7bbef57ef2cf2127d9737dc64cff0373dd08cdcb74353" SAMPLE_SIZE = 12 DEPOSITOR_CHECK_DATE = "2026-10-05" # the rights audit matched 85/85 labels to the live DSpace record (artifacts/rights_audit_2026-10/reports/academic.md) PROTOCOL = {"id": "protocol:licence-basis-v1", @@ -250,7 +250,7 @@ def manifest_update(manifest: dict, files: dict[str, bytes], run: dict, stats: d version = f"version:dataset:open-icm-pl-dynaword:{parquet_sha}" overlap = next(e["id"] for e in manifest["evidence"] if e["observation_type"] == "metadata_overlap_audit") retention = (f"The proposed DynaWord slice contains {stats['kept']} records: {stats['source_pilot_kept']} passed source QA, " - f"{stats['target_overlap_excluded']} exact title/DOI overlaps were excluded and {stats['drop_review']} were dropped in the licence review (v2#111).") + f"{stats['target_overlap_excluded']} exact title/DOI overlaps were excluded and {stats['drop_review']} were dropped in the licence review.") claims = [{**c, "statement": retention, "supported_by": [stats_evidence["id"], overlap]} if c["id"] == "claim:open-icm-target-retention" else c for c in manifest["claims"]] claims.append({"id": "claim:open-icm-licence-basis", "supported_by": [files_evidence["id"]], @@ -265,7 +265,7 @@ def manifest_update(manifest: dict, files: dict[str, bytes], run: dict, stats: d "relations": manifest["relations"] + [{"source": version, "predicate": "DERIVED_FROM", "target": old_version}, {"source": version, "predicate": "GENERATED_BY", "target": run["id"]}], "pending": manifest["pending"] + ["licence at the time of publication for the 9 publisher-basis records: the statements were read on 2026-10-20 and a " - "publisher may have applied them to back issues later; 3 are journal-level; 1 names no version (v2#111)"]} + "publisher may have applied them to back issues later; 3 are journal-level; 1 names no version"]} def main() -> None: @@ -289,7 +289,7 @@ def main() -> None: source = measure(rows) dropped = measure([r for r in rows if review[r["id"]][0] == "drop"]) evidence = { - "source": SOURCE, "issue": "slayerlabs/polish-dynaword-v2#111", "codes": list(lb.CODES), "counts": out["counts"], + "source": SOURCE, "codes": list(lb.CODES), "counts": out["counts"], "dates": {"file_note": "the row's `added` date (when the text was acquired)", "publisher": f"{check['read']}, the day the publisher page was read"}, "rule": "licence_basis.note_vs_label(text, label): a CC note in the front or back matter, not about a photo or a quoted source; " "file_note when its elements equal the label's, conflict when only other elements are printed. See the docstring of " diff --git a/src/measure_dziennik_ustaw.py b/src/measure_dziennik_ustaw.py index b8c2758f4254b2a3811790c3480e9d43826efe87..3aad69b84031cf18049b314aafefb2622d282867 100644 --- a/src/measure_dziennik_ustaw.py +++ b/src/measure_dziennik_ustaw.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Measure what the dziennik_ustaw shard contains (v2#107), so the datasheet's figures can be re-derived. +"""Measure what the dziennik_ustaw shard contains, so the datasheet's figures can be re-derived. The shard has no publisher, type or ELI column (the build kept `text` only), so everything here is read from the text: the heading is the first line, which names the type of the document ("Ustawa", diff --git a/src/rights.py b/src/rights.py index b8ce46e6da2edb68a506701c1317d5081c326041..d648530c20dcca47858a873099c3e02d99a1bd7a 100644 --- a/src/rights.py +++ b/src/rights.py @@ -41,10 +41,11 @@ def spdx(uri: str) -> str: # Text contributed under the 2014 Wikimedia ToU is CC BY-SA 3.0; the ToU in force from -# 2023-06-07 moved new text to CC BY-SA 4.0. A page last edited on or after the -# cutoff is an adaptation of its 3.0 text, which BY-SA 3.0 s4(b)(ii) lets us -# distribute under 4.0 (same licence elements). Time of day of the switch is not -# published, so midnight UTC labels that whole day 4.0 (the later licence). +# 2023-06-07 moved new text to CC BY-SA 4.0. license_for_revision labels a page by its +# last revision only: the builders' first pass. The shipped labels are by contribution +# (wiki_history.py compare): an older page that gained text after the cutoff is labelled +# "CC-BY-SA-3.0 AND CC-BY-SA-4.0". Time of day of the switch is not published, so +# midnight UTC puts that whole day after it (the later licence). BY_SA_4_CUTOFF = datetime(2023, 6, 7, tzinfo=timezone.utc) # pl.wikinews moved from CC BY 2.5 to CC BY 4.0 on 2024-12-16 (Wikinews:Warunki uzycia; # config deployed 08:08-08:32 UTC, Phabricator T381421). Same midnight-UTC rule. @@ -139,7 +140,7 @@ WITHHELD_TEMPLATES: dict[str, dict[str, str]] = { }, } -# Text a page imports from another site under that site's licence (v2#110, 2A): {source: {template: label}}, +# Text a page imports from another site under that site's licence: {source: {template: label}}, # the label added to the page's own (fetch_wikimedia.import_licenses). None: the template states the licence in # its `licencja` argument. The Wikinews partners' licences are the ones Wikinews:Współpraca z innymi serwisami # (and its /Nieaktywne subpage) names; the other Wikibooks licence templates (CC BY-SA 3.0, PD, the GNU FDL) add nothing to a CC BY-SA label. diff --git a/src/sejm_api_common.py b/src/sejm_api_common.py index 62100feb2c4fed329ef30b20d39a370b5f2d56ff..5137d4c59b1fbcadfb02a93987b0df172eee89e4 100644 --- a/src/sejm_api_common.py +++ b/src/sejm_api_common.py @@ -23,7 +23,7 @@ OPEN_DATA_ACT = "https://eli.gov.pl/api/acts/DU/2023/1524/text.html" SEJM_API = "https://api.sejm.gov.pl/" SEJM_API_DOCUMENTATION = "https://api.sejm.gov.pl/sejm.html" # The end of the Sejm material that `parliamentary` keeps: the last day of term 8 (its last Sejm sitting in the -# shard is 2019-10-16). `parliamentary` also holds the Senate to 2025 (polish-dynaword-v2#54), which the Sejm-only +# shard is 2019-10-16). `parliamentary` also holds the Senate to 2025, which the Sejm-only # API sources do not overlap. PARLIAMENTARY_SEJM_END = "2019-11-11" diff --git a/src/sejm_api_speakers.py b/src/sejm_api_speakers.py index b9978fae0019e05e77ab93395e8e7f014cc6619d..35743783e1713d6bc3e6b6a480679a305b1ae8be 100644 --- a/src/sejm_api_speakers.py +++ b/src/sejm_api_speakers.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Speaker allowlist for the plenary speeches of sejm_api and sejm_api_2011_2022 (slayerlabs/polish-dynaword-v2#99). +"""Speaker allowlist for the plenary speeches of sejm_api and sejm_api_2011_2022. The PiotrSty snapshot keeps a speaker name and no role: "Marek Subocz", "Rolnictwa i Rozwoju Wsi Stefan Krajewski" (the stenogram label without its first word). The role comes from two offline sources, each diff --git a/src/sources.py b/src/sources.py index 2c5d7582a641bcdbfa5731ea0870ba749e8e8208..f2095a5bb3ca021bbb5c70f7fbf6a9ddd1e41cd4 100644 --- a/src/sources.py +++ b/src/sources.py @@ -360,7 +360,7 @@ SOURCES = { "heads of constitutional organs and Sejm/Senate staff are kept " "(the sejm_committee_transcripts allowlist plus PPC rules for " "labels without a party tag, II RP surname-only labels and " - "historic offices; polish-dynaword-v2#54): 3,024,072,101 of " + "historic offices): 3,024,072,101 of " "3,774,774,717 characters of utterance text (80.1%). A turn whose " "label matches no rule is dropped, among them committee guests, " "witnesses of investigative committees, the President's " @@ -419,7 +419,7 @@ SOURCES = { "whose 5-shingle containment in one document of the pinned " "parliamentary / sejm_api Parquets is >= 0.5, then drops speakers outside " "the parliamentary allowlist (118,902 -> 33,941 docs; " - "parliamentary is the polish-dynaword-v2#54 PPC TEI rebuild). NERGAL " + "parliamentary is the PPC TEI rebuild). NERGAL " "not run - re-run " "through SlayerLab/NERGAL before v0.2.7. Shared helpers factored into " "src/sejm_api_common.py.", @@ -540,7 +540,7 @@ SOURCES = { "license_spdx": "MIXED", "traceable": "Each document's `license` is the one its own Wolne Lektury book states in " "dc:rights / dc:rights.license, never its parent collection's " - "(src/wolne_lektury_licences.py, polish-dynaword-v2#57). Documents are matched " + "(src/wolne_lektury_licences.py). Documents are matched " "to books by text: the same head and tail, or, where Wolne Lektury has edited a " "text since the scrape, a 5-word-shingle share of at least 0.6 at both ends; 17 " "were matched by hand. A label is set only when the rights text is unambiguous: " @@ -601,7 +601,7 @@ SOURCES = { "created": "1500-01-01, 2024-12-31", "legal_note": "For v0.2.6, 63 documents whose text is an eltec_pol novel are dropped " "(share of a document's 5-word shingles found in one ELTeC novel >= 0.9; " - "src/clean_wolne_lektury.py, polish-dynaword-v2#72). eltec_pol keeps those " + "src/clean_wolne_lektury.py). eltec_pol keeps those " "50 novels whole under CC BY 4.0. Three documents only partly in an ELTeC " "novel are kept: both tomes of Mniszek's Trędowata (the ELTeC text is " "shorter) and Kochanowski's Pieśń IX, quoted in Łoziński's Oko proroka. " @@ -609,9 +609,9 @@ SOURCES = { "dropped because Wolne Lektury gives them no usable licence: two Horace odes " "translated by Paweł Kozioł, one marked only \"CC BY-SA\" with no version, the " "other public domain for Marceli Motty's translation and \"CC BY-SA\" for " - "Kozioł's (polish-dynaword-v2#57). " + "Kozioł's. " "2 more are dropped after a check of Wolne Lektury's credits against the " - "National Library's catalogue (polish-dynaword-v2#109): Wolne Lektury marks " + "National Library's catalogue: Wolne Lektury marks " "both public domain, but Nietzsche's \"Wola mocy\" is a joint translation by " "Konrad Drzewiecki and Stefan Frycz (d. 1960), and Wells's \"Wehikuł czasu\" " "follows a 1985 print whose translation an editor born in 1932 revised. The " @@ -634,7 +634,7 @@ SOURCES = { "prints after 1955, the people named in Wolne Lektury's credits, in its " "print-edition field and in the National Library's records of the print were " "checked for editors who died after 1955 or whose death year is not known " - "(polish-dynaword-v2#109; `edition_review` in the evidence file); otherwise " + "(`edition_review` in the evidence file); otherwise " "the editors of those editions and their death years are not established. " "174 documents are held out of this release until the books' contents are " "checked, because from their verse lines we estimate that they fill about " @@ -698,7 +698,7 @@ SOURCES = { "src/fetch_wikimedia.py. Articles (namespace 0) only, no " "redirects; one document per page, id from the page id. The text " "set is the one released in v0.2.0-v0.2.5 with the category lines " - "and file-link options strip_code left removed (v2#116; 812 pages " + "and file-link options strip_code left removed (812 pages " "fell under 200 characters and 1 repeated another page's text, " "and were dropped); the rebuild adds the page's last-revision " "time. The licence labels come from the page histories " @@ -742,7 +742,7 @@ SOURCES = { "set is the one released in v0.2.0-v0.2.5 without the 2 pages the " "rights review withheld (DROPPED_PAGES in src/rights.py), with the " "category lines and file-link options strip_code left removed " - "(v2#116; 3 pages fell under 200 characters and were dropped); the " + "(3 pages fell under 200 characters and were dropped); the " "rebuild adds the page's last-revision time. The licence labels " "come from the page histories (stub-meta-history dump " "plwikivoyage-20261001, src/wiki_history.py).", @@ -780,7 +780,7 @@ SOURCES = { "set is the one released in v0.2.0-v0.2.5 without the 47 pages " "the rights review withheld (DROPPED_PAGES in src/rights.py), with " "the category lines and file-link options strip_code left removed " - "(v2#116; 17 pages fell under 200 characters and were dropped); the " + "(17 pages fell under 200 characters and were dropped); the " "rebuild adds the page's last-revision time. The licence labels " "come from the page histories (stub-meta-history dump " "plwikibooks-20261001, src/wiki_history.py).", @@ -907,7 +907,7 @@ SOURCES = { "for the changed rows and writes the sidecar and " "eltec_pol.license-evidence.json (the sidecar's text_sha1 is checked " "per row).", - "legal_note": "Flagged, nothing excluded (polish-dynaword-v2#109). 3 documents " + "legal_note": "Flagged, nothing excluded. 3 documents " "(eltec_pol_2455254, eltec_pol_2455279, eltec_pol_2455281) carry 150 " "numbered note markers (1, 61 and 88) and no note text, and their TEI " "files hold none either (no element; is title-page " @@ -1019,7 +1019,8 @@ SOURCES = { "the first capture (2019-08-05) to 2022-08-17, CC BY-NC-ND 3.0 PL from " "2022-08-19 to 2025-12-12, and today's text from 2025-12-18. By the date " "listed on gov.pl, 35,207 rows date from the CC BY-NC-ND 3.0 PL period, " - "24,201 from the CC BY 3.0 PL period and 7,381 from before 2019-08-05. " + "24,201 from the CC BY 3.0 PL period and 7,381 from before 2019-08-05; 5 rows " + "whose mistyped year (such as 1024) falls before that date are not counted. " "That today's offer also covers texts first published under an earlier " "footer is our reading; it is not certain. The same page excludes works " "whose copyright belongs to third parties; using those needs the owners' " @@ -1106,11 +1107,11 @@ SOURCES = { "the texts are written by 247 publishing institutions. The " "operator's agreements with them are unpublished, no grant from them " "was found, and KPRM has not answered the question sent on " - "2026-10-06 (slayerlabs/polish-dynaword-v2#49). Our assessment is " + "2026-10-06. Our assessment is " "that the footer alone does not license the institutions' own " "texts. Re-admission, with the operator's confirmation or with " - "official acts on their own basis, is tracked in " - "slayerlabs/polish-dynaword-v2#103. src/clean_samorzad_gov_pl.py " + "official acts on their own basis, waits for v0.2.8 at the " + "earliest. src/clean_samorzad_gov_pl.py " "and its third-party drops (Hub PR 64) stay for that. Since " "2026-10-21 no release tag contains it.", "domain": "local government, education, social services and culture", @@ -1162,8 +1163,7 @@ SOURCES = { "committed as biblioteka_nauki.license-api.json. Each attribution " "sidecar line also gives the basis: the platform's licence field " "for 35,186 rows (depositor), a CC licence printed in the text for " - "2,657 (file_note); no journal or publisher page was read " - "(v2#111).", + "2,657 (file_note); no journal or publisher page was read.", "upstream": "https://bibliotekanauki.pl/", "provenance": "Text from the SpeakLeash redistribution; licence and attribution " "recovered per document from the Biblioteka Nauki API (Hub PR 11); " @@ -1172,16 +1172,16 @@ SOURCES = { "(recover_license_versions.py, recover_attribution.py); rows the API " "did not resolve to an allowlisted CC BY or CC BY-SA licence are " "withheld by clean_biblioteka_nauki.py, which then drops the rows " - "of a pinned review table (biblioteka_nauki.review.csv, v2#111).", + "of a pinned review table (biblioteka_nauki.review.csv).", "legal_note": "The `license` column holds the per-record version, not a single " "CC BY 4.0 / CC BY-SA 4.0 label: CC BY-SA rows (about one third) are " "share-alike under their own version (3.0, 3.0 PL or 4.0). Dropped: " - "3 items carrying the CC Public Domain Mark (a label, not a grant; " - "v2#52), 12 rows the API no longer serves (HTTP 404), 56 rows whose own " + "3 items carrying the CC Public Domain Mark (a label, not a grant), " + "12 rows the API no longer serves (HTTP 404), 56 rows whose own " "text prints a NonCommercial or NoDerivatives licence and 15 rows whose " "text says it is reprinted or translated by permission of a publisher " - "(maintainer decision 2026-10-06, v2#57). Dropped after review " - "(maintainer decisions 2026-10-20, v2#111): 4,142 rows, of which 3,957 " + "(maintainer decision 2026-10-06). Dropped after review " + "(maintainer decisions 2026-10-20): 4,142 rows, of which 3,957 " "because the `created` year is earlier than the first year of the " "label's licence version (2.0: 2004; 3.0 and 3.0 PL: 2007; 4.0: 2013) " "and 185 because the text prints a NonCommercial or NoDerivatives " @@ -1245,9 +1245,9 @@ SOURCES = { "pretty": "OPEN ICM Polish open-access publications pilot", "license": "per-record CC BY or CC BY-SA", "license_spdx": "MIXED", - "traceable": "Every retained record carries an allowlisted item-level CC BY or CC BY-SA label and a licence basis in the attribution sidecar: a CC licence printed in the text (file_note, 2 records) or a publisher page read on 2026-10-20 (publisher, 9 records; 3 of them take the publisher's version or elements as their label). The publisher statements may have been applied to back issues later, 3 are journal-level and 1 names no version (v2#111). Original item URLs, authors, normalized license identifiers, TEXT bitstream checksums and available license evidence are preserved per record.", + "traceable": "Every retained record carries an allowlisted item-level CC BY or CC BY-SA label and a licence basis in the attribution sidecar: a CC licence printed in the text (file_note, 2 records) or a publisher page read on 2026-10-20 (publisher, 9 records; 3 of them take the publisher's version or elements as their label). The publisher statements may have been applied to back issues later, 3 are journal-level and 1 names no version. Original item URLs, authors, normalized license identifiers, TEXT bitstream checksums and available license evidence are preserved per record.", "upstream": "https://open.icm.edu.pl/home", - "provenance": "Discovered directly through the official OPEN ICM DSpace API. Official repository-generated TEXT bitstreams were downloaded after the repository's interactive CAPTCHA and verified against declared sizes/checksums. Unicode/whitespace normalization, limited pattern redaction, language/quality filtering and within-source deduplication are documented in the committed artifacts. 74 of the 85 records were then dropped by a pinned review table (v2#111): 73 because only the repository's own licence field, set by the depositor, or an NC/ND licence printed in the text, was found for them, and 1 because the licence version its publisher page states did not exist in the year the text was created.", + "provenance": "Discovered directly through the official OPEN ICM DSpace API. Official repository-generated TEXT bitstreams were downloaded after the repository's interactive CAPTCHA and verified against declared sizes/checksums. Unicode/whitespace normalization, limited pattern redaction, language/quality filtering and within-source deduplication are documented in the committed artifacts. 74 of the 85 records were then dropped by a pinned review table: 73 because only the repository's own licence field, set by the depositor, or an NC/ND licence printed in the text, was found for them, and 1 because the licence version its publisher page states did not exist in the year the text was created.", "domain": "academic/mixed", "created": "2013-2024", "is_ocr": True, @@ -1320,14 +1320,14 @@ SOURCES = { "preface, abridgement or editor's corrections cannot be ruled out " "for any of the 221 texts left after the dedup. Our assessment is " "that this is too high a risk without the edition. Re-admission, " - "per text with the edition identified, is tracked in " - "slayerlabs/polish-dynaword-v2#105; src/clean_1000_novels.py and " + "per text with the edition identified, waits for v0.2.8 at the " + "earliest; src/clean_1000_novels.py and " "its rules stay for that. Since 2026-10-21 no release tag contains it.", "license": "public-domain", "license_spdx": "LicenseRef-Public-Domain-PL", "traceable": "Only texts in the public domain in Poland are kept: the author and " "every credited translator died in 1955 or earlier (Art. 36). Per-text " - "screen: polish-dynaword-v2/evidence/1000_novels_rights_screen.csv; " + "screen: evidence/1000_novels_rights_screen.csv among the paper's ancillary files; " "author, translator, title and basis per row in " "1000_novels.attribution.jsonl. The CLARIN-PL CC BY 4.0 record covers " "the compilation only; CLARIN-PL holds no rights documentation for the " @@ -1400,7 +1400,7 @@ SOURCES = { "passed the PDF-level selection (2 rejected for a rights/authorship " "conflict with a third-party project partner, 1 for legacy-font " "extraction damage); 2 of the 9 (joint projects) were then dropped " - "by a pinned review table (v2#111), leaving 7; attribution, " + "by a pinned review table, leaving 7; attribution, " "selection decisions, the review and checksums preserved in the " "sidecar files.", "legal_note": "Held off main from 2026-10-22 until the scope of the catalogue's " diff --git a/src/takedown.py b/src/takedown.py index 2940d444073a1f89303d8832ad2b4b2b3c8883e3..6a0e092880791ece9f719150d33249a7267d7240 100644 --- a/src/takedown.py +++ b/src/takedown.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Takedown gate: keep blocklisted records out of every shard (v2#113). +"""Takedown gate: keep blocklisted records out of every shard. takedown/blocklist.tsv has one row per blocked record: source, id, sha256. A record is blocked when its source and id match a row, or when text_key() of its diff --git a/src/test_1000_novels_contract.py b/src/test_1000_novels_contract.py index db8ef33a26ec39f221e84d1099929352ee6818c4..89f9ef32308b455df503e7b6e4b771d9e9a7ccce 100644 --- a/src/test_1000_novels_contract.py +++ b/src/test_1000_novels_contract.py @@ -17,7 +17,7 @@ DATA = ROOT / "data" / "1000_novels" def test_withdrawn_from_main(): - """slayerlabs/polish-dynaword-v2#104: withdrawn; re-admission is #105. The builder and + """Withdrawn from main on 2026-10-17; re-admission waits for v0.2.8 at the earliest. The builder and its rule tests stay, the shard does not, and make_docs skips a source without stats.""" from sources import SOURCES diff --git a/src/test_added_dates.py b/src/test_added_dates.py index 84d93e2f6d883e7f79a8def9a33da607095b87c9..a59caade9692b88d37f7e1ee6e7e93cb21566a15 100644 --- a/src/test_added_dates.py +++ b/src/test_added_dates.py @@ -1,4 +1,4 @@ -"""`added`: one date per source, the registry's (v0.2.6 release edits, slayerlabs/polish-dynaword-v2#80).""" +"""`added`: one date per source, the registry's (v0.2.6 release edits).""" import json from pathlib import Path import re diff --git a/src/test_attribution_common.py b/src/test_attribution_common.py index 2c5d88893f97adf38c87bb6d8c09b2924cb4587c..8ae8b61c14069baee4d2e5cb72f5fde0ec3a7095 100644 --- a/src/test_attribution_common.py +++ b/src/test_attribution_common.py @@ -1,4 +1,4 @@ -"""Checks for the helpers shared by the literary attribution builders (src/attribution_common.py, v2#109).""" +"""Checks for the helpers shared by the literary attribution builders (src/attribution_common.py).""" import sys from pathlib import Path diff --git a/src/test_attribution_release.py b/src/test_attribution_release.py index 0a481c77e4ca2100a976ea66f5fdc02a2facfdd7..291c5c62fbd711776fd029d3719da7443ef3729d 100644 --- a/src/test_attribution_release.py +++ b/src/test_attribution_release.py @@ -1,5 +1,5 @@ """Checks on the released wolne_lektury and eltec_pol files: the attribution sidecar, the `author` column, the -evidence file and the datasheet (v2#109). The builders' logic is tested in test_build_eltec_pol_attribution.py and +evidence file and the datasheet. The builders' logic is tested in test_build_eltec_pol_attribution.py and test_wolne_lektury_attribution.py; these tests read what is committed.""" import json @@ -332,7 +332,7 @@ def test_the_kept_selection_rows_are_public_domain_prints_after_1955_with_no_app note = SOURCES["wolne_lektury"]["legal_note"] assert f"The other {len(kept)} documents printed in selections made by later editors" in note assert "without the editors' introductions or notes" in note - # the examples' editors are from BN's records (polish-dynaword-v2#109); their prints are kept rows' print editions + # the examples' editors are from BN's records; their prints are kept rows' print editions for title, editor in (("Poezje", "Matylda Wiśniewska, 1958"), ("Utwory wybrane", "Artur Hutnikiewicz, 1980"), ("Pisma wierszem i prozą", "Juliusz W. Gomulicki, 1984")): assert f'"{title}", ' in note and editor in note diff --git a/src/test_biblioteka_nauki_contract.py b/src/test_biblioteka_nauki_contract.py index 0975f266119988555f4f88f89d620d9f84e31aae..ecb30604dc5ec9748fe2e3ded5ae4dec8afd8585 100644 --- a/src/test_biblioteka_nauki_contract.py +++ b/src/test_biblioteka_nauki_contract.py @@ -143,7 +143,7 @@ def test_shard_labels_are_the_api_licences_in_the_sidecar(stats, api): def test_evidence_file_matches_sidecar_and_stats(stats, api): - """The file records the state of Hub PR 81 (before the reviewed drops of v2#111); the checks below hold for that state.""" + """The file records the state of Hub PR 81 (before the reviewed drops); the checks below hold for that state.""" evidence = json.loads((DATA / "biblioteka_nauki.license-evidence.json").read_text(encoding="utf-8")) assert evidence["sidecar_sha256"] == hashlib.sha256(LICENSE_API.read_bytes()).hexdigest() assert evidence["retrieved"] == api["retrieved"] @@ -266,7 +266,7 @@ def test_datasheet_counts_match_stats(stats): for name, count in classes.items(): assert f"| {name} | {count} |" in card, name assert f"read {stats['read']:,} → kept {stats['kept']:,}" in card - assert f"(`src/clean_biblioteka_nauki.py`, polish-dynaword-v2#111): **{stats['drop_review']:,}**" in card + assert f"(`src/clean_biblioteka_nauki.py`): **{stats['drop_review']:,}**" in card for reason, count in stats["drop_review_by_reason"].items(): assert f"| {reason} | {count:,} |" in card, reason basis = Counter(json.loads(line)["licence_basis"] for line in (DATA / "biblioteka_nauki.attribution.jsonl").read_text(encoding="utf-8").splitlines()) diff --git a/src/test_build_eltec_pol_attribution.py b/src/test_build_eltec_pol_attribution.py index 2eb7e11e3058b3353723a0189771c6fa07573292..8c5eaaada2c865cf5ba7c0b9dcdeba690abbd29a 100644 --- a/src/test_build_eltec_pol_attribution.py +++ b/src/test_build_eltec_pol_attribution.py @@ -1,4 +1,4 @@ -"""Checks for the eltec_pol author metadata and attribution sidecar (src/build_eltec_pol_attribution.py, v2#109), on +"""Checks for the eltec_pol author metadata and attribution sidecar (src/build_eltec_pol_attribution.py), on made-up rows and on the committed metadata table. The released files are checked in test_attribution_release.py.""" import json diff --git a/src/test_build_plwiki_talk_pl.py b/src/test_build_plwiki_talk_pl.py index 29bde0d6cbab4c47a3f8a0756f7b7e38937f7b79..09385bbb778bd72892deabe94c24f4489e00887b 100644 --- a/src/test_build_plwiki_talk_pl.py +++ b/src/test_build_plwiki_talk_pl.py @@ -165,7 +165,7 @@ def test_build_drops_file_link_residue_and_rechecks_length(tmp_path, monkeypatch decisions = MODULE.read_lines(tmp_path / "hf_repo/artifacts/decisions.jsonl") assert [d["reason"] for d in decisions] == ["too_little_text_after_residue_cleanup", "include"] text = pq.read_table(tmp_path / "hf_repo/data/train-00000-of-00001.parquet")["text"][0].as_py() - assert text.endswith(f"polsku.\n\n{caption}\n\n{category}") # the category line stays (v2#116) + assert text.endswith(f"polsku.\n\n{caption}\n\n{category}") # the category line stays def test_build_verify_roundtrip_and_tamper_detection(tmp_path, monkeypatch): diff --git a/src/test_build_plwiki_usertalk_pl.py b/src/test_build_plwiki_usertalk_pl.py index 364887d6cf9b0d87f16374ebe125aad228e90b4a..45e7436d9448b43991f5a7eb6ae6e111e6667dd7 100644 --- a/src/test_build_plwiki_usertalk_pl.py +++ b/src/test_build_plwiki_usertalk_pl.py @@ -175,7 +175,7 @@ def test_build_drops_file_link_residue_and_rechecks_length(tmp_path, monkeypatch decisions = MODULE.read_lines(tmp_path / "hf_repo/artifacts/decisions.jsonl") assert [d["reason"] for d in decisions] == ["too_little_text_after_residue_cleanup", "include"] text = pq.read_table(tmp_path / "hf_repo/data/train-00000-of-00001.parquet")["text"][0].as_py() - assert text.endswith(f"polsku.\n\n{caption}\n\n{category}") # the category line stays (v2#116) + assert text.endswith(f"polsku.\n\n{caption}\n\n{category}") # the category line stays def test_build_verify_roundtrip_and_tamper_detection(tmp_path, monkeypatch): diff --git a/src/test_build_uzp_orzeczenia_pl.py b/src/test_build_uzp_orzeczenia_pl.py index b376f2ad448d22aac4d8f9343ea89a0980356659..e19f7af8526e2fb708a1dbb25f165cdadb69b684 100644 --- a/src/test_build_uzp_orzeczenia_pl.py +++ b/src/test_build_uzp_orzeczenia_pl.py @@ -213,7 +213,7 @@ def test_near_duplicate_index_matches_exhaustive(): added[rid] = sk -# G1 personal-data pass (#112) +# G1 personal-data pass KIO_HEADER = ("Sygn. akt: KIO 9876/23\nWYROK z dnia 20 czerwca 2023 r.\nKrajowa Izba Odwoławcza\n\n- w składzie:\n" "Przewodniczący:\nAneta Żurawka\nCzłonkowie:\n\nKatarzyna Bielawiecka\n\nAndrzej Grzmocki\nProtokolant:\n\n" diff --git a/src/test_dziennik_ustaw_attribution.py b/src/test_dziennik_ustaw_attribution.py index e328687b7f3a372177f0dd6d94ce65e23294a42e..082069ccad8ca3893b3bca85821587eaa9c3047f 100644 --- a/src/test_dziennik_ustaw_attribution.py +++ b/src/test_dziennik_ustaw_attribution.py @@ -1,4 +1,4 @@ -"""Tests for the dziennik_ustaw ELI sidecar builder (v2#107).""" +"""Tests for the dziennik_ustaw ELI sidecar builder.""" import json import os import sys diff --git a/src/test_dziennik_ustaw_contract.py b/src/test_dziennik_ustaw_contract.py index 2b611efe039521d0ebfc8d14fb5ce196badccf0d..cd31891ea2127240018089073a772e7db32368d8 100644 --- a/src/test_dziennik_ustaw_contract.py +++ b/src/test_dziennik_ustaw_contract.py @@ -1,4 +1,4 @@ -"""Contract for the dziennik_ustaw datasheet (v2#107): what the card says matches the shipped shard and the registry.""" +"""Contract for the dziennik_ustaw datasheet: what the card says matches the shipped shard and the registry.""" import json import os import re @@ -134,7 +134,7 @@ def test_card_legal_wording_is_ours_and_descriptive(): def test_card_credit_gives_the_sis_note_as_a_precaution(): assert "**Credit:** Dziennik Ustaw; Kancelaria Sejmu RP for the ELI interface." in CARD_TEXT assert "> Źródło: System Informacyjny Sejmu (Kancelaria Sejmu RP)" in CARD_TEXT - assert "whether the note applies is open" in FLAT + assert "although the terms page does not mention the ELI interface:" in FLAT assert "We do not apply" not in FLAT diff --git a/src/test_eltec_tei.py b/src/test_eltec_tei.py index ccd670dcf22df0be7903c422e03b0daed8521461..7bbd77880ef6602a88f1b0aab1325c142199f4d1 100644 --- a/src/test_eltec_tei.py +++ b/src/test_eltec_tei.py @@ -1,4 +1,4 @@ -"""Checks for src/eltec_tei.py and the TEI-to-text function in src/fetch_eltec.py (v2#109): what is read from a TEI +"""Checks for src/eltec_tei.py and the TEI-to-text function in src/fetch_eltec.py: what is read from a TEI file, which paragraphs make the text, what is refused, and the committed table of the 100 ELTeC-pol files. The tests use made-up TEI; only the last group reads the committed table.""" diff --git a/src/test_eurlex_attribution.py b/src/test_eurlex_attribution.py index 4763122e5f73d600231e80b081333e9294bc42ad..748f810791f54683e8af839c77513f9d95b6fbc4 100644 --- a/src/test_eurlex_attribution.py +++ b/src/test_eurlex_attribution.py @@ -1,4 +1,4 @@ -"""Tests for the eurlex per-record link and attribution sidecar (v2#108): identifier rules, address builders, +"""Tests for the eurlex per-record link and attribution sidecar: identifier rules, address builders, institution rules, notes, and the released sidecar against the Parquet and the evidence file.""" from __future__ import annotations diff --git a/src/test_eurlex_contract.py b/src/test_eurlex_contract.py index f039d62c23bbb908c4bbac290c11455ac3c2837b..18d0ee065fb1c91c7c47e99a3c89b7c13791118a 100644 --- a/src/test_eurlex_contract.py +++ b/src/test_eurlex_contract.py @@ -1,4 +1,4 @@ -"""Contract tests for the eurlex licence relabel, IASB drop (slayerlabs/polish-dynaword-v2#57) and row review (#108).""" +"""Contract tests for the eurlex licence relabel, IASB drop and row review.""" from __future__ import annotations import csv diff --git a/src/test_govpl_contract.py b/src/test_govpl_contract.py index 3a91353805d18d0c79582fa4ac8ba3c1de493226..2dac453c02dc42823e13b43e75f2c106a7c49d99 100644 --- a/src/test_govpl_contract.py +++ b/src/test_govpl_contract.py @@ -20,7 +20,7 @@ from sejm_api_common import UNPUBLISHED from sources import SOURCES DATA = Path(__file__).resolve().parents[1] / "data" / "govpl" -ISSUE_51_RULE = re.compile(r"(?i)\bźr[óo]d[łl]o\s*:\s*/?[^\n]{0,60}\bPAP\b") # polish-dynaword-v2#51 +ISSUE_51_RULE = re.compile(r"(?i)\bźr[óo]d[łl]o\s*:\s*/?[^\n]{0,60}\bPAP\b") RELEASED_ROWS = 74946 # 88,190 in v0.2.5 minus 188 PAP reprints, 186 other third-party texts PROSECUTOR_ROWS = 12870 # and the releases of the 45 prosecutor-office sections REVIEWED_KEEP_IN_PROSECUTOR_SECTIONS = 3 # kept by the review, then dropped with their section @@ -216,7 +216,7 @@ class GovplReleaseContractTest(unittest.TestCase): self.assertIn(SOURCES["govpl"][key], md, key) def test_footer_period_counts_match_card(self): - # Footer licence by Wayback capture of /web/gov/prawa-autorskie (v2 evidence/govpl_prawa-autorskie_2026-10-19.md): + # Footer licence by Wayback capture of /web/gov/prawa-autorskie (we keep a copy of the page as read on 2026-10-19): # first capture 2019-08-05, CC BY 3.0 PL to 2022-08-17, CC BY-NC-ND 3.0 PL 2022-08-19 to 2025-12-12. # A row dated on a capture day counts with that capture's footer; typo dates (year < 2000, after the crawl) are left out. periods = Counter() diff --git a/src/test_kultura_bez_barier_contribution.py b/src/test_kultura_bez_barier_contribution.py index 479285d76f4d459dfda32f66ddee6387e5be7f33..27d2f3d5cb7088e46f65fa72a9797fde6bdaf9de 100644 --- a/src/test_kultura_bez_barier_contribution.py +++ b/src/test_kultura_bez_barier_contribution.py @@ -34,7 +34,7 @@ def test_dataset_contract_and_samples(): assert table.column_names == FIELDS assert len(data) == stats["kept"] == len(attribution) assert len(decisions) == stats["discovered"] - # decisions.jsonl is the PDF-level acquisition log; the titles the review dropped later (v2#111) are still `selected` there + # decisions.jsonl is the PDF-level acquisition log; the titles the review dropped later are still `selected` there assert sum(bool(item["selected"]) for item in decisions) == stats["kept"] + stats["drop_review"] assert stats["kept"] == stats["acquired"] - stats["rejected"] - stats["drop_review"] assert sum(item["token_count"] for item in data) == stats["tokens"] @@ -70,7 +70,7 @@ def test_ontology_is_addressed_and_falsifiable(): def test_no_phone_left_for_the_wider_patterns(): - """v0.2.6 rights audit (v2#57): ted_pl's patterns find nothing left to mask in the text or the card.""" + """v0.2.6 rights audit: ted_pl's patterns find nothing left to mask in the text or the card.""" sys.path.insert(0, str(ROOT / "src")) from build_ted_pl import redact_pii for item in pq.read_table(DATA / f"{SOURCE}.parquet").to_pylist(): diff --git a/src/test_licence_basis.py b/src/test_licence_basis.py index 7d04b3c04c394b5961b7d6a7157c4021397cd97f..a3e904377a75c0042afeded1165de0f5074a48a2 100644 --- a/src/test_licence_basis.py +++ b/src/test_licence_basis.py @@ -1,4 +1,4 @@ -"""Tests for the shared per-record licence-basis helper (v2#111).""" +"""Tests for the shared per-record licence-basis helper.""" import unittest import licence_basis as lb diff --git a/src/test_licence_basis_biblioteka_nauki.py b/src/test_licence_basis_biblioteka_nauki.py index 9d20e5632e2a0435898b9d61825920b4beb40566..281f7ce79f145635512e6b1dbe0603bc7e2fc9a9 100644 --- a/src/test_licence_basis_biblioteka_nauki.py +++ b/src/test_licence_basis_biblioteka_nauki.py @@ -1,4 +1,4 @@ -"""Per-record licence basis and reviewed drops of biblioteka_nauki (v2#111): sidecar, evidence file and review table, checked against the shipped +"""Per-record licence basis and reviewed drops of biblioteka_nauki: sidecar, evidence file and review table, checked against the shipped parquet. The step from the v0.2.5 shard to these files (src/clean_biblioteka_nauki.py) needs that shard, which only git history holds; its pure parts are tested in src/test_biblioteka_nauki_contract.py.""" import json @@ -134,8 +134,8 @@ def test_clear_cut_drops_of_decision_1a_and_2a(): dropped = Counter(r[2] for r in review_table()[1:] if r[1] == lbn.DROP) assert {k: dropped[k] for k in dropped if k != lbn.CREATED_BEFORE} == { "printed_licence_nc_or_nd": 4, "file_is_another_work": 16, "reprint_or_prior_publication": 30, "republished_by_permission": 11, - "translation_of_earlier_publication": 17, "translation_title_marker": 5, "api_flagged_reprint_translation": 5, # decision 1A: 88 - "restriction_notice_no_cc_note": 97} # decision 2A + "translation_of_earlier_publication": 17, "translation_title_marker": 5, "api_flagged_reprint_translation": 5, # the 88 rows of the clear-cut reasons + "restriction_notice_no_cc_note": 97} # the rows with a restriction notice and no CC note assert sum(v for k, v in dropped.items() if k not in (lbn.CREATED_BEFORE, "restriction_notice_no_cc_note")) == 88 diff --git a/src/test_licence_basis_kultura_bez_barier_pl.py b/src/test_licence_basis_kultura_bez_barier_pl.py index d4d91a4ed7f7061dfdfef9c8f649756dfd31f768..bd08869f9ac91e4b5285b1ca7e02c99c4bbe370f 100644 --- a/src/test_licence_basis_kultura_bez_barier_pl.py +++ b/src/test_licence_basis_kultura_bez_barier_pl.py @@ -1,4 +1,4 @@ -"""Reviewed drops and per-record licence basis of kultura_bez_barier_pl (v2#111): the stage on fixtures, then the shipped files.""" +"""Reviewed drops and per-record licence basis of kultura_bez_barier_pl: the stage on fixtures, then the shipped files.""" from collections import Counter import hashlib import json diff --git a/src/test_licence_basis_open_icm_pl.py b/src/test_licence_basis_open_icm_pl.py index 0b8ebc0e8dbae91c138551b63ae2b458b1be3a14..c0d585c4cd2b00aeba7bf6e23f69d08315e9031f 100644 --- a/src/test_licence_basis_open_icm_pl.py +++ b/src/test_licence_basis_open_icm_pl.py @@ -1,4 +1,4 @@ -"""Reviewed drops, the year rule, three relabels and per-record licence basis of open_icm_pl (v2#111): the stage on fixtures, then the shipped files.""" +"""Reviewed drops, the year rule, three relabels and per-record licence basis of open_icm_pl: the stage on fixtures, then the shipped files.""" from collections import Counter import hashlib import json @@ -545,7 +545,7 @@ def test_card_notice_and_findings_give_the_same_numbers_as_the_data(): findings = (ROOT / "artifacts" / "source_findings.md").read_text(encoding="utf-8") findings = findings[findings.index("## open_icm_pl — row review"):] assert f"Proposed records: {stats_['kept']}" in card and f"{stats_['tokens']:,}" in card and f"{stats_['characters']:,}" in card - assert f"Dropped in the licence review (v2#111; no licence basis beyond the repository's own field, or the year rule): {stats_['drop_review']}" in card + assert f"Dropped in the licence review (no licence basis beyond the repository's own field, or the year rule): {stats_['drop_review']}" in card for key, (n, characters, tokens) in COUNTS.items(): if key.startswith("drop"): assert f"| {n} | {characters:,} | {tokens:,} |" in card, key diff --git a/src/test_measure_dziennik_ustaw.py b/src/test_measure_dziennik_ustaw.py index e8275428c4fc98daba76ac33e104977bf3c7c99c..55e5b946b5a96d6761c1f0129715bad0e6ac49cb 100644 --- a/src/test_measure_dziennik_ustaw.py +++ b/src/test_measure_dziennik_ustaw.py @@ -1,4 +1,4 @@ -"""Unit tests for measure_dziennik_ustaw.py (v2#107) on synthetic documents.""" +"""Unit tests for measure_dziennik_ustaw.py on synthetic documents.""" import json import sys from pathlib import Path diff --git a/src/test_parliamentary_contract.py b/src/test_parliamentary_contract.py index 29dae49a1c06861c617e652fd0a879d23e88c97a..c8c932e1604c49ceeccdfa227b5221063e817f38 100644 --- a/src/test_parliamentary_contract.py +++ b/src/test_parliamentary_contract.py @@ -136,7 +136,7 @@ class ClassifyLabelTest(unittest.TestCase): ("Sekretarz Komisji Finansów Publicznych Jan Kowalski", "III RP", "Sejm", "sejm_committee_secretary"), ("Prezes NIK Jan Kowalski", "III RP", "Sejm", "constitutional_organ_head"), ] - # Out by decision 2A (head of state, KPRP, agency deputies, "Wiceminister", bare "Sprawozdawca") or as + # Out by the allowlist (head of state, KPRP, agency deputies, "Wiceminister", bare "Sprawozdawca") or as # not the chamber's own ("P." in the Senate is "Pan"; the surname-only forms are 1919-39 only). DROPPED = [ ("P. Nowicki", "III RP", "Sejm"), diff --git a/src/test_plwiki_talk_contract.py b/src/test_plwiki_talk_contract.py index 8ef5965b335cbc393a1e160a48c68711e87cd1fc..e32c19e71981026c9e2830ea02d507956385813b 100644 --- a/src/test_plwiki_talk_contract.py +++ b/src/test_plwiki_talk_contract.py @@ -1,5 +1,5 @@ """Contract checks for the committed plwiki_talk and plwiki_user_talk releases, after the residue -cleanup (v2#116) and the labels by contribution (v2#110), and for src/clean_plwiki_talk.py.""" +cleanup and the labels by contribution, and for src/clean_plwiki_talk.py.""" from collections import Counter import hashlib @@ -67,11 +67,10 @@ def test_every_row_label_follows_its_contribution_basis(release): for created, label, item in zip(cols["created"], cols["license"], attribution): assert item["license_evidence"] == LICENSE_EVIDENCE[label] assert created == item["last_revision_at"][:10] - assert qa["licence_labels"]["issue"] == "slayerlabs/polish-dynaword-v2#110" def test_citations_are_redacted_and_counted(release): - """v2#110 3B: the citations went through the builders' redact_pii, and the card and qa count them.""" + """The citations went through the builders' redact_pii, and the card and qa count them.""" source, _, attribution = release for item in attribution: assert item["source_notes"] == [] @@ -80,10 +79,9 @@ def test_citations_are_redacted_and_counted(release): qa = _json(source, "qa.json")["citations"] assert (qa["rows_with_citations"], qa["citations"]) == ( sum(bool(item["citations"]) for item in attribution), sum(len(item["citations"]) for item in attribution)) - assert qa["issue"] == "slayerlabs/polish-dynaword-v2#110" card = _path(source, "md").read_text(encoding="utf-8").replace("\r\n", "\n") assert sources_text(source, attribution) in card - assert QUOTATIONS in card # v2#110 E2: quotations rest on Art. 29, not the licence + assert QUOTATIONS in card # quotations rest on Art. 29, not the licence def test_label_counts_are_pinned_and_match_stats(release): @@ -97,7 +95,7 @@ def test_label_counts_are_pinned_and_match_stats(release): def test_text_is_clean_and_matches_its_records(release): source, cols, attribution = release for text, item in zip(cols["text"], attribution): - assert drop_residue(text, categories=False) == text # retext has run (v2#116) + assert drop_residue(text, categories=False) == text # retext has run assert len(text) >= MIN_TEXT_CHARS assert item["text_sha256"] == digest(text.encode("utf-8")) assert item["transformations"].count(clean.STEP) == 1 @@ -243,7 +241,6 @@ def test_retext_cleans_the_text_and_drops_what_a_rebuild_would(tmp_path): before = {"docs": 4, "chars": sum(map(len, TEXTS.values())), "tokens": 1110} assert qa["source_text_qa_rejected"] == 13 and qa["scope"] == "x" assert qa["residue_cleanup"] == { - "issue": "slayerlabs/polish-dynaword-v2#116", "step": "clean_plwiki_talk.py retext: fetch_wikimedia.drop_residue, category lines kept", "rows_changed": 3, "before": before, "after": {"docs": 2, "chars": stats["characters"], "tokens": stats["tokens"]}, "dropped_short": [{"id": "plwiki_talk_3", "chars": 496}], @@ -308,7 +305,7 @@ def test_relabel_writes_the_labels_through_the_release(tmp_path): assert [r["license"] for r in clean.read_lines(folder / "plwiki_talk.sample.jsonl")] == labels[1:3] assert clean.load(folder / "plwiki_talk.stats.json")["license_counts"] == {"CC-BY-SA-3.0": 2, BOTH: 1, "CC-BY-SA-4.0": 1} assert clean.load(folder / "plwiki_talk.qa.json")["licence_labels"] == { - "issue": "slayerlabs/polish-dynaword-v2#110", "stub": STUB, "created_on_cutoff_day": 1, + "stub": STUB, "created_on_cutoff_day": 1, "cases": {"shipped_before_cutoff": 1, "no_text_added": 1, "changed_after_cutoff": 1, "created_after_cutoff": 1}} _assert_crlf(folder) written = _files(folder) @@ -361,7 +358,7 @@ def test_provenance_adds_the_redacted_citations_and_empty_source_notes(tmp_path) assert [(a["citations"], a["source_notes"]) for a in attribution] == [ (["Kontakt: [REDACTED:EMAIL]", CYTUJ], []), (["[REDACTED:EMAIL]"], []), ([], []), (["Źródło"], [])] assert clean.load(folder / "plwiki_talk.qa.json")["citations"] == { - "issue": "slayerlabs/polish-dynaword-v2#110", "shards": ["shard.xml.bz2"], "rows_with_citations": 3, "citations": 4, + "shards": ["shard.xml.bz2"], "rows_with_citations": 3, "citations": 4, "redacted": {"email": 3}} _assert_crlf(folder) written = _files(folder) diff --git a/src/test_samorzad_gov_pl_contract.py b/src/test_samorzad_gov_pl_contract.py index e49e583299b6eec44224f346ea5f5bd9ae6ac57e..8a66e7dd6c70a231f7f1850225c631d2077d4182 100644 --- a/src/test_samorzad_gov_pl_contract.py +++ b/src/test_samorzad_gov_pl_contract.py @@ -247,7 +247,7 @@ def test_canonical_schema_matches_dynaword(): def test_withdrawn_from_main(): - """slayerlabs/polish-dynaword-v2#49: withdrawn; re-admission is #103. The builder and + """Withdrawn from main on 2026-10-17; re-admission waits for v0.2.8 at the earliest. The builder and its drop rules stay, the shard does not, and make_docs skips a source without stats.""" from sources import SOURCES diff --git a/src/test_sejm_api_2011_2022_contract.py b/src/test_sejm_api_2011_2022_contract.py index ca752fb969fce168bb81f8e564f5045aeadbd2cb..7823807a6469f3428d80c482751c57ff6028317d 100644 --- a/src/test_sejm_api_2011_2022_contract.py +++ b/src/test_sejm_api_2011_2022_contract.py @@ -141,7 +141,7 @@ def test_manifest_artifact_checksums(): assert checksums["legal_evidence_sha256"] == sha256_file(DATA / "sejm_api_2011_2022.license-evidence.json") -# --- wording (v2#57) --------------------------------------------------------------------------- +# --- wording --------------------------------------------------------------------------- def test_registry_and_card_state_the_contributor_snapshot(): card = (DATA / "sejm_api_2011_2022.md").read_text(encoding="utf-8") @@ -162,7 +162,7 @@ def test_every_source_url_is_a_day_level_listing(): assert [url for url in urls if not DAY_LEVEL_URL.fullmatch(url)] == [] -# --- cross-source dedup (v2#57) ------------------------------------------------------------------ +# --- cross-source dedup ------------------------------------------------------------------ def test_reference_pins_match_the_files_and_the_registry(): assert set(clean.REFERENCES) == {"parliamentary", "sejm_api"} diff --git a/src/test_sejm_api_contract.py b/src/test_sejm_api_contract.py index da90bc8c215e965ad2e54f672709bbf7371a83b7..6ba717d7ef3fb2fda6757eea1a8bf2f2686fd0d4 100644 --- a/src/test_sejm_api_contract.py +++ b/src/test_sejm_api_contract.py @@ -167,7 +167,7 @@ class DynawordContractTests(unittest.TestCase): class ProvenanceWordingTests(unittest.TestCase): - """v2#57: the text is a contributor snapshot, and source_url is day-level.""" + """v0.2.6 rights audit: the text is a contributor snapshot, and source_url is day-level.""" def test_registry_and_card_state_the_contributor_snapshot(self) -> None: card = (ROOT / "data" / "sejm_api" / "sejm_api.md").read_text(encoding="utf-8") @@ -231,7 +231,7 @@ class DynawordParquetIntegrationTests(unittest.TestCase): self.assertEqual(len(manifest["evidence"]), 5) self.assertTrue((output / "src" / "fetch_sejm_api.py").is_file()) self.assertTrue((output / "src" / "test_sejm_api_contract.py").is_file()) - # The card and NOTICE.md are kept by hand (v2#107); a rerun must not overwrite them. + # The card and NOTICE.md are kept by hand; a rerun must not overwrite them. self.assertFalse((output / "data" / "sejm_api" / "sejm_api.md").exists()) self.assertFalse((output / "data" / "sejm_api" / "NOTICE.md").exists()) @@ -246,7 +246,7 @@ def header(name: str, label: str, date: str, *, term: str = "9", sitting: str = class TrailerSplitTests(unittest.TestCase): - """v2#57: the trailers are cut, and a trailer's speech becomes a row of its own (real snippets).""" + """v0.2.6 rights audit: the trailers are cut, and a trailer's speech becomes a row of its own (real snippets).""" def test_header_of_a_statement_with_its_own_row_is_cut(self) -> None: own = "Komisja Ochrony Środowiska, Zasobów Naturalnych i Leśnictwa - godz. 17. Dziękuję." diff --git a/src/test_sejm_api_speakers.py b/src/test_sejm_api_speakers.py index 248a5fd920a192471ca30073f78884bc3af8ce92..fc4348f006684a93456bf42d015912508b37488d 100644 --- a/src/test_sejm_api_speakers.py +++ b/src/test_sejm_api_speakers.py @@ -1,4 +1,4 @@ -"""Tests for the speaker allowlist of the plenary sources (slayerlabs/polish-dynaword-v2#99). Synthetic data only.""" +"""Tests for the speaker allowlist of the plenary sources. Synthetic data only.""" import hashlib import pathlib diff --git a/src/test_sejm_interpellations_attribution.py b/src/test_sejm_interpellations_attribution.py index e7b2a3fce84c73f599d1b9080a278c8873a00ef7..82a2af7928385b4e59e24b9020516d4240a69e04 100644 --- a/src/test_sejm_interpellations_attribution.py +++ b/src/test_sejm_interpellations_attribution.py @@ -1,4 +1,4 @@ -"""Tests for the sejm_interpellations attribution sidecar builder (v2#107).""" +"""Tests for the sejm_interpellations attribution sidecar builder.""" import io import json import random diff --git a/src/test_sejm_interpellations_contract.py b/src/test_sejm_interpellations_contract.py index 95269bb86e1df4ce0956da9ea5ce00433880a1c8..53393535787d9efc5b18244b4e64e03d80c88962 100644 --- a/src/test_sejm_interpellations_contract.py +++ b/src/test_sejm_interpellations_contract.py @@ -154,7 +154,7 @@ class SejmInterpellationsParquetTest(unittest.TestCase): class SejmInterpellationsRecordsTest(unittest.TestCase): - """Registry, datasheet and license-evidence.json agree (v0.2.6 rights audit, v2#57).""" + """Registry, datasheet and license-evidence.json agree (v0.2.6 rights audit).""" @classmethod def setUpClass(cls): @@ -187,7 +187,7 @@ class SejmInterpellationsRecordsTest(unittest.TestCase): self.assertIn(EVIDENCE.name, self.card) def test_card_credits_sis_and_keeps_the_label_descriptive(self): - # v2#107: credit line, clause as information only, no licence claim, route and sidecar named + # credit line, clause as information only, no licence claim, route and sidecar named self.assertIn("Źródło: System Informacyjny Sejmu (Kancelaria Sejmu RP)", self.card) self.assertIn("komercyjnej oferty", self.card) self.assertIn("information only", self.card) diff --git a/src/test_takedown.py b/src/test_takedown.py index be0b13306f397f4f510cae24662512542107a7f3..08f6e21b48b3214395a07b218e12ddc6ec606942 100644 --- a/src/test_takedown.py +++ b/src/test_takedown.py @@ -1,4 +1,4 @@ -"""Takedown gate (v2#113): a blocklisted id or text never reaches a shard or a file shipped next to one.""" +"""Takedown gate: a blocklisted id or text never reaches a shard or a file shipped next to one.""" import datetime import hashlib import json diff --git a/src/test_ted_pl_contract.py b/src/test_ted_pl_contract.py index 50d5bb9fdf1b39c208515a33dde306e73985d6de..50521e98c8c98bb606917070c708f1e992568bc3 100644 --- a/src/test_ted_pl_contract.py +++ b/src/test_ted_pl_contract.py @@ -1,4 +1,4 @@ -"""Contract tests for the ted_pl PII rules and the rebuild from the raw TED text (v0.2.6, v2#57, v2#60).""" +"""Contract tests for the ted_pl PII rules and the rebuild from the raw TED text (v0.2.6).""" from __future__ import annotations import json diff --git a/src/test_verify_paper_claims.py b/src/test_verify_paper_claims.py index 017e1843c8885f12bd5640a5e8882d1b6d3db204..6f09125156a3628cb7b31882493ec536131de178 100644 --- a/src/test_verify_paper_claims.py +++ b/src/test_verify_paper_claims.py @@ -237,6 +237,18 @@ def test_dual_licence_warns(repo, capsys): assert any("dziennik_ustaw dual licence" in line for line in lines(out, vpc.WARN)) +@pytest.mark.parametrize("line, warned", [ + ("- **Rights status:** `CC-BY-SA-3.0` - a status, not a licence\n", False), + ("", True), +]) +def test_datasheet_rights_status_line(repo, capsys, line, warned): + """A datasheet that states a rights status instead of a licence is checked like a licence line.""" + edit(repo / "data" / "wikipedia" / "wikipedia.md", "- **License:** `CC-BY-SA-3.0`\n", line) + code, out = run(repo, capsys) + assert (code, lines(out, vpc.FAIL)) == (0, []) + assert any("wikipedia datasheet licence" in w for w in lines(out, vpc.WARN)) is warned + + def test_missing_table_is_an_error(repo, capsys): edit(repo / "main.tex", "\\label{tab:additions}", "") assert vpc.main(["--tex", str(repo / "main.tex"), "--root", str(repo), "--ref", "worktree"]) == 1 @@ -297,6 +309,8 @@ def test_printed_precision_sets_the_tolerance(raw, actual, ok): ("EU reuse policy", "LicenseRef-EU-Reuse-Policy", True), ("EU reuse policy", "LicenseRef-TED-Notice-Status", False), ("TED notice status", "LicenseRef-TED-Notice-Status", True), + ("TED notice status", "`LicenseRef-TED-Notice-Status` - a status, not a licence", True), + ("EU reuse policy", "`LicenseRef-TED-Notice-Status` - a status, not a licence", False), ]) def test_licence_comparison(paper, registry, ok): assert vpc.compatible(vpc.norm_license(paper), vpc.norm_license(registry)) is ok @@ -305,4 +319,6 @@ def test_licence_comparison(paper, registry, ok): def test_parse_pin(): assert vpc.parse_pin(r"\newcommand{\snapshot}{\code{7ae4ac7}}") == "7ae4ac7" assert vpc.parse_pin(r"\newcommand{\snapshot}{\texttt{7ae4ac7}}") == "7ae4ac7" + assert vpc.parse_pin(r"\newcommand{\snapshot}{\freeze{\code{81fafcb}}}") == "81fafcb" + assert vpc.parse_pin(r"\newcommand{\snapshot}{\freeze[pin]{\texttt{81fafcb}}}") == "81fafcb" assert vpc.parse_pin("no pin here") is None diff --git a/src/test_wiki_history.py b/src/test_wiki_history.py index 6735289f343c8ac3b567dda03291d8fcf16ea142..b96d238396f3072010567aa1a3dea05e4357946e 100644 --- a/src/test_wiki_history.py +++ b/src/test_wiki_history.py @@ -190,7 +190,7 @@ def test_talk_text(): wiki = "== Wątek ==\nPiszę na [[Wikipedia:Kawiarenka|kawiarence]], mail a@b.pl\n\n\n\n'''x''' �" assert wh._talk_text(wiki) == "Wątek\nPiszę na kawiarence, mail [REDACTED:EMAIL]\n\nx [UNREADABLE_GLYPH]" assert wh._converter("plwiki_user_talk") is wh._talk_text - # then drop_residue, keeping the category lines (v2#116) + # then drop_residue, keeping the category lines assert wh._talk_text("Zobacz [[Plik:X.jpg|thumb|200px|right Podpis]] tu.\n\n[[Kategoria:Koty]]") == "Zobacz Podpis tu.\n\nKategoria:Koty" @@ -268,7 +268,7 @@ def test_compare(tmp_path): wh.fetch("wikinews", [(0, r) for r in sorted(recs)], tmp_path, session=API(), log=lambda m: None) with pytest.raises(ValueError, match="was not fetched"): list(wh.compare("wikinews", side, hist, fetched_dir, parquet, convert)) - texts = [t + "\nKategoria:X" * (i == 10) for i, (*_, t) in pages.items()] # a release from before v2#116 + texts = [t + "\nKategoria:X" * (i == 10) for i, (*_, t) in pages.items()] # a release from before the markup cleanup pq.write_table(pa.table({"id": [f"wikinews_{i}" for i in pages], "text": texts}), parquet) with pytest.raises(ValueError, match="1 shipped texts are not drop_residue's output .e.g. wikinews_10.; run fetch_wikimedia.py retext"): list(wh.compare("wikinews", side, hist, fetched_dir, parquet, convert)) diff --git a/src/test_wikibooks_contract.py b/src/test_wikibooks_contract.py index f4541cf6423febbe0bbcce42a5ac213bbc69592f..0830af8aa07fa09bfe63f1566955ae00e2d2cfb3 100644 --- a/src/test_wikibooks_contract.py +++ b/src/test_wikibooks_contract.py @@ -16,18 +16,18 @@ WITHHELD = (54, 817953, 298512) def test_wikibooks_contract(tmp_path): stats, ev = check_released("wikibooks", tmp_path, dropped=WITHHELD) assert (stats["kept"], stats["tokens"]) == (9041, 15220800) - # v2#116: drop_residue changed 2,141 rows; 17 pages fell under 200 characters + # drop_residue changed 2,141 rows; 17 pages fell under 200 characters build = json.loads((ROOT / "data" / "wikibooks" / "wikibooks.build.json").read_text(encoding="utf-8")) clean = build["residue_cleanup"] assert clean["rows_changed"] == 2141 and clean["before"] == {"docs": 9058, "chars": 38074636, "tokens": 15272783} assert len(clean["dropped_short"]) == 17 - # labelled by contribution (v2#110): 3.0, 4.0 or both; 3 pages carry {{Cc-by-3.0-tekst}}, their text's CC BY 3.0 added (2A) + # labelled by contribution: 3.0, 4.0 or both; 3 pages carry {{Cc-by-3.0-tekst}}, their text's CC BY 3.0 added assert stats["licenses"] == {"CC-BY-SA-3.0": 6788, "CC-BY-SA-3.0 AND CC-BY-3.0": 3, "CC-BY-SA-3.0 AND CC-BY-SA-4.0": 993, "CC-BY-SA-4.0": 1257} assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0": 11385616, "CC-BY-SA-3.0 AND CC-BY-3.0": 6546, "CC-BY-SA-3.0 AND CC-BY-SA-4.0": 2467665, "CC-BY-SA-4.0": 1360973} assert ev["license"] == "CC-BY-SA-3.0, CC-BY-SA-4.0 or both per record, by contribution date, plus the licence of imported text" - assert provenance_counts("wikibooks") == (784, 110) # citations; licence templates (3B) + assert provenance_counts("wikibooks") == (784, 110) # citations; licence templates labels = build["licence_labels"] assert labels["cases"] == {"shipped_before_cutoff": 4409, "same_revision_text": 360, "identical_text": 1387, "no_text_added": 635, "created_after_cutoff": 1257, "changed_after_cutoff": 970, "pre_text_hidden": 21, "page_not_in_dump": 2} diff --git a/src/test_wikimedia_contract.py b/src/test_wikimedia_contract.py index 5c156f019d99c5646649cc19108fc138ceefb2d5..7ade359046164d33b89b9bf2af17e8f5f51a85d9 100644 --- a/src/test_wikimedia_contract.py +++ b/src/test_wikimedia_contract.py @@ -162,7 +162,7 @@ def test_drop_residue(text, clean): def test_drop_residue_keeps_category_lines_when_asked(): - # the talk pages discuss categories (v2#116): the rest of the residue goes all the same + # the talk pages discuss categories: the rest of the residue goes all the same text = "Tekst.\nKategoria:Koty\nthumb\n200px|Rynek" assert fm.drop_residue(text, categories=False) == "Tekst.\nKategoria:Koty\nRynek" assert fm.drop_residue(text) == "Tekst.\nRynek" @@ -687,7 +687,7 @@ def _files(data): @needs_zstd def test_retext_cleans_the_committed_text_and_drops_what_falls_short(tmp_path): - """A release built before v2#116: 5 ends with a category line, 10 is short without its own, 17 is clean.""" + """A release built before the markup cleanup: 5 ends with a category line, 10 is short without its own, 17 is clean.""" import tiktoken key, site = "wikivoyage", fm.SITES["wikivoyage"] rows = _prepare(tmp_path, key, _fixture(key)) @@ -711,7 +711,7 @@ def test_retext_cleans_the_committed_text_and_drops_what_falls_short(tmp_path): site["after"]: counts[site["after"]] - 1} # 10 was last edited at the cutoff assert build["attribution_rows"] == 2 and build["attribution_sha256"] == fm.digest(sidecar.read_bytes()) assert build["residue_cleanup"] == { - "issue": "slayerlabs/polish-dynaword-v2#116", "step": "fetch_wikimedia.drop_residue", "rows_changed": 2, + "step": "fetch_wikimedia.drop_residue", "rows_changed": 2, "before": {"docs": 3, "chars": sum(map(len, texts)), "tokens": 600}, "after": {"docs": 2, "chars": stats["chars"], "tokens": tok}, "dropped_short": [{"id": f"{key}_10", "title": "Ala", "chars": len("Krótki tekst.")}], "dropped_duplicate": []} @@ -861,7 +861,7 @@ def test_attribution_fails_when_the_parquet_has_a_row_the_dump_does_not(tmp_path # --- the contract on a released source ----------------------------------------------------- def check_links(key, m): - """A sidecar row's wiki_history.record_links (v2#110): the shipped revision's permalink, the page + """A sidecar row's wiki_history.record_links: the shipped revision's permalink, the page history, the licence deeds and the conversion note. Returns the permalink's revision id.""" hit = re.fullmatch(rf"https://{re.escape(wh.WIKIS[key]['host'])}/w/index\.php\?oldid=(\d+)", m["permalink"] or "") revid = hit and int(hit[1]) @@ -872,23 +872,23 @@ def check_links(key, m): def provenance_counts(key): - """(rows with citations, rows with source notes) in a released source's sidecar (v2#110 3B).""" + """(rows with citations, rows with source notes) in a released source's sidecar.""" with (ROOT / "data" / key / f"{key}.attribution.jsonl").open(encoding="utf-8") as fh: recs = [json.loads(line) for line in fh] return sum(bool(r["citations"]) for r in recs), sum(bool(r["source_notes"]) for r in recs) def check_contribution_labels(key, cols, meta, build): - """The labels by contribution (v2#110) on a released source relabelled from wiki_history.compare: + """The labels by contribution on a released source relabelled from wiki_history.compare: each row's label follows its recorded basis, and the build record counts the bases.""" cfg, labels = wh.WIKIS[key], build["licence_labels"] licence = {"before": cfg["before"], "after": cfg["after"], "mixed": f"{cfg['before']} AND {cfg['after']}"} for row_id, label in zip(cols["id"], cols["license"]): m = meta[row_id] basis = m["license_basis"] - # v2#110 2A: imported text adds its licence after the page's own (provenance's source_notes) + # imported text adds its licence after the page's own (provenance's source_notes) assert label == m["license"] == fm.with_imports(key, licence[wh.CASES[basis]], m.get("source_notes")) - if key in fm.SOURCE_NOTE_TEMPLATES: # v2#110 3B + if key in fm.SOURCE_NOTE_TEMPLATES: assert type(m["citations"]) is list and type(m["source_notes"]) is list assert (basis == "shipped_before_cutoff") == (m["last_revision_at"] < cfg["cutoff"]) none = basis in ("created_after_cutoff", "created_in_switch_window", "page_not_in_dump") @@ -902,7 +902,7 @@ def check_contribution_labels(key, cols, meta, build): assert "revid" in m or basis != "page_not_in_dump" or m["permalink"] is None flags = m.get("license_flags", []) assert flags or "license_flags" not in m # written only when a flag applies - if "window_end" in cfg: # wikinews: the switch window and the CC BY 2.5 start (v2#110, E3) + if "window_end" in cfg: # wikinews: the switch window and the CC BY 2.5 start in_window = cfg["cutoff"] <= m["last_revision_at"] <= cfg["window_end"] assert ("shipped_in_switch_window" in flags) == in_window and (not in_window or "edited_in_switch_window" in flags) assert basis != "created_in_switch_window" or "edited_in_switch_window" in flags @@ -932,7 +932,7 @@ def check_released(key, tmp_path, dropped=(0, 0, 0)): assert n == stats["kept"] == build["attribution_rows"] == len(meta) == len(set(cols["id"])) assert set(cols["source"]) == {key} and len(set(cols["added"])) == 1 # the rebuild changes labels, not the text set, apart from the pages the rights review withheld - # and, once retext has run (v2#116), what drop_residue removed + # and, once retext has run, what drop_residue removed v025 = tuple(v - d for v, d in zip(site["v025"], dropped)) if clean := build.get("residue_cleanup"): b, a = clean["before"], clean["after"] diff --git a/src/test_wikinews_contract.py b/src/test_wikinews_contract.py index 7711da3aa373af9a8cf0af00505f5f49b7483fa9..8161b2cbad80a29ac4b460a580aee2667932652b 100644 --- a/src/test_wikinews_contract.py +++ b/src/test_wikinews_contract.py @@ -18,7 +18,7 @@ def test_wikinews_contract(tmp_path): stats, ev = check_released("wikinews", tmp_path, dropped=WITHHELD) assert set(rights.DROPPED_PAGES["wikinews"]) == {55256} assert (stats["kept"], stats["tokens"]) == (23572, 10968504) - # v2#116: drop_residue changed 24,206 rows; 812 pages fell under 200 characters and one repeated another's text + # drop_residue changed 24,206 rows; 812 pages fell under 200 characters and one repeated another's text data = ROOT / "data" / "wikinews" build = json.loads((data / "wikinews.build.json").read_text(encoding="utf-8")) clean = build["residue_cleanup"] @@ -29,8 +29,8 @@ def test_wikinews_contract(tmp_path): lone = re.compile(rf"[ \t]*{fm.OPTION_LAST}[ \t]*") # the shape of an option at the end of a line texts = pq.read_table(data / "wikinews.parquet", columns=["text"]).column("text").to_pylist() assert not [t for t in texts if any(map(lone.fullmatch, t.split("\n")))] - # labelled by contribution (v2#110): 2.5, 4.0 or both, with the switch window as both, then the licences of - # imported text added in page order (2A); "CC-BY-2.5 AND CC-BY-4.0" also holds 2.5 pages importing CC BY 4.0 text + # labelled by contribution: 2.5, 4.0 or both, with the switch window as both, then the licences of + # imported text added in page order; "CC-BY-2.5 AND CC-BY-4.0" also holds 2.5 pages importing CC BY 4.0 text assert stats["licenses"] == { "CC-BY-2.5": 14663, "CC-BY-2.5 AND CC-BY-4.0": 383, "CC-BY-4.0": 3593, "CC-BY-2.5 AND CC-BY-2.0": 1, "CC-BY-2.5 AND CC-BY-2.0-PL": 3709, "CC-BY-2.5 AND CC-BY-2.0-PL AND CC-BY-2.5-PL": 3, @@ -44,7 +44,7 @@ def test_wikinews_contract(tmp_path): "CC-BY-2.5 AND CC-BY-3.0-PL": 10209, "CC-BY-2.5 AND CC-BY-4.0 AND CC-BY-2.0-PL": 4718, "CC-BY-2.5 AND CC-BY-4.0 AND CC-BY-2.5-PL": 771, "CC-BY-2.5 AND CC-BY-SA-4.0": 510, "CC-BY-2.5 AND CC0-1.0": 714, "CC-BY-4.0 AND CC-BY-2.5": 2327, "CC-BY-4.0 AND CC-BY-2.5-PL": 38243} assert ev["license"] == "CC-BY-2.5, CC-BY-4.0 or both per record, by contribution date, plus the licence of imported text" - assert provenance_counts("wikinews") == (13968, 5777) # citations; templates marking imported text (3B) + assert provenance_counts("wikinews") == (13968, 5777) # citations; templates marking imported text labels = build["licence_labels"] assert labels["cases"] == {"shipped_before_cutoff": 17170, "same_revision_text": 602, "identical_text": 1972, "no_text_added": 78, "created_after_cutoff": 3637, "created_in_switch_window": 15, "changed_after_cutoff": 98} diff --git a/src/test_wikipedia_contract.py b/src/test_wikipedia_contract.py index fc730ccd4d58e09e4eafac20001452ab387f04ad..fc43b36009ea9c5d3fb6d998d8a813e725c5bae5 100644 --- a/src/test_wikipedia_contract.py +++ b/src/test_wikipedia_contract.py @@ -304,7 +304,7 @@ def test_citations_reads_each_rows_revision_from_the_dump(tmp_path): assert [meta.row_group(i).num_rows for i in range(meta.num_row_groups)] == [2, 1] # the release's row groups shards = status["jobs"]["metacurrentdump"]["files"] assert fw.load(data / "wikipedia.build.json") == {"attribution_rows": 3, "citations": { - "issue": "slayerlabs/polish-dynaword-v2#110", "file": "citations/wikipedia.citations.parquet", + "file": "citations/wikipedia.citations.parquet", "dumpstatus_url": fw.DUMPSTATUS_URL, "shards": [{"name": S1, **shards[S1]}, {"name": S2, **shards[S2]}], "rows": 3, "rows_with_citations": 2, "citations": 4, "sha256": fm.digest(path.read_bytes())}} text = fw.citations_text(fw.load(data / "wikipedia.build.json")) @@ -351,7 +351,7 @@ def _read(name): return json.loads((DATA / f"wikipedia.{name}.json").read_text(encoding="utf-8")) -# the release's labels by contribution (v2#110), from the stub dump plwiki-20261001-stub-meta-history.xml.gz +# the release's labels by contribution, from the stub dump plwiki-20261001-stub-meta-history.xml.gz LABELS = {"CC-BY-SA-3.0": 719119, "CC-BY-SA-3.0 AND CC-BY-SA-4.0": 629454, "CC-BY-SA-4.0": 120074} CASES = {"shipped_before_cutoff": 190836, "same_revision_text": 5028, "identical_text": 492757, "no_text_added": 30498, "created_after_cutoff": 120074, "changed_after_cutoff": 629338, "page_not_in_dump": 85, "pre_text_hidden": 31} @@ -437,7 +437,7 @@ def test_every_row_is_labelled_by_contribution(): def test_citations_table_matches_the_release(): - """citations/wikipedia.citations.parquet (v2#110, option A) has every released row, in the same order and row + """citations/wikipedia.citations.parquet has every released row, in the same order and row groups, and is the file and counts build.json and the card give.""" build = _read("build") c = build["citations"] @@ -460,7 +460,7 @@ def test_citations_table_matches_the_release(): assert re.fullmatch(r"[0-9a-f]{40}", shard["sha1"]) and shard["size"] > 0 card = (DATA / "wikipedia.md").read_text(encoding="utf-8") assert fw.citations_text(build) in card - assert fm.QUOTATIONS in card # v2#110 E2: quotations rest on Art. 29, not the licence + assert fm.QUOTATIONS in card # quotations rest on Art. 29, not the licence def test_copyright_sample_matches_the_release(): @@ -478,7 +478,7 @@ def test_copyright_sample_matches_the_release(): copyright_drops = {f"wikipedia_{p['pageid']}" for p in prepare["copied_pages"] + prepare["ek_copyright"]} dropped = dict(sample["population"]["rows_dropped_since"]) assert set(dropped) <= copyright_drops and not set(dropped) & set(cols["id"]) - # the strata are the labels by last revision the release carried before v2#110 + # the strata are the labels by last revision the release carried before the labels by contribution population = [(i, fw.license_for_revision(meta[i]["last_revision_at"])) for i in cols["id"]] + list(dropped.items()) random.seed(sample["seed"]) expected = [] diff --git a/src/test_wikivoyage_contract.py b/src/test_wikivoyage_contract.py index dd27a62c56508781ac2849ae18b49ca6d6ebf11c..08d70269dbba149bd9f79ffbcffcc55902915be7 100644 --- a/src/test_wikivoyage_contract.py +++ b/src/test_wikivoyage_contract.py @@ -15,7 +15,7 @@ WITHHELD = (6330, 7675766, 2928752) def test_wikivoyage_contract(tmp_path): stats, ev = check_released("wikivoyage", tmp_path, dropped=WITHHELD) assert (stats["kept"], stats["tokens"]) == (7312, 14084102) - # v2#116: drop_residue changed 7,163 rows; 3 pages fell under 200 characters + # drop_residue changed 7,163 rows; 3 pages fell under 200 characters build = json.loads((ROOT / "data" / "wikivoyage" / "wikivoyage.build.json").read_text(encoding="utf-8")) clean = build["residue_cleanup"] assert clean["rows_changed"] == 7163 and clean["before"] == {"docs": 7315, "chars": 37508534, "tokens": 14199448} @@ -25,10 +25,10 @@ def test_wikivoyage_contract(tmp_path): for i in (2055, 2564, 9129, 10490): lines = texts[f"wikivoyage_{i}"].split("\n") assert "{" not in lines and any(l.startswith("{| class=") for l in lines), i - # labelled by contribution (v2#110): 3.0, 4.0 or both + # labelled by contribution: 3.0, 4.0 or both assert stats["licenses"] == {"CC-BY-SA-3.0": 5399, "CC-BY-SA-3.0 AND CC-BY-SA-4.0": 1179, "CC-BY-SA-4.0": 734} assert ev["release_scope"]["tokens"] == {"CC-BY-SA-3.0": 4228272, "CC-BY-SA-3.0 AND CC-BY-SA-4.0": 8897895, "CC-BY-SA-4.0": 957935} - assert provenance_counts("wikivoyage") == (54, 0) # citations; no source notes, the imports are withheld (3B) + assert provenance_counts("wikivoyage") == (54, 0) # citations; no source notes, the imports are withheld labels = build["licence_labels"] assert labels["cases"] == {"shipped_before_cutoff": 4032, "same_revision_text": 17, "identical_text": 1284, "no_text_added": 66, "created_after_cutoff": 734, "changed_after_cutoff": 1179} diff --git a/src/test_wiktionary_examples_contract.py b/src/test_wiktionary_examples_contract.py index a71075c9743bdb314c6a5d1acd85cbc2bd163773..b95609a86dc6a13509ee72cb28fef1150a64a842 100644 --- a/src/test_wiktionary_examples_contract.py +++ b/src/test_wiktionary_examples_contract.py @@ -68,7 +68,7 @@ def test_quotation_sample_matches_the_release(): def test_labels_by_contribution_date(): - """v2#110: each example carries the licence it was contributed under, and each row its examples' licence, + """Each example carries the licence it was contributed under, and each row its examples' licence, or both when they differ; the sidecar, stats, evidence and card agree.""" stats, evidence = (json.loads((DATA / f"wiktionary_examples.{n}.json").read_text(encoding="utf-8")) for n in ("stats", "license-evidence")) diff --git a/src/test_wolne_lektury_attribution.py b/src/test_wolne_lektury_attribution.py index 7738640215003a3358009bf9703b790a0da134b1..48e889f9ff47c9dc343789c19fa73bfa78da1352 100644 --- a/src/test_wolne_lektury_attribution.py +++ b/src/test_wolne_lektury_attribution.py @@ -1,5 +1,5 @@ -"""Checks for the wolne_lektury author metadata and attribution sidecar (src/build_wolne_lektury_attribution.py, -v2#109). The tests run on made-up headers; the checks on the released files are in test_attribution_release.py.""" +"""Checks for the wolne_lektury author metadata and attribution sidecar (src/build_wolne_lektury_attribution.py). +The tests run on made-up headers; the checks on the released files are in test_attribution_release.py.""" import csv import hashlib diff --git a/src/test_wolne_lektury_contract.py b/src/test_wolne_lektury_contract.py index 9614401c00c702f07fc5072f4646d55883db2c7c..015b476ff617eb0597d7195ee3b98c73d980f62b 100644 --- a/src/test_wolne_lektury_contract.py +++ b/src/test_wolne_lektury_contract.py @@ -1,5 +1,5 @@ -"""Contract checks for wolne_lektury after the eltec_pol dedup (src/clean_wolne_lektury.py, v2#72) -and the per-row licence (src/wolne_lektury_licences.py, v2#57).""" +"""Contract checks for wolne_lektury after the eltec_pol dedup (src/clean_wolne_lektury.py) +and the per-row licence (src/wolne_lektury_licences.py).""" import csv import json @@ -62,7 +62,7 @@ def test_release_has_no_eltec_duplicates_and_matches_stats(): assert pc.sum(table.column("token_count")).as_py() == stats["tokens"] assert pc.sum(pc.utf8_length(table.column("text"))).as_py() == stats["chars"] # eltec_pol is kept whole. clean_wolne_lektury.py compared against the v0.2.5 ELTeC text (INPUT_TEXT_DIGEST and - # ELTEC_SHA256 name it); v2#109 changed that file (author filled, chapter titles and two parts restored), so + # ELTEC_SHA256 name it); the attribution builders changed that file (author filled, chapter titles and two parts restored), so # the released text is the TEXT_DIGEST one and test_partial_overlaps_hold_on_the_released_eltec_text checks # that the comparison still holds on it. assert text_digest(pq.read_table(ELTEC, columns=["id", "text"])) == ELTEC_TEXT_DIGEST @@ -76,7 +76,7 @@ def _texts(path): def test_partial_overlaps_hold_on_the_released_eltec_text(): # The 63 dropped WL rows are not in the repository, so only the kept partial ones can be scored again. The # restored paragraphs add shingles to an ELTeC novel and break the few that crossed a place where a heading - # went in; measured when v2#109 restored them, no score of the 66 pairs fell and the largest rise was 0.0121 + # went in; measured when they were restored, no score of the 66 pairs fell and the largest rise was 0.0121 # (0.0016 for these three). A score must stay inside that band and stay a partial one. with (DATA / PAIRS).open(encoding="utf-8", newline="") as handle: pairs = {p["wl_id"]: p for p in csv.DictReader(handle, delimiter="\t") if p["action"] == "keep_partial"} @@ -108,7 +108,7 @@ def test_every_row_carries_its_own_wolne_lektury_licence(): assert {r["match"] for r in records} == {"exact", "fuzzy", "manual"} assert stats["license"] == SOURCES["wolne_lektury"]["license"] assert SOURCES["wolne_lektury"]["license_spdx"] == "MIXED" - # #57: a Proust tome is public domain in its own WL metadata; its parent is CC BY-SA 3.0 PL. + # A Proust tome is public domain in its own WL metadata; its parent is CC BY-SA 3.0 PL. tome = by_id["wolne_lektury_2371693"] assert tome["license"] == PUBLIC_DOMAIN and "Boy-Żeleński" in tome["wl_rights"] diff --git a/src/test_wolne_lektury_licences.py b/src/test_wolne_lektury_licences.py index 1c805d28a13b6362117da869a52097e5dcdfcb68..470bfd141b9a99b6496c29af1e902346822b154d 100644 --- a/src/test_wolne_lektury_licences.py +++ b/src/test_wolne_lektury_licences.py @@ -1,4 +1,4 @@ -"""Unit checks for the per-row Wolne Lektury licence match (src/wolne_lektury_licences.py, v2#57).""" +"""Unit checks for the per-row Wolne Lektury licence match (src/wolne_lektury_licences.py).""" import json import sys diff --git a/src/test_wolne_lektury_notes.py b/src/test_wolne_lektury_notes.py index 9c191424b48fc8a815d4a121a287c8d24fdd8a43..fa8348a77beb8e2add91c1326fef9ed60f2f8a0f 100644 --- a/src/test_wolne_lektury_notes.py +++ b/src/test_wolne_lektury_notes.py @@ -1,4 +1,4 @@ -"""Checks for the restored author's and translator's notes of wolne_lektury (src/wolne_lektury_notes.py, v2#109). +"""Checks for the restored author's and translator's notes of wolne_lektury (src/wolne_lektury_notes.py). The first half runs on made-up book XML and tables; the second half reads the committed files.""" import hashlib diff --git a/src/verify_paper_claims.py b/src/verify_paper_claims.py index 758ae434cd8612d11d06ed7225330c983bb669c2..ee0dc218f882b89480a42fa1349a11e6d76fec92 100644 --- a/src/verify_paper_claims.py +++ b/src/verify_paper_claims.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Verify the paper's numeric claims against repository ground truth. -Written for polish-dynaword-v2/main.tex. Every repository file is read at one git +Written for the paper (main.tex), in the paper repository. Every repository file is read at one git ref, by default the revision the paper pins in its \\snapshot macro, so a paper about a tagged release is checked against that release and not against later commits. @@ -22,8 +22,8 @@ The printed precision sets each tolerance: 9.677 must lie within 0.0005 of the repository value, and 4,366,651 must match exactly. Usage: - python3 src/verify_paper_claims.py --tex ../polish-dynaword-v2/main.tex # ref = \\snapshot - python3 src/verify_paper_claims.py --tex ../polish-dynaword-v2/main.tex --ref worktree # files on disk + python3 src/verify_paper_claims.py --tex /main.tex # ref = \\snapshot + python3 src/verify_paper_claims.py --tex /main.tex --ref worktree # files on disk """ from __future__ import annotations @@ -220,8 +220,9 @@ def parse_sources(tex: str) -> tuple[dict[str, dict], dict[str, str]]: def parse_pin(tex: str) -> str | None: - """The revision in `\\newcommand{\\snapshot}{\\code{}}`.""" - pin = re.search(r"\\newcommand\{\\snapshot\}\{\\(?:code|texttt)\{([0-9a-f]{7,40})\}\}", tex) + """The revision in `\\newcommand{\\snapshot}{\\code{}}`, also inside `\\freeze[key]{...}`.""" + pin = re.search(r"\\newcommand\{\\snapshot\}\{(?:\\freeze(?:\[[^\]]*\])?\{)?\\(?:code|texttt)\{([0-9a-f]{7,40})\}", + tex) return pin.group(1) if pin else None @@ -325,8 +326,8 @@ def load_stats(root: Path, ref: str) -> dict[str, dict]: def load_datasheet_license(root: Path, ref: str, name: str) -> str | None: - """The datasheet's declared **License:** line.""" - match = re.search(r"\*\*License:\*\*\s*(.+)", read_at(root, ref, f"data/{name}/{name}.md") or "") + """The datasheet's declared **License:** line, or **Rights status:** where no licence applies.""" + match = re.search(r"\*\*(?:License|Rights status):\*\*\s*(.+)", read_at(root, ref, f"data/{name}/{name}.md") or "") return match.group(1).strip() if match else None @@ -472,7 +473,9 @@ def norm_license(text: str) -> tuple[str, str | None]: if match: return ("CC-BY-SA" if match.group(1) else "CC-BY", match.group(2)) # A LicenseRef spells a licence's name: LicenseRef-EU-Reuse-Policy is "EU reuse policy". - return (re.sub(r"^LICENSEREF-", "", t.strip()).replace("-", " "), None) + # Text after the LicenseRef (a datasheet's gloss) is not part of the name. + ref = re.match(r"LICENSEREF-([\w.-]+)", t.strip()) + return ((ref.group(1) if ref else t.strip()).replace("-", " "), None) def compatible(a: tuple[str, str | None], b: tuple[str, str | None]) -> bool: @@ -531,7 +534,7 @@ def check_licenses(report: Report, tex: str, root: Path, ref: str) -> None: sheet = load_datasheet_license(root, ref, name) if sheet is None: - report.add(WARN, f"{name} datasheet licence", "no **License:** line in the datasheet") + report.add(WARN, f"{name} datasheet licence", "no **License:** or **Rights status:** line in the datasheet") elif not (compatible(norm_license(sheet), declared) or compatible(norm_license(sheet), spdx)): report.add(FAIL, f"{name} datasheet licence", f"datasheet {sheet!r} != registry {cfg.get('license')!r}") @@ -547,7 +550,7 @@ def check_licenses(report: Report, tex: str, root: Path, ref: str) -> None: def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) - parser.add_argument("--tex", required=True, help="paper source, e.g. ../polish-dynaword-v2/main.tex") + parser.add_argument("--tex", required=True, help="paper source, e.g. /main.tex") parser.add_argument("--root", default=str(ROOT), help="repository root") parser.add_argument("--ref", default=None, help="git ref every repository file is read at, or 'worktree' for the " diff --git a/src/wiki_history.py b/src/wiki_history.py index 52b6d6a9a09d499883b959b217e03f4637ddbb09..e3343543fb61e6874b3c444d4ecb7ff9bf6d9de2 100644 --- a/src/wiki_history.py +++ b/src/wiki_history.py @@ -1,6 +1,6 @@ -"""Revision history of the shipped Wikimedia pages, for labelling text by contribution (v2#110). +"""Revision history of the shipped Wikimedia pages, for labelling text by contribution. -The legal answer to E1 (v2#110): each contribution keeps the licence it was made under, so a page +Each contribution keeps the licence it was made under, so a page last edited after the licence switch is not simply "4.0". Per page we need the last revision before the switch and whether the shipped text still equals that revision's text. @@ -37,7 +37,7 @@ WMF_CUTOFF = "2023-06-07T00:00:00Z" # rights.BY_SA_4_CUTOFF, in the dumps' time WMF = {"cutoff": WMF_CUTOFF, "before": "CC-BY-SA-3.0", "after": "CC-BY-SA-4.0"} WIKIS = { # source: dump, API host, cutoff and the licences either side; wikinews also the switch - # window (v2#110, E3) and the start of CC BY 2.5 (pages created earlier are flagged) + # window and the start of CC BY 2.5 (pages created earlier are flagged) "wikipedia": {"dump": "plwiki", "host": "pl.wikipedia.org", **WMF}, "plwiki_talk": {"dump": "plwiki", "host": "pl.wikipedia.org", **WMF}, "plwiki_user_talk": {"dump": "plwiki", "host": "pl.wikipedia.org", **WMF}, @@ -49,7 +49,7 @@ WIKIS = { "by_2_5_from": "2005-09-25T00:00:00Z"}, } # compare: case -> which licence the shipped text carries. "mixed" is both licences, each -# contribution under the one it was made under (v2#110): the conservative label whenever the +# contribution under the one it was made under: the conservative label whenever the # shipped text cannot be shown to equal the pre-cutoff text. CASES = { "shipped_before_cutoff": "before", @@ -73,7 +73,7 @@ CONVERTERS = {"wikipedia": ("fetch_wikipedia", "strip_article"), **{s: (None, "_talk_text") for s in ("plwiki_talk", "plwiki_user_talk")}} # per converter ending in drop_residue: its `categories` and the step that cleans a release built before it RETEXT = {"strip": (True, "fetch_wikimedia.py retext"), "_talk_text": (False, "clean_plwiki_talk.py retext")} -# per sidecar record (v2#110, E1(b)/E3(b)): the deed of each licence in `license`, and how the shipped text was made +# per sidecar record: the deed of each licence in `license`, and how the shipped text was made LICENSE_URLS = {"CC-BY-SA-3.0": "https://creativecommons.org/licenses/by-sa/3.0/", "CC-BY-SA-4.0": "https://creativecommons.org/licenses/by-sa/4.0/", "CC-BY-2.5": "https://creativecommons.org/licenses/by/2.5/", @@ -85,7 +85,7 @@ LICENSE_URLS = {"CC-BY-SA-3.0": "https://creativecommons.org/licenses/by-sa/3.0/ "CC-BY-3.0": "https://creativecommons.org/licenses/by/3.0/", "CC-BY-3.0-PL": "https://creativecommons.org/licenses/by/3.0/pl/", "CC0-1.0": "https://creativecommons.org/publicdomain/zero/1.0/"} -# One short line per record (v2#110 Q1-A); the cards give the full account +# One short line per record; the cards give the full account _PLAIN = "plain text from wikitext: markup and templates removed" CONVERSION = { "wikipedia": _PLAIN + ", footnotes, files and categories dropped", @@ -130,7 +130,7 @@ def download(dump: str, out: Path, session=None) -> dict: def record_links(source: str, pageid, revid: int | None, license: str) -> dict: - """A sidecar record's links (v2#110, E1(b)/E3(b)): the shipped revision's permalink (None when + """A sidecar record's links: the shipped revision's permalink (None when it is not known), the page history, which lists the authors ("Autorzy" on Wikinews) and follows renames, the deed of each licence in `license`, and the source's conversion note.""" host = WIKIS[source]["host"] @@ -403,7 +403,7 @@ def _talk_text(wikitext: str) -> str: """build_plwiki_talk_pl.build's text for one page, minus its corpus-wide boilerplate-line removal (a deletion, which no_text_added absorbs). build_plwiki_usertalk_pl has the same helpers (CRLF aside) and the same steps. Both end with drop_residue keeping the category - lines (v2#116).""" + lines.""" sys.path.insert(0, str(Path(__file__).resolve().parent)) from build_plwiki_talk_pl import normalize, redact_pii, strip_wikitext from fetch_wikimedia import drop_residue @@ -432,7 +432,7 @@ def compare(source: str, sidecar: Path, history: Path, fetched: Path, parquet: P need = [r["id"] for r in side if r["last_revision_at"] >= cfg["cutoff"]] shipped = dict(zip(*pq.read_table(parquet, columns=["id", "text"], filters=[("id", "in", need)] if need else None) .to_pydict().values())) if need else {} - # v2#116: strip and _talk_text now end with drop_residue, which keeps the talk pages' category lines + # strip and _talk_text now end with drop_residue, which keeps the talk pages' category lines if (step := RETEXT.get(CONVERTERS[source][1])) is not None: sys.path.insert(0, str(Path(__file__).resolve().parent)) from fetch_wikimedia import drop_residue diff --git a/src/wolne_lektury_licences.py b/src/wolne_lektury_licences.py index ab7bcbc5cf41c81fe5c37214d2949cda6f919c8f..79ae18fd6f16079b96dc37bafea499ea20ba2745 100644 --- a/src/wolne_lektury_licences.py +++ b/src/wolne_lektury_licences.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Per-row licence for wolne_lektury from each text's own Wolne Lektury metadata (polish-dynaword-v2#57). +"""Per-row licence for wolne_lektury from each text's own Wolne Lektury metadata. Through v0.2.5 every row was labelled `CC-BY-SA-4.0 / Wolna Sztuka 1.3`. Wolne Lektury licenses each text separately: most are public domain, the rest are under the Free Art Licence 1.3 (Licencja Wolnej @@ -13,8 +13,7 @@ with its last TAIL_CHARS characters (whitespace collapsed). Wolne Lektury has ed the scrape (spelling, brackets, a changed opening line); a row with no exact match matches a book whose head and ending each hold FUZZY_MIN of the word shingles of the row's own opening and ending. Both ends matter: a collection's txt starts like its first part, and a part must not take the -collection's licence (Boy-Żeleński's Proust tomes are public domain under a CC BY-SA 3.0 parent; see -the #57 thread), so a collection drops out when one of its parts also matches. The few rows neither +collection's licence (Boy-Żeleński's Proust tomes are public domain under a CC BY-SA 3.0 parent), so a collection drops out when one of its parts also matches. The few rows neither rule places are in MANUAL, each checked by hand. Downloads (HTTP Range: the RDF header of each XML, the first and last bytes of each txt) go to --cache @@ -87,7 +86,7 @@ UNLICENSED = { "wolne_lektury_2373208", # do-taliarcha } # Rows that Wolne Lektury marks public domain although their translation is not free, found by the check against the -# National Library's catalogue (BN) and dropped by the maintainer's decision of 2026-10-20 (polish-dynaword-v2#109). +# National Library's catalogue (BN) and dropped by the maintainer's decision of 2026-10-20. # They are left out like UNLICENSED, and src/clean_wolne_lektury.py drops them. A row here that no longer labels public # domain fails the run, so the drop is reviewed again. NOT_FREE = { @@ -104,8 +103,8 @@ NOT_FREE = { # Rows that Wolne Lektury marks public domain, printed in two selections made by Kazimierz Wyka (d. 1975) and Stanisław # Stabro (b. 1948): our rows fill an estimated 155-197 of the 314 pages of Wyka's selection of Baczyński and 95-128 of # the 251 pages of Stabro's anthology, so each book's rows may reproduce much of the selection itself. The -# maintainer decided on 2026-10-20 to hold them out of v0.2.6 until the books' contents are checked -# (polish-dynaword-v2#109). Each row's Wolne Lektury edition string names its print. They are left out like NOT_FREE, +# maintainer decided on 2026-10-20 to hold them out of v0.2.6 until the books' contents are checked. +# Each row's Wolne Lektury edition string names its print. They are left out like NOT_FREE, # and src/clean_wolne_lektury.py drops them. A row here that no longer labels public domain fails the run, so the hold # is reviewed again. # Pages are estimated from the rows' verse lines: non-empty lines plus 4 a poem, at 30 lines a page for Wyka and 35 diff --git a/src/wolne_lektury_notes.py b/src/wolne_lektury_notes.py index f3e859e709a62eee9cd5a82259463ad7f4d61907..eff7134d74d605426f20433b09ac3e355cb6c9f3 100644 --- a/src/wolne_lektury_notes.py +++ b/src/wolne_lektury_notes.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""The author's and translator's notes of the wolne_lektury books, restored into the texts (polish-dynaword-v2#109). +"""The author's and translator's notes of the wolne_lektury books, restored into the texts. The texts SpeakLeash exported from Wolne Lektury (WL) have no footnotes. WL's book XML does: `` is an author's note and `` a translator's note; `` and `` are WL's editorial notes and are never restored. The maintainer decided