🔤 English Character Extractor
📐 工作原理与说明
按模式选正则:字母模式与单词模式取 [a-zA-Z]+,字母数字模式取 [a-zA-Z0-9]+,标识符模式取 [a-zA-Z][a-zA-Z0-9]*,全局匹配后得到候选词。后处理顺序:先按最小长度过滤(默认长度 ≥ 2),再去重(开启小写时以小写形式为去重键,否则以原词为键),再统一大小写(转小写或转大写),最后排序——已统一大小写时直接字典序 sort,否则按 toLowerCase 后的 localeCompare 比较。输出条数即结果数组长度,用所选分隔符连接(分隔符为 \n 时按换行连)
Filter English letters and words out of mixed text while dropping Chinese characters and symbols, handy for collecting identifiers and foreign terminology.
提取模式
共找到: 0 个
📋 提取结果
请输入文本...
📚 深度解析:提取英文
💡 常见使用场景
- 从双语文本抽英文:保留拉丁字母词,便于英文校对或术语提取。
- 清理中文干扰:得到纯英文片段做拼写/语法检查。
- 术语表准备:抽英文术语与中文对照分离。
从「API 接口已就绪」抽英文
输入「API 接口已就绪,deploy 完成」,提取英文输出「API deploy」,过滤中文;可用于把术语单独成表。
❓ 常见问题(FAQ)
- 数字和符号保留吗?
- 默认只抽连续拉丁字母词,数字与连字符视设置;「API-1」是否整体抽出可在选项里定。
- 和提取中文互补吗?
- 是。两工具分别抽中英,合起来可拆分双语内容做对照翻译或术语库。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Script property | English letter detection uses the script property across several blocks | Unicode UAX #24, script property |
| Compatibility letters | fullwidth and mathematical letters are compatibility equivalents of basic Latin | Unicode UAX #15, normalisation forms |
| Case range | the extraction range decides between missed and spurious matches | ISO/IEC 8859-1, Latin alphabet |
⚠️ 使用说明与注意事项
- 本工具纯前端运行,数据不会上传到服务器
- 建议在主流浏览器(Chrome/Safari/Firefox/Edge)中使用
- 计算结果仅供参考,请以实际应用场景为准