Skip to content

arkan/AkText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This plugin adds helpful methods on the texts. Here are the followings methods available.

  • Calculating the Levenshtein distance

Calculating the Levenshtein distance

String.levenshtein("str1", "str2")  => 1
String.levenshtein("str1", "str1")  => 0
String.levenshtein("str1", "str11") => 1
"str".levenshtein_with("test42")	=> 2

By default, case sensitive if activated. It’s possible to deactivated by passing case_sensitive => false as third argument

String.levenshtein("str1", "str11", :case_sensitive => false)

If you discover any bugs or want to drop a line, feel free to create an issue on GitHub.

Copyright © 2010 Florian Bertholin (florian.bertholin@gmail.com), released under the MIT license

About

This plugin adds helpful methods on the texts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages