diff options
| author | Alon Levy <alon@pobox.com> | 2014-09-23 20:12:49 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-09-23 20:12:49 +0300 |
| commit | a77d15610f1acfcdc6ce671b2fb036cd80382a6f (patch) | |
| tree | d09800045f01a96382ed63d8319a9b7c2eb3b966 /scripts/textanalysis.js | |
| parent | b0dc9ba6372735708e34a42c81e20e29d44dbc76 (diff) | |
add a function comment to TextAnalyzer2; marking up it needs fixing
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 19 |
1 files changed, 19 insertions, 0 deletions
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 = [], |
