LEVEL 2 · BUILDER
Sensitive Text Redaction Gate
Detect ASCII email patterns, valid IPv4 addresses and explicit literal identifiers. Merge overlapping spans, replace their union without exposing original values in receipts, and export redacted JSONL plus an inspectable HTML ledger.
Detect bounded sensitive spansMerge complete overlap unionsReplace spans without leaking source valuesExport redacted records and bounded evidence
YOU END UP WITH
redacted.jsonl, receipt.json and review.html
LEARN FIRST
- Python 3.12+; dictionaries, lists and command-line IO
WHY THESE LANGUAGES
- Python Regular expressions, Unicode string offsets, IP address parsing and JSONL processing remain visible with standard-library code.
PROJECT OUTLINE
Sensitive Text Redaction Gate in 4 stages
Remove bounded sensitive-text patterns before records enter a model pipeline.
Detect bounded sensitive spans
Return start/end Python character offsets and kind EMAIL, IPV4 or LITERAL.
starter · ~2 hours · Python
detect bounded sensitive spansMerge complete overlap unions
Validate each span and sort a copy.
core · ~2 hours · Python
merge complete overlap unionsReplace spans without leaking source values
Compose detect and merge_spans.
core · ~2 hours · Python
replace spans without leaking source valuesExport redacted records and bounded evidence
Accept up to ten thousand records with exactly id and text.
core · ~2 hours · Python
export redacted records and bounded evidence