Sajjon / StringSimilarity

String metric/similarity functions implemented in Swift.

Home Page:https://autozimu.github.io/StringMetric.swift/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StringSimilarity

Fork

This is a fork of Junfeng Li (aka 'autozimu')'s StringMetric.swift repo.

String metric functions implemented in Swift.

Currently, following functions are implemented,

Usage

For Swift Package Manager users, add this module as dependency in Package.swift:

.package(url: "https://github.com/sajjon/StringSimilarity", majorVersion: 0)

Example

"kitten".similarity(with: "sitting")    // => 0.746
"君子和而不同".similarity(with: "小人同而不和")    // => 0.555

About

String metric/similarity functions implemented in Swift.

https://autozimu.github.io/StringMetric.swift/

License:MIT License


Languages

Language:Swift 100.0%