summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-10-09 15:32:21 +0300
committerAlon Levy <alon@pobox.com>2014-10-09 15:32:21 +0300
commitc12da371e6f418b8a189b310846f54589235a625 (patch)
tree544f1714941a88e90bf0f68c37173425840101a2 /scripts/textanalysis.js
parent18eb929aa68d38c38d2d436437dce2505a8d4152 (diff)
Revert "Allow chainlink when no last node is there"
This reverts commit e58e0c0b520d4abb971d3917712340330e5d85ff. It actually destroyed quite a lot of things, specifically even a simple sentence ended up being a chainlink. I need to rethink the 'abnormalGraph' predicate.
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 3527affe..68881fcc 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -262,7 +262,7 @@ var textAnalyser2 = function (newtext, finalize) {
addNode("", "bubble","temp");
}
- abnormalGraph = (newlinks.length - ANDcount) >= 2;
+ abnormalGraph = (newlinks.length - ANDcount) >= 3;
//0-N ORDER STACK
for (m = 0; m < orderStack.length - 1; m++) {