kultura_bez_barier_pl: mask the coordinator phones, cite the PDF licence line (v2#57)

#95
by ppuzio - opened
Fabryka AI org

Rights-audit fix for kultura_bez_barier_pl (slayerlabs/polish-dynaword-v2#57; audit: artifacts/rights_audit_2026-10/reports/govweb.md, verdict MINOR, keep).

Changed

  • Residual phones masked. The builder's labelled-phone regex missed Tel./SMS, tel:, + 48 and landlines with an extension, so the coordinator directory in podsumowanie_wizyt_studyjnych shipped 12 phone numbers. build() now runs ted_pl's redact_pii as a second pass on retained records. src/clean_kultura_bez_barier_pl.py applies that pass to the published text (pinned input SHA-256s, staged writes, CRLF kept, restore command in the docstring) and rewrites the Parquet, attribution, sample, stats, qa and ontology manifest (new run, version and evidence; claims repointed). Only that record changes: 12 phones → [Telefon], -33 characters, -44 tokens (217,932 → 217,888). One number has a stray extra digit in the PDF, so one digit follows its token.
  • Card: cites the one embedded licence line (jak_udostepniac_kulture: "Publikacja jest dostępna na licencji CC BY-SA.", unversioned against the catalogue's 3.0); notes that 6 of 9 records credit individual authors whose assignment to the foundation is not published; corrects the rejections (2 NIMOZ on rights grounds, 1 legacy-font extraction, not 3 on rights grounds); e-mail count 14 → 13; the scrubber section no longer quotes names and phone numbers.
  • Registry (src/sources.py): same rejection fix, the embedded line, and the second pass in provenance.
  • Tests: no phone left for ted_pl's patterns in the text or the card; the card cites the only embedded licence line; the manifest checksum test now reads the evidence claim:replayable points at (it read the first checksums entry, which is now the superseded one).
  • import pdfplumber / pypdf moved into extract_pdf() so the clean script can import the builder without them.

Not changed

  • NERGAL not run. Left for it in the same record: the coordinators' names next to the masked contacts, and participants' self-written bios (names, organisations, a personal website, statements about their own disability). The card flags it; release stays None.
  • Not replayed from the raw PDFs (they are on the contributor's repo only); the manifest lists the replay as pending. The pass runs last in build(), so the offline result is what build() now produces.
  • prepare() / publish() don't copy build_ted_pl.py; they refuse an already-registered source, so they're unused here.
  • No license-evidence.json (the audit doesn't ask for one). NOTICE.md, README and CHANGELOG untouched.

Checks

  • pytest from the repo root: 703 passed. ruff --select F,E9: clean.
  • Old vs new Parquet: same schema, metadata, ZSTD, 1 row group; only text and token_count of podsumowanie_wizyt_studyjnych differ.

render_sample.py (-n 3)

id: kultura_bez_barier_pl_paszport_do_sztuki
source: kultura_bez_barier_pl
added: 2026-09-07
created: 2019-01-21
token_count: 17478
license: CC-BY-SA-3.0
author: Fundacja Kultury bez Barier

DZIENNIK Z WYPRAWY

1.
DLACZEGO
PASZPORT
DO SZTUKI?
CO NAS SKŁONIŁO potrzebom młodzieży ze spektrum autyzmu oraz
DO REALIZACJI PROJEKTU? ich rówieśników.
Obydwie grupy zmagają się z typowymi dla wieku,
„Paszport do sztuki” to wspólny projekt Fundacji Kulproblemami wchodzenia w dorosłość, budowania tury bez Barier i instytucji kultury; projekt wymyślony relacji społecznych, szukania własnej tożsamoi zrealizowany w celu stworzenia oferty kulturalnej dla ści i możliwości rozwoju. Dodatkowo, nastolatki młodzieży ze spektrum autyzmu oraz ich rówieśników.
ze spektrum autyzmu, muszą poradzić sobie ze
W Warszawie z powodzeniem są realizowane skutkami zaburzeń rozwoju i zdobyć akceptację działania dla dzieci z autyzmem do 12 roku życia środowiska dla swej specyficznej inności.
oraz osób dorosłych. […]
id: kultura_bez_barier_pl_audiodeskrypcja_obrazow
source: kultura_bez_barier_pl
added: 2026-09-07
created: 2022-04-01
token_count: 7800
license: CC-BY-SA-3.0
author: Robert Więckowski; Anna Żórawska; Fundacja Kultury bez Barier

Audiodeskrypcja obrazów – zasady tworzenia
Autorzy: Robert Więckowski, Anna Żórawska, Fundacja Kultury bez Barier
Redakcja: Emilia Piegat, Fundacja Kultury bez Barier
Nasza wspólna publikacja na 10 lat pracy
1.04.2022

Spis treści
Wprowadzenie ............................................................................................................................ 3
Dlaczego audiodeskrypcja obrazów?..................................................................................... 3
Obraz, czyli co? ...................................................................................................................... 3
Dla kogo zasady? ................................................................................................................... 3
Po co zasady? […]
id: kultura_bez_barier_pl_filmolekcje
source: kultura_bez_barier_pl
added: 2026-09-07
created: 2019-01-29
token_count: 28165
license: CC-BY-SA-3.0
author: Monika Dubiel; Aleksandra Szorc

FILMOLEKCJE dla
KAŻDEGO czyli edukacja filmowa dla osób z niepełnosprawnościami sensorycznymi

.................................................................................................................. 4
............................................................ 6
........................................... 13
Czy mówić osobom z niepełnosprawnością wzroku o kolorach? Jakie są i co znaczą? ..... 13
Czy mówić osobom z niepełnosprawnością wzroku o kadrach i ujęciach? Jakie są i co znaczą? .................................................................................................................... 13
Czy rozmawiając z osobami z niepełnosprawnością wzroku używać porównań odnoszących się do wizualności np. Mężczyzna w typie Don Juana? […]

🤖 Generated with Claude Code

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

Sign up or log in to comment