added simple spell checker that writes hypergraph of possible outputs