text-processor
Batch Chinese text processing — clean, normalize, translate, extract keywords, and format text for content production.
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- text-processor
- description
- Batch Chinese text processing — clean, normalize, translate, extract keywords, and format text for content production.
03 SKILL.md 正文
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)
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
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.