name: text-processor description: Batch Chinese text processing — clean, normalize, translate, extract keywords, and format text for content production.
A batch text processing utility for content workflows. Handles Chinese text normalization, cleaning, formatting, and structured extraction. Designed for content creators, editors, and automation pipelines.
const processor = require('./skills/text-processor'); // Clean and normalize const cleaned = processor.clean(" Hello,世界! This has ”bad” quotes. "); // → "Hello,世界!This has "bad" quotes." // Extract keywords from Chinese text const keywords = processor.extractKeywords("今天天气很好,适合出去郊游"); // → ["天气", "郊游", ...] // Batch process const results = processor.batch([ " 文本1 ", " 文本2 " ], 'clean'); // → ["文本1", "文本2"]7w4.net小葱技能站,你的AI助手技能库。
clean(text)Normalize and clean Chinese/English mixed text: - Trim whitespace - Collapse multiple spaces - Normalize quotes («»「」"" → standard "") - Normalize full-width/half-width punctuation
extractKeywords(text, maxCount?)Extract meaningful keywords from Chinese text using TF heuristics.
batch(items, operation, options?)Process an array of texts with the same operation.
MIT
这个工具质量中等偏上,日常用来处理中文文本、清理格式还不错,上手简单。但它没有测试保护,长期使用的稳定性存疑,而且文档里介绍的部分功能实际上用不了。基础功能可以满足普通需求,但如果对结果精度要求高或者要用于专业场景,建议再评估一下是否合适。