summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOwen <despito@MacBook-Pro-de-Despito.local>2014-08-13 16:59:39 +0300
committerOwen <despito@MacBook-Pro-de-Despito.local>2014-08-13 16:59:39 +0300
commitd1e45cb485c28afbef6b5e57adb1683dba04a53d (patch)
treecee6126ed928a28d7a12293e8d731804248a46f0 /scripts
parentd69fef47528c8ccb5e24eee05ac9ddadf94ef904 (diff)
issue #36
Diffstat (limited to 'scripts')
-rw-r--r--scripts/textanalysis.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 9422a095..f61d9df6 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -299,15 +299,17 @@ function TextAnalyser2(newtext, finalize) {
//EXTERNAL AND CONNECTION CHECKING
var verb = "";
function ANDconnect(node) {
- for(var x=0;x<links.length;x++){
+ for(var x=0;x<newlinks.length;x++){
if(newlinks[x])if(newlinks[x].replace(/ /g,"")!=="and"){
verb=newlinks[x];
for(var y=0; y<x ;y++){
- for(var z=x; z<nodes.length ;z++){
+ graph.addLink(newnodes[y],node,verb,typesetter);
+ for(var z=x; z<newnodes.length ;z++){
graph.addLink(newnodes[y],newnodes[z],verb,typesetter);
+ console.log(newnodes[y]+ " and "+newnodes[z]);
}
}
- break;
+
}
}