summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 0b9318b7..2776c37e 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -222,8 +222,10 @@ var textAnalyser2 = function (newtext, finalize) {
}
}
+ abnormalGraph = (newlinks.length - ANDcount) >= 3;
+
//PREFIX not null case - put complete sentence in first link.
- if (prefix) {
+ if (prefix && !abnormalGraph) {
newlinks[1] = prefix + " " + newnodes[0] +
(newlinks[1] !== undefined || newnodes[1] !== undefined ?
" " : "")
@@ -272,7 +274,6 @@ var textAnalyser2 = function (newtext, finalize) {
addNode("", "bubble","temp");
}
- abnormalGraph = (newlinks.length - ANDcount) >= 3;
//0-N ORDER STACK
for (m = 0; m < orderStack.length - 1; m++) {