humanize-skill
v2.0.0
Published
Remove AI tells from text — make AI-written content sound human
Maintainers
Readme
humanize-skill
Remove AI tells from text — make AI-written content sound human
3KB, zero dependencies, works in Node.js and browser.
Install
npm install humanize-skillQuick Start
const { humanize } = require('humanize-skill');
humanize("当然可以!请问还有什么问题吗?");
// → "还有什么问题吗?"
humanize("Of course! I'd love to help you.");
// → "!"CLI
node bin/cli.js "当然可以,我很乐意为您服务"
# → "很乐意为您服务"Features
- Pure JS — zero npm dependencies
- Bilingual — auto-detects and handles Chinese and English
- Smart protection — technical terms like
当然函数are preserved - Longest-match first —
很高兴为您服务removed before很高兴 - Boundary-aware — only removes standalone phrases, not substrings within words
- Empty guard — returns original text if too much content is removed
API
humanize(text: string): string| Input | Output |
|-------|--------|
| null, undefined, number | "" |
| empty string | "" |
| Chinese text | strips Chinese patterns |
| English text | strips English patterns |
| Mixed text | processes each language segment separately |
Pattern Examples
Chinese patterns removed: 当然可以, 很高兴为您服务, 请问还有什么问题吗, 好的没问题, etc.
English patterns removed: Of course, I'd love to help, I hope this helps, Let me know, etc.
Technical Terms Protected
Terms like 当然函数, Of course method, I'd method are not modified because the phrase is bounded by a letter character on at least one side.
License
MIT
