From a77d15610f1acfcdc6ce671b2fb036cd80382a6f Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 23 Sep 2014 20:12:49 +0300 Subject: add a function comment to TextAnalyzer2; marking up it needs fixing --- scripts/textanalysis.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index eb77d90f..29c473f3 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -38,6 +38,25 @@ function autocompleteCallback(request, response_callback) response_callback(ret); } +/* + * TextAnalyser2 + * + * Input: + * @newtext - new sentence + * @finalize - is this an intermediate editing state or are we editing the graph + * + * Output: + * none + * + * Side effect: + * updating graph (global) + * + * Implementation notes: + * There is no well defined grammer. The translation goes from obvious to not + * so much for more complex sentences involving more then two nodes (two '#' + * marks). + * + */ function TextAnalyser2(newtext, finalize) { var segment = [], subsegment = [], -- cgit v1.3.1