Text Processor

👤 huizong-cpu 📦 v1.0.0 ⭐ 4.0 ⬇️ 605 下载
✍️ 内容创作 免费

📖 技能介绍


name: text-processor description: Batch Chinese text processing — clean, normalize, translate, extract keywords, and format text for content production.


Text Processor

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.

Features

  • Text cleaning: Remove extra whitespace, fix punctuation, normalize quotes
  • Chinese normalization: Convert full-width/half-width, simplify/traditional
  • Batch processing: Process multiple text items in one call
  • Format conversion: Markdown ↔ plain text, numbered lists, tables
  • Keyword extraction: Extract key terms and phrases from Chinese text

Usage

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"]

API

clean(text)

来源于7w4.net。

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.

License

MIT

🤖 AI 评测

这个工具质量中等偏上,日常用来处理中文文本、清理格式还不错,上手简单。但它没有测试保护,长期使用的稳定性存疑,而且文档里介绍的部分功能实际上用不了。基础功能可以满足普通需求,但如果对结果精度要求高或者要用于专业场景,建议再评估一下是否合适。

📊 多维度评分

适应性3.9
规范性3.9
有效性4
可靠性3.8
可信度4.9

📁 包含文件 (3 个)

📄 SKILL.md 1.7 KB
📄 _meta.json 133 B
📄 index.js 2 KB