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 swift
compiler.
Use the following url to add this project in Xcode 11:
https://github.com/swing7wing/PartialFuzzyWuzzySwift/
import PartialFuzzyWuzzyString
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
link |
Stars: 1 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics