summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-26 17:42:59 +0200
committerAlon Levy <alon@pobox.com>2014-10-26 17:42:59 +0200
commit5e1b9130d0ba2bd408fea1317e058bb205269718 (patch)
treebbc85230b843f5a738452192ec217bde68c5a88e /scripts/textanalysis.js
parentdf1ef90640db02889b1ec5d5593c942856ba9829 (diff)
Fixes #86
Diffstat (limited to 'scripts/textanalysis.js')
-rw-r--r--scripts/textanalysis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 66cc4d4e..800a741f 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -236,7 +236,7 @@ var textAnalyser2 = function (newtext, finalize) {
}
}
- abnormalGraph = (newlinks.length - ANDcount) >= 3;
+ abnormalGraph = (newlinks.length - ANDcount) >= 3 || orderStack[orderStack.length - 1] != NODE;
//PREFIX not null case - put complete sentence in first link.
if (prefix && !abnormalGraph) {