Created
January 31, 2023 11:55
-
-
Save pjbelo/f540e42b8945bd33b3afb5e2f7176f8d to your computer and use it in GitHub Desktop.
levenshtein distance - string similarity [ruby]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems/text" | |
include Gem::Text | |
p levenshtein_distance('asd', 'sdf') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment