From e804d1289e4c5d85279f6853754eaf42c883ba7c Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 8 Aug 2014 15:37:21 +0300 Subject: Issue #25 --- scripts/textanalysis.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 77c158be..311a1ae8 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -88,7 +88,7 @@ window.setInterval(function() { $('.typeselection').css('top', -300); $('.typeselection').css('left', 0); - if(text.length*8>300)$('#textanalyser').css('width',text.length*8); + if(text.length*8>500)$('#textanalyser').css('width',text.length*8+20); // text changed text = $('#textanalyser').val(); TextAnalyser2(text, false); @@ -147,6 +147,7 @@ function TextAnalyser2(newtext, finalize) { case "and": case "+": case ",": + case "&": sentence[m]=" and "; ANDcount++; //orderStack.push("AND"); @@ -220,7 +221,7 @@ function TextAnalyser2(newtext, finalize) { if (orderStack.length > 0) graph.addNode("", "bubble", "temp"); var abnormalGraph=false; - if(newlinks.length >= 4 && ANDcount<2 )abnormalGraph=true; + if(newlinks.length >= 3 && ANDcount<2 )abnormalGraph=true; //0-N ORDER STACK for (var m = 0; m < orderStack.length - 1; m++) { -- cgit v1.3.1