Repository navigation
pseudonymize: DOCX copies with personal data replaced, fail closed - #8
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rivate key Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… left The saved copy is now scanned part by part: body paragraphs with field codes and deleted text, headers and notes one paragraph at a time, content controls, image alt text, document properties, custom XML and link targets. Any hit refuses the copy and removes an old one. Detection no longer pairs the word before a full name with it, reads surnames first only in listings, handles double given names, titles such as adw. and r.pr., residence markers, landlines and capitalised address prefixes, and leaves amounts and patron names alone. Surnames are learnt from the whole run first, so a surname seen before its full name is found in any file. Copies get neutral names mapped in the key, the key is saved atomically and validated, and a numbering gap no longer overwrites an entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Co dodaje
Polecenie
humanize-pl-flow pseudonymize <folder> -o <katalog> [--key klucz.json]: kopie DOCX, w których dane osobowe zastąpiono etykietami ([Osoba 1],[PESEL 1],[adres 1],[rachunek 1],[telefon 1],[e-mail 1],[KW 1],[dowód osobisty 1],[paszport 1]), z zachowanym formatowaniem.klucz.jsonz prawami0600, zapis atomowy, walidowany przy wczytaniu. Pozwala odwrócić zamianę, a przy kolejnym przebiegu etykiety się nie zmieniają. Kopie mają neutralne nazwy (dokument_01_pseudonimizowany.docx), oryginalne nazwy plików są tylko w kluczu.pseudonimizacja.jsonmówi, gdzie dane zostały, bez samych wartości.Weryfikacja
humanize-pl-evalbez regresji, a symulacja CI bez stanza i gradio jest zielona.Ograniczenia v1
Imiona i nazwiska spoza słownika Morfeusza (np. obce), telefony jako 9 cyfr bez kontekstu, dane w obrazach i osadzonych obiektach, arkusze XLSX.
🤖 Generated with Claude Code