Skip to content

Easy-to-use fuzzy string search for Python 3 utilizing character ngrams of configurable sizes. Performs fuzzy string-against-string(s) comparisons, returning percentage (relative) and number-of-matches (absolute) results, and more.

License

juanirming/fuzzjunkiepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fuzzjunkie provides easy-to-use methods for performing fuzzy string searches. Strings can be compared to other strings and receive a score based on percentage match (relative) or number of matches (absolute). v3.0 uses its own implementation of character n-grams to achieve this. Word n-gram functionality is planned for a future v4.0.

In addition, fuzzjunkie was coded with clarity and readability in mind. The source code is meant to be educational and not hyper-optimized for speed as C, for example, would be far faster than Python for this sort of thing. By studying this source code, it should become clear how you can implement your own n-gram-based logic in any programming language.

See fuzzjunkie_examples.py for a demonstration of how to make use of fuzzjunkie in your own Python programs. Unit tests can be found in fuzzjunkie_tests.py.

More on n-grams: https://en.wikipedia.org/wiki/N-gram

About

Easy-to-use fuzzy string search for Python 3 utilizing character ngrams of configurable sizes. Performs fuzzy string-against-string(s) comparisons, returning percentage (relative) and number-of-matches (absolute) results, and more.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages