Fuzzywuzzy port in Swift using Levenshtein Distance. Ported from the C# Fuzzywuzzy library https://github.com/JakeBayer/FuzzySharp
It has no external dependencies. And thanks to Swift String, it support's multi-language. But it only supports the Partial Ratio, and it's pretty slow.
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
Use the following url to add this project in Xcode 11:
Partial Ratio tries to match the shorter string to a substring of the longer one
String.fuzzPartialRatio(str1: "some text here", str2: "I found some text here!") // => 100 String.fuzzPartialRatio(str1: "wonderful 世", str2: "what a wonderful 世界") // => 100 String.fuzzPartialRatio(str1: "similar", str2: "somewhresimlrbetweenthisstring") // => 71
|Last commit: 1 year ago|