Skip to content

ThatAmuzak/FastFuzzySearch

Fast Fuzzy Search in Unity

A Unity Package to implement fuzzy string search from a list. Implements Levenshtein Distance and Hamming Distance as string search algorithms

TODO

This is a very bare-bones package right now. Some of the items to check off before this package is worth a 1.0 release are as follows:

Installation

This package can be added to your project via Git UPM. To add this package, copy:

https://github.com/ThatAmuzak/FastFuzzySearch.git

and add it as a git package in the Unity Package Manager.

add_package_from_git

Usage

Simply use

FuzzySearch.GetBestOne(target, wordList);

to get the closest match. Alternatively, you can use

FuzzySearch.GetBestN(target, wordList, returnCount);

to get a list of the closest matches instead.

You can also select the matching algorithm, and if exact subsequences should get a boost to the score. By default, the matching algorithm uses Levenshtein, and exact subsequences boost is false.

Contributing

Please see the CONTRIBUTING.md file for details on contributing to this project.

License

This project is licensed under the Unlicensed License - see the LICENSE file for details.

About

Unity Package for performing fuzzy string search operations in Unity

Resources

License

Unlicense, Unknown licenses found

Licenses found

Unlicense
LICENSE
Unknown
LICENSE.meta

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages