| ... | @@ -0,0 +1,25 @@ |
| 1 | # zig-leven |
| 2 | |
| 3 | Measure the difference between two slices using the Levenshtein distance algorithm |
| 4 | |
| 5 | Adapted from https://github.com/sindresorhus/leven |
| 6 | |
| 7 | ## Built With |
| 8 | - Zig master |
| 9 | - https://github.com/ziglang/zig |
| 10 | - Zigmod package manager |
| 11 | - https://github.com/nektro/zigmod |
| 12 | |
| 13 | ## Install |
| 14 | ``` |
| 15 | zigmod aq add 1/nektro/leven |
| 16 | ``` |
| 17 | |
| 18 | ## Usage |
| 19 | `pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T) !usize` |
| 20 | |
| 21 | ## Future |
| 22 | TODO Unicode support for strings |
| 23 | |
| 24 | ## License |
| 25 | MIT |