diff --git a/modules/spelling.js b/modules/spelling.js index 3dc85e1..0f286cc 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -3,23 +3,25 @@ var spelling = function(dbot) { var last = {}; var correct = function (data, correction, candidate, output_callback) { - var candidates = last[data.channel][candidate].split(' '); + var rawCandidates = last[data.channel][candidate].split(' ').allGroupings(); + var candidates = []; + for(var i=0;i