scrubbed

scrubbed: native binary for cleaning web data for LLM training

Working when we checked on .

Visit scrubbed

What is scrubbed?

scrubbed combines encoding repair (mojibake fixing), main-content HTML extraction, PII scanning, language identification, and deduplication in a single native binary. It is aimed at developers and researchers preparing web text for training and evaluation corpora. A single command, clean-web-document, repairs encoding damage, extracts articles, captures metadata, scans for common PII, and writes an audit sidecar. It also offers Markdown export, quality signals, JSONL streaming, parallel processing, and a local resumable crawler. A matched benchmark on an Apple M4 showed roughly 37x lower CPU time than a warm ftfy-Trafilatura-langdetect-Presidio pipeline.

scrubbed pricing

Pricing model: Free

Free and MIT-licensed with optional donations (GitHub Sponsors, PayPal, Patreon)

scrubbed pros

  • Single native binary replaces chained Python tools with conflicting dependencies
  • ~37x faster CPU time vs. warm ftfy/Trafilatura/langdetect/Presidio pipeline in a 400-file benchmark
  • 39/39 and 48/48 exact mojibake repair agreement with ftfy within its Latin-1/Windows-1252 scope
  • 21/21 exact PII fixture agreement with Presidio for email, phone, card, and IPv4 detection
  • PII report, mask, and redact modes for email, phone, card, and IPv4 data
  • Parallel file processing, atomic output, and resumable runs included

scrubbed cons

  • No native Windows build; WSL2 path unverified
  • Only macOS 15+ Apple Silicon and Linux glibc 2.36+ supported
  • Multi-machine and multi-terabyte distributed runs not yet tested or proven
  • No S3, Parquet, or distributed-execution CLI capabilities

Frequently asked questions about scrubbed

What does scrubbed do?

It repairs encoding damage (mojibake), extracts main content from HTML, scans for PII, identifies languages, and deduplicates documents, all in one native binary for building training corpora.

Who is scrubbed for?

Developers and researchers who clean web text into training and evaluation corpora and want a single deployable artifact instead of chained Python tools.

Is scrubbed free?

Yes, it is free and MIT-licensed. Optional support via GitHub Sponsors, PayPal, or Patreon helps fund maintenance, but the project remains fully open.

How fast is scrubbed compared to a Python pipeline?

In a workload-specific benchmark on an Apple M4, scrubbed used 1.65 CPU-seconds versus 61.12 for a warm ftfy, Trafilatura, langdetect, and Presidio pipeline over 400 files, about 37x less CPU time.

What PII types can scrubbed detect?

It detects email addresses, phone numbers, card numbers, and IPv4 addresses, with report, mask, and redact modes, matching Presidio exactly on a 21/21 fixture set.

What platforms are supported?

macOS 15 (Sequoia) or later on Apple Silicon, and Linux with glibc 2.36+ on x86_64 or aarch64. There is no native Windows build; the Linux build works via WSL2 but is not yet verified.

How is scrubbed installed?

On macOS, 'brew install schancel/scrubbed/scrubbed' via Homebrew. Release archives and source builds (dub build --build=release) are also available on GitHub.

Can scrubbed crawl websites?

Yes, 'scrubbed crawl' provides a local, multithreaded, resumable crawler with configurable seeds, concurrency, and page limits, storing results in a corpus directory and SQLite database.

How does scrubbed compare to ftfy for mojibake repair?

It achieved 39/39 exact repairs and 48/48 clean-input agreement with ftfy within its Latin-1/Windows-1252 scope, and a 5.9 MB fixture ran about 25x faster by whole-process wall time.

Is scrubbed suitable for distributed, multi-machine pipelines?

Not yet proven. Multi-machine runs under DataTrove, Ray, Spark, Slurm, or Kubernetes have not been tested on a representative cluster, so multi-terabyte operation is not an established claim.

Categories

Use cases

Alternatives to scrubbed

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z