Fuzzify: A tiny library for fuzzy search
github.com
Fuzzify: A tiny library for fuzzy search
1–10 of 13 posts
Re: Fuzzify: A tiny library for fuzzy search
#2Another approach that I haven’t explored is to prep the array of words to search into a tree. normal words in Latin languages have lots of common prefixes and suffixes so you can dramatically reduce the amount of nodes (see my own old blog which compresses a scrabble dictionary https://williame.github.io/post/87682811573.html - same prefix suffix sharing our work on non-scrabble rotations too). Now walk the tree doing Levenshtein but checking multiple words at once?
Re: Fuzzify: A tiny library for fuzzy search
#3Re: Fuzzify: A tiny library for fuzzy search
#4iirc the go-to data structure for this kind of problem is called a “vantage point tree” (vp tree). Another approach that I haven’t explored is to prep the array of words to search into a tree. normal words in Latin languages have lots of common prefixes and suffixes so you can dramatically reduce the amount of nodes (see my own old blog which compresses a scrabble dictionary https://williame.github.io/post/8768281157…
Re: Fuzzify: A tiny library for fuzzy search
#5Re: Fuzzify: A tiny library for fuzzy search
#6iirc the go-to data structure for this kind of problem is called a “vantage point tree” (vp tree). Another approach that I haven’t explored is to prep the array of words to search into a tree. normal words in Latin languages have lots of common prefixes and suffixes so you can dramatically reduce the amount of nodes (see my own old blog which compresses a scrabble dictionary https://williame.github.io/post/8768281157…
Not for strings, no. The default algorithm would be Levenshtein edit distance and friends (i.e. what this library uses). If you want to get fancy, you could even go for something like Levenshtein automata (which are used by Lucene to implement fuzzy search across terms).
Re: Fuzzify: A tiny library for fuzzy search
#7I’m a bit confused. “Unit” brings up Turkmenistan before United States.
Re: Fuzzify: A tiny library for fuzzy search
#8I’m a bit confused. “Unit” brings up Turkmenistan before United States.
Re: Fuzzify: A tiny library for fuzzy search
#9I’m a bit confused. “Unit” brings up Turkmenistan before United States.