functor interface to Levenshtein automaton/index