diff options
Diffstat (limited to 'exampleData/ruleSets/language-processing/natural/upGoerFive.js')
-rw-r--r-- | exampleData/ruleSets/language-processing/natural/upGoerFive.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/exampleData/ruleSets/language-processing/natural/upGoerFive.js b/exampleData/ruleSets/language-processing/natural/upGoerFive.js index 47b5c9e..def179c 100644 --- a/exampleData/ruleSets/language-processing/natural/upGoerFive.js +++ b/exampleData/ruleSets/language-processing/natural/upGoerFive.js @@ -147,6 +147,9 @@ var getTextNodesIn = function (node, includeWhitespaceNodes) { var textNodes = [], whitespace = /^\s*$/; function getTextNodes(node) { + if ($(node).attr('id') == 'fiveui-top') { + return; + } if (node.nodeType == 3) { if (includeWhitespaceNodes || !whitespace.test(node.nodeValue)) { textNodes.push(node); @@ -178,7 +181,7 @@ var markWords = function(obj, report) { _.each(toks, function(tok) { if (isCommonWord(tok) || isPunctuation(tok) || _.isNumber(tok)) { - rawObj.append(tok + ' '); + rawObj.append(' ' + tok + ' '); } else { var newObj = $("<span>"+tok+"</span> "); rawObj.append(newObj); |