Skip to content

Commit

Permalink
removed solution
Browse files Browse the repository at this point in the history
  • Loading branch information
peterkhayes committed Dec 16, 2014
1 parent 2ceba00 commit e775bdb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Spellchecker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e775bdb

Please sign in to comment.