Easy Text Processing
Paste the following prompt into your AI chat to install this skill:
Please install @user_7f6fb458/easytext according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem Addressed
When working with short text, the task is often narrow: remove leading and trailing whitespace, collapse repeated spaces and extra line breaks; normalize English letters to upper or lower case; count total characters and Han characters; or locate and mark keyword occurrences. easytext reduces these small operations to a predictable interface, avoiding throwaway regex or ad hoc scripts for routine cleanup.
How It Works
Requests pass content and opt, where opt supports trim, upper, lower, count, and search. trim removes edge whitespace, consecutive spaces, and surplus line breaks while preserving normal paragraph separation. upper and lower change only English letter case, leaving Chinese characters, digits, and symbols untouched. count returns total character count and pure Han character count. search requires keyword and marks all matching positions in the original text. This makes it easy to embed in content normalization, copy cleanup, length checks, and keyword highlighting pipelines.
Scope and Limitations
It targets lightweight basic text handling, not translation, summarization, entity extraction, rich-text rendering, or complex parsing. If inputs contain tabs, control characters, or mixed-language casing expectations, verify that the fixed rules match the expected result. search is unusable without keyword, and highlighting depends on the original text order.
Use Cases
- Clean scraped messages by removing edge whitespace, repeated spaces, and line breaks.
- Count total and Han characters to verify whether copy fits length limits.
- Mark keyword occurrences to check missing or misplaced terms in docs.
- Normalize English headings and tags to consistent upper or lower case.
Best For
- Backend or frontend engineers cleaning scraped text before storage
- Ops or content editors checking copy length and term occurrences
- Localization engineers normalizing English UI string casing
- QA or reviewers locating keyword occurrences in text
Related Skills
A content-creation skill for using composition methods to shape content.
For novels, web fiction, and literary works, it handles Chinese-English translation with genre style rules, glossary consistency, de-mechanized phrasing, and translation notes.
Plan short video content calendars, posting grids, production milestones, and content mix ratios around publishing goals.
Collects short-drama trend signals, then progresses story, episode outlines, and scripts through a strict state machine with deterministic anti-hallucination checks.