IT WORKS! Construction and searching by a table of ngrams, comparison by string distance, search results.
Heuristics still very much in need of tweaking.