File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- # Fuzzywuzzy_swift (WIP)
1
+ # Fuzzywuzzy_swift
2
2
Fuzzy String Matching in Swift using Levenshtein Distance. Ported from the python fuzzywuzzy library https://github.com/seatgeek/fuzzywuzzy
3
3
4
- It has no external dependancies. And thanks to Swift String, it can support multi-lingual.
5
-
6
- ** WARNING: This project is still WORKING IN PROGRESS.**
4
+ It has no external dependancies. And thanks to Swift String, it can support multi-language.
7
5
8
6
# Installation
9
7
### Carthage
@@ -44,3 +42,11 @@ set fullProcess to false to remove this pre-processing
44
42
``` swift
45
43
String .fuzzTokenSortRatio (str1 : " fuzzy+wuzzy(was) a bear" , str2 : " wuzzy fuzzy was a bear" , fullProcess : false ) // => 77
46
44
```
45
+ ### Token Set Ratio
46
+ Similiar to token sort ratio while it put tokens into a set trying to remove duplicated tokens.
47
+ ``` swift
48
+ String .fuzzTokenSortRatio (str1 : " fuzzy was a bear" , str2 : " fuzzy fuzzy was a bear" ) // => 84
49
+
50
+ String .fuzzTokenSetRatio (str1 : " fuzzy was a bear" , str2 : " fuzzy fuzzy was a bear" ) // => 100
51
+ ```
52
+
You can’t perform that action at this time.
0 commit comments