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.

4 stages~8 hoursPythoncore
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.

  1. Detect bounded sensitive spans

    Return start/end Python character offsets and kind EMAIL, IPV4 or LITERAL.

    starter · ~2 hours · Python

    detect bounded sensitive spans
  2. Merge complete overlap unions

    Validate each span and sort a copy.

    core · ~2 hours · Python

    merge complete overlap unions
  3. Replace spans without leaking source values

    Compose detect and merge_spans.

    core · ~2 hours · Python

    replace spans without leaking source values
  4. Export 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

Build these projects first

All projects · Course catalog · Source on GitHub