glevenshtein

The module used to calculate the levenshtein distance

Functions

pub fn calculate(word1: String, word2: String) -> Int

This function calculates the levenshtein distance. It isn’t case sensetive

Examples

glevenshtein.calculate("Gleam", "BEAM") // 2!
glevenshtein.calculate("GLEAM", "Gleam") // 0!
Search Document