/completion-engine

Completion engine using a directed acyclic word graph

Primary LanguageHaskellBSD 2-Clause "Simplified" LicenseBSD-2-Clause

A simple completion engine

Providing completion for text input is a typical use case for tries. The implementation is extremely simple. For a given partial word, descend on the tree and return all words in the subtree found at the last node of the partial word. Since directed acyclic word graphs (DAWG). are more space efficient, but otherwise similar to tries, this implementation is based on a DAWG again.