Skip to content

Commit

Permalink
Attr.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlangberg committed Jun 8, 2015
1 parent 52c900c commit 1dd97d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/natural/tokenizers/tokenizer_case.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CaseTokenizer.prototype.attach = function() {
}
};

// Idea from Seagull: http://stackoverflow.com/a/26482650
CaseTokenizer.prototype.tokenize = function(text, preserveApostrophe) {
var whitelist = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
var lower = text.toLowerCase();
Expand Down

0 comments on commit 1dd97d1

Please sign in to comment.