1# zig-leven
2
3![loc](https://sloc.xyz/github/nektro/zig-leven)
4[![license](https://img.shields.io/github/license/nektro/zig-leven.svg)](https://github.com/nektro/zig-leven/blob/master/LICENSE)
5[![nektro @ github sponsors](https://img.shields.io/badge/sponsors-nektro-purple?logo=github)](https://github.com/sponsors/nektro)
6[![Zig](https://img.shields.io/badge/Zig-0.14-f7a41d)](https://ziglang.org/)
7[![Zigmod](https://img.shields.io/badge/Zigmod-latest-f7a41d)](https://github.com/nektro/zigmod)
8
9Measure the difference between two slices using the Levenshtein distance algorithm
10
11Adapted 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
19TODO Unicode support for strings