Vlad is a lightweight header-only library for fuzzy string search. It includes an implementation of efficient generic levenshtein automata and a generic trie for indexing documents and counting unique words.
There are two demo programs. lgrep
is like a basic grep with fuzzy matching.
query
indexes a text file by line and also does fuzzy search.
You'll need boost, cmake and a recent clang++. Also, doxygen, if you want HTML documentation.
- Create a
build
directory next to src. - Run
cmake ..
in thebuild
directory. - Run
make all test
. - Run
make doc
if you want an HTML version of the documentation. - Take a look at
lgrep
andquery
.