Giter Site home page Giter Site logo

solo-studios / kt-fuzzy Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 1.24 MB

License: MIT License

Kotlin 92.25% FreeMarker 1.18% JavaScript 1.73% SCSS 4.83%
kotlin fuzzy-matching fuzzywuzzy fuzzy-search fuzzy-string-matching fuzzy-string kt kotlin-library kotlin-multiplatform kotlin-multiplatform-library distance distance-measures levenshtein levenshtein-distance multiplatform similarity similarity-measures

kt-fuzzy's Introduction

Kotlin Fuzzy

MIT license Maven Central Pure Kotlin Discord Server

A zero-dependency multiplatform library for fuzzy string matching in Kotlin which is roughly equivalent to the Python package thefuzz (Previously "fuzzywuzzy") without the GPL license.

Kotlin Fuzzy String Matching

Kotlin Fuzzy, or kt-fuzzy was created because the only other options for Java/Kotlin fuzzy string matching libraries were under the GPL. This meant, they couldn't be used in non-GPL projects. So, I created this library to remedy that.

This library was inspired by libraries like javawuzzy, fuzzywuzzy-kotlin, and thefuzz but does not use any code from them, allowing it to exist without the GPL license.

This library was designed with the goal of mimicking their functionality, without directly using any code from those repositories.

There are two modules that can be used:

Kotlin String Similarity

The secondary module, Kotlin String Similarity implements various string similarity and distance measures. It contains over a dozen such algorithms, including Levenshtein distance (and siblings), Jaro-Winkler, Longest Common Subsequence, cosine similarity, and many others.

It primarily a direct port of Java String Similarity by tdebatty.

If you want to depend only on this module, you do not need to add a dependency on Kotlin Fuzzy to do so. Read the Kotlin String Similarity README for more info.

Features

  • No dependencies
  • Simple to use
  • Performance friendly

Including

You can include Kotlin Fuzzy in your project by adding the following, depending on your platform:

Maven

<dependency>
    <groupId>ca.solo-studios</groupId>
    <artifactId>kt-fuzzy</artifactId>
    <version>VERSION</version>
</dependency>

Gradle Groovy

implementation 'ca.solo-studios:kt-fuzzy:VERSION'

Gradle Kotlin

implementation("ca.solo-studios:kt-fuzzy:VERSION")

kt-fuzzy's People

Contributors

solonovamax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kt-fuzzy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.