aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/language-processing/natural/upGoerFive.js
diff options
context:
space:
mode:
Diffstat (limited to 'exampleData/ruleSets/language-processing/natural/upGoerFive.js')
-rw-r--r--exampleData/ruleSets/language-processing/natural/upGoerFive.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/exampleData/ruleSets/language-processing/natural/upGoerFive.js b/exampleData/ruleSets/language-processing/natural/upGoerFive.js
index def179c..fb17a54 100644
--- a/exampleData/ruleSets/language-processing/natural/upGoerFive.js
+++ b/exampleData/ruleSets/language-processing/natural/upGoerFive.js
@@ -177,6 +177,7 @@ var isPunctuation = function(str) {
var markWords = function(obj, report) {
var toks = tokenizer.tokenize($(obj).text());
var rawObj = $('<p></p>', {id: 'text'});
+// $(obj).empty();
$(obj).replaceWith(rawObj);
_.each(toks, function(tok) {
@@ -185,7 +186,7 @@ var markWords = function(obj, report) {
} else {
var newObj = $("<span>"+tok+"</span> ");
rawObj.append(newObj);
- report.error("The word '"+tok+"' is uncommon", newObj);
+ report.error("The word '"+tok+"' is uncommon", newObj.get(0));
}
});
};