# jfilter/clean-text

🧹 Python package for text cleaning

Repository: https://github.com/jfilter/clean-text
Canonical: https://ross.abutalabs.com/products/clean-text
Language: Python
License: NOASSERTION
License Family: other
Topics: python, natural-language-processing, text-cleaning, text-normalization, text-preprocessing, python-package, nlp, user-generated-content, scraping
Last push: 2026-05-15T10:07:33+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 82, release rhythm 68, longevity 100
- inputs: {"age_days": 2827, "days_push": 110, "days_rel": 217, "gap_med": 0, "n_releases_24m": 10}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1027, forks 83 (observed 2026-08-28T04:03:17.228672+00:00)

## What it is
A Python package for cleaning and normalizing messy text, especially user-generated content from the web and social media. It fixes unicode errors, transliterates to ASCII, and replaces URLs, emails, phone numbers, and other noise with special tokens.

## Use cases
- clean scraped web text before nlp processing
- normalize user-generated content from social media
- fix broken unicode characters in text
- replace urls and emails with tokens in text preprocessing
- transliterate accented characters to ascii
- preprocess text for machine learning models

## When to choose
- you need to preprocess dirty scraped or user-generated text
- you want a simple pip-installable text cleaning pipeline
- you need unicode fixing and ascii transliteration in one package

## When to avoid
- you need heavy-duty nlp pipelines with tokenization and parsing
- you require permissively-licensed dependencies only and cannot accept GPL unidecode
- you need language-specific linguistic cleaning rather than rule-based normalization

## Facets
- artifact type: library
- maturity: active
- function: nlp, parser, serialization
- domain: text-editors, crawlers, machine-learning
- platform: python, cross-platform
- tags: text-cleaning, text-normalization, text-preprocessing, user-generated-content, unicode, regex, natural-language-processing

## Member repositories
- jfilter/clean-text (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:17.228672+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:07:52.807961+00:00, confidence not recorded.
  - readme: https://github.com/jfilter/clean-text (fetched 2026-08-28T04:03:17.228672+00:00, sha aa539a9f8333)
- Data as of 2026-08-30T08:39:29.467469+00:00.
