Levenshtein 距离:快速上手指南
第一次使用就能成功所需的全部内容:该粘贴什么、哪个选项真正重要、以及如何读懂结果。
使用方法
- 打开工具,将内容粘贴到左侧输入框。
- 只调整任务真正需要的选项——多数情况下默认值就是正确的。
- 在右侧查看结果,输入时结果会实时更新。
- 用「复制」取走结果,或用「下载」保存为文件。
示例
Compare against "sitting" — the textbook example, three edits apart.
输入
kitten
输出 — 搜索结果
A: "kitten" (6 chars) B: "kitten" (6 chars) Levenshtein distance : 0 Similarity : 100.00% (1 − distance / max length) Normalised dist : 0.0000 Length difference : 0 Meaning: at least 0 single-character edit(s) (insert, delete or substitute) are needed to turn A into B.
运行
说明
Edit distance and similarity between two strings, with Damerau and Hamming variants.
相关工具
大小写转换器Switch text between uppercase, lowercase, title case, sentence case and more.camelCase 转换器Convert any text or identifier into camelCase.snake_case 转换器Convert text into snake_case identifiers.kebab-case 转换器Convert text into kebab-case for URLs, CSS classes and CLIs.PascalCase 转换器Convert text into PascalCase for class and type names.CONSTANT_CASE 转换器Convert text into CONSTANT_CASE for macros and enum members.