module Levenshtein

Overview

Levensthein distance methods.

Defined in:

levenshtein.cr

Class Method Summary

Class Method Detail

def self.distance(string1 : String, string2 : String) : Int32 #

Computes the levenshtein distance of two strings.

levenshtein("algorithm", "altruistic") # => 6
levenshtein("hello", "hallo")          # => 1
levenshtein("こんにちは", "こんちは")           # => 1
levensthein("hey", "hey")              # => 0

[View source]
def self.find(name, all_names, tolerance = nil) #

[View source]
def self.find(name, tolerance = nil, &block) #

[View source]