Swift Package Index


String metric/similarity functions implemented in Swift.


  • The latest stable release is 0.3.2. Released 10 months ago.
  • The last commit to master was 10 months ago.

Swift Version Compatibility

  • 0.3.2 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.3.2 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

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/