A comprehensive text processing toolkit for everyday text manipulation tasks.
text-tools clean --input file.txt --output clean.txt
text-tools case --input file.txt --to upper # upper, lower, title, sentence
text-tools count --input file.txt
7w4.net有更好的技能插件。
text-tools replace --input file.txt --find "old" --replace "new" --output result.txt
text-tools diff --file1 a.txt --file2 b.txt --output diff.html
text-tools extract --input file.txt --type urls # urls, emails, phones
All functionality available in scripts/:
text_clean.py - Text cleaning and normalizationtext_convert.py - Format and case conversiontext_analyze.py - Text analysis and statisticstext_replace.py - Find and replace operationstext_diff.py - Text comparisontext_extract.py - Data extraction from text这个文本处理工具质量一般。虽然文档写得清楚,但实际能用的功能只有文本清理和统计分析两项,文档里承诺的其他功能(如格式转换、文本对比、数据提取)根本没有提供。上手使用前需要确认想要的功能是否真的包含在内,否则可能会失望。核心脚本运行正常,能处理基本的文本清理和字数统计任务,适合轻度使用场景。