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.
本技能來自小蔥技能站7w4.net。
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"]
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
這個工具質量中等偏上,日常用來處理中文文本、清理格式還不錯,上手簡單。但它沒有測試保護,長期使用的穩定性存疑,而且文件裡介紹的部分功能實際上用不了。基礎功能可以滿足普通需求,但如果對結果精度要求高或者要用於專業場景,建議再評估一下是否合適。