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.

本技能來自小蔥技能站7w4.net。

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)

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