StringMetric

master

String metric/similarity functions implemented in Swift.
autozimu/StringMetric.swift

StringMetric.swift

CircleCI

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/autozimu/StringMetric.swift.git", majorVersion: 0)

Example

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

Documentation

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

Description

  • Swift Tools 4.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Sep 10 2022 21:03:09 GMT-0500 (GMT-05:00)