Skip to content

Commit 29aa874

Browse files
authored
Update README.md
1 parent 3f34bbc commit 29aa874

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
# Fuzzywuzzy_swift (WIP)
1+
# Fuzzywuzzy_swift
22
Fuzzy String Matching in Swift using Levenshtein Distance. Ported from the python fuzzywuzzy library https://github.com/seatgeek/fuzzywuzzy
33

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.
75

86
# Installation
97
### Carthage
@@ -44,3 +42,11 @@ set fullProcess to false to remove this pre-processing
4442
```swift
4543
String.fuzzTokenSortRatio(str1: "fuzzy+wuzzy(was) a bear", str2: "wuzzy fuzzy was a bear", fullProcess: false) // => 77
4644
```
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+

0 commit comments

Comments
 (0)