var spelling = function(dbot) { var dbot = dbot; var last = {}; var correct = function (data, correction, candidate, output_callback) { var rawCandidates = last[data.channel][candidate].split(' ').allGroupings(); var candidates = []; for(var i=0;i