Install
openclaw skills install text-processorBatch Chinese text processing — clean, normalize, translate, extract keywords, and format text for content production.
openclaw skills install text-processorA 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"]
clean(text)Normalize and clean Chinese/English mixed text:
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