🎯 Highlights
The most feature-complete release yet — 27,000+ lines of code across 3 platforms.
Added
- Style Presets — 5 predefined targets: student, copywriter, scientist, journalist, blogger
- Auto-Tuner — feedback loop that learns optimal intensity from processing history
- Semantic preservation guards — expanded context guards with 20+ patterns across EN/RU/UK/DE
- Typography-only fast path — AI ≤ 5% skips semantic stages entirely
- TypeScript/JavaScript port — full pipeline with adaptive intensity (28 tests)
- Complete documentation rewrite — README (2500+ lines), API Reference (660+ lines), Cookbook (14 recipes)
Changed
- change_ratio calculation — switched to SequenceMatcher (fixes critical inflation bug)
- Graduated retry — retries at lower intensity instead of full rollback
- German dictionaries — bureaucratic 22→64, phrases 14→25, connectors 12→20, synonyms 26→45
Fixed
- DE zero-change bug (dictionary contained only infinitives)
- Natural text over-processing (AI ≤ 5%)
- Validator change_ratio consistency
📊 Stats
| Platform | Lines of Code | Tests |
|---|---|---|
| Python | 16,820 | 1,333 |
| PHP | 10,000 | 223 |
| TypeScript | 1,031 | 28 |
| Total | 27,851 | 1,584 |
Benchmark: 100% (45/45) · Coverage: 99% · Speed: 56K chars/sec
Full Changelog: https://github.com/ksanyok/TextHumanize/blob/main/CHANGELOG.md
Install / Update
pip install git+https://github.com/ksanyok/TextHumanize.git@v0.8.0