From e775bdb2f5241aab96d47c5a5d506d8d6f47b544 Mon Sep 17 00:00:00 2001 From: peterkhayes Date: Mon, 15 Dec 2014 19:12:38 -0800 Subject: [PATCH] removed solution --- Spellchecker/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Spellchecker/index.js b/Spellchecker/index.js index f64ca91..c879acd 100644 --- a/Spellchecker/index.js +++ b/Spellchecker/index.js @@ -10,11 +10,7 @@ console.log("\nInitializing spellchecker!\n"); of all lowercase words in the string.) */ function getWordCounts(text) { - // return text.toLowerCase().match(/[a-z]+/g).reduce(function(output, word) { - // var key = word.toLowerCase(); - // output[key] = (output[key] + 1) || 1; - // return output; - // }, {}); + } var WORD_COUNTS = getWordCounts(corpus);