| 1 | # zig-leven |
| 2 | |
| 3 |  |
| 4 | [](https://github.com/nektro/zig-leven/blob/master/LICENSE) |
| 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) |
| 7 | [](https://github.com/nektro/zigmod) |
| 8 | |
| 9 | Measure the difference between two slices using the Levenshtein distance algorithm |
| 10 | |
| 11 | Adapted from https://github.com/sindresorhus/leven |
| 12 | |
| 13 | ## Usage |
| 14 | |
| 15 | `pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize` |
| 16 | |
| 17 | ## Future |
| 18 | |
| 19 | TODO Unicode support for strings |