🀄 Chinese Character Extractor
📐 工作原理与说明
逐字符扫描,命中条件为「勾选汉字且该字符是汉字」或「勾选中文标点且该字符是中文标点」。按词模式:连续汉字累积成一个词,遇到非汉字先把当前词压入结果,若该字符是中文标点且勾选了标点则单独压入;逐字模式:命中的字符逐个压入结果。统计命中字符总数,输出时勾选分隔符则用空格连接,否则直接拼接;无结果时提示未找到中文字符
Strip out English letters, digits and punctuation and keep only Chinese characters, useful for cleaning scraped foreign pages or preparing Chinese-language corpora.
提取选项
共找到: 0 个字符
📋 提取结果
请输入文本...
📚 深度解析:提取中文
💡 常见使用场景
- 从混合文本抽中文:去除英文/数字/符号,得到纯中文,便于中文 NLP 或校对。
- 清洗外文资料:保留中文正文、剔除夹杂的拉丁字符。
- 双语对照准备:先抽中文再抽英文,分别处理。
从「你好world 123」抽中文
输入「你好world 123」,提取中文输出「你好」,过滤掉拉丁字母与数字;可用于统计纯中文字数或去噪。
❓ 常见问题(FAQ)
- 中文标点保留吗?
- 默认保留常用中文标点(,。!?等),只去非中文字母数字;如需连标点也去,用「仅保留汉字」模式。
- 繁体算中文吗?
- 算。繁体汉字属 CJK 统一区,会被保留;如需简繁分离可先转简再提取。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Script property | Chinese detection relies on the script property where unified ideographs carry Han | Unicode UAX #24, script property |
| Block ranges | common ideographs sit in the basic block while extensions hold rare variants | Unicode CJK Unified Ideographs block, U+4E00 |
| Punctuation boundary | Chinese punctuation belongs to general punctuation and is excluded from ideographs | GB/T 15834-2011, punctuation usage |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准