summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
AgeCommit message (Collapse)Author
2014-10-13Fixes #95 no double text in central node of star graphPrototypeAlon Levy
2014-10-12Fixes #85 - compare using lower caseAlon Levy
The whole lower case thing is a hack. We should separete id and name. But right now it seems to be holding.
2014-10-12textanalysis: allow more than one letter changes between calls to ↵Alon Levy
textanalysis, firefox sometimes lags
2014-10-12Fixes #89Alon Levy
2014-10-12textanalysis: fix logic of allowed renamesAlon Levy
2014-10-09Revert "Allow chainlink when no last node is there"Alon Levy
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.
2014-10-09Allow chainlink when no last node is thereAlon Levy
Fixes #86 Well, almost - the center node contains the 'a and b and c' (with extra spaces too). node test_analyzer.js '#a and #b and #c are cool' digraph { BUBBLE; a; b; c; "new node"; "a and b and c are cool"; a -> "a and b and c are cool"; b -> "a and b and c are cool"; c -> "a and b and c are cool"; }
2014-10-08textanalysis: use and instead of nested ifs (refactor)Alon Levy
2014-10-08Fixes #85Alon Levy
This is more of #49 basically, just for a more complex sentence. I've kept the flow that we have, but augmented the graph change check (myGraph.compareSubset) and introduced some helper functions for sets on the way.
2014-10-08textanalysis: for a chainlink edit trim the complete sentenceAlon Levy
2014-10-07rhizicore: remove debug printAlon Levy
2014-10-07Fixes #49: forgot link changesAlon Levy
2014-10-07rhizicore: don't move graph when only changing link or node textAlon Levy
Fixes #49 Note about solution: in general we need to find out whether the graph from the new text (NewVertices, NewLinks) is homologous to the graph from the old text (OldVertices, OldLinks). The implemented solution only checks an easier case, where there is a single renamed vertex. A better solution to do later: - have textanalysis have state - have textanalysis return the difference from the last state: nodes added nodes deleted nodes changed - plus for bonus refactor all the editing functions (edit* in myGraph)
2014-10-07textanalysis: fix indentationAlon Levy
2014-10-07textanalysis: workaround undefined or double link additionAlon Levy
2014-10-07textanalysis: group vars at start of functionAlon Levy
2014-09-30textanalysis: remove trailing whitespace from link namesAlon Levy
2014-09-29textanalysis: fold a too long lineAlon Levy
2014-09-29Fixes #75: don't spew undefines in linktext.Alon Levy
TODO - code that doesn't make me choke up with tears
2014-09-29Fixes #73: pre first node text missing spacesAlon Levy
2014-09-28textanalysis: move graph touching function to non ui partAlon Levy
2014-09-28s/TextAnalyser2/textAnalyser2/ plus use function as varsAlon Levy
2014-09-23Fixes #50: drop parenthesis for prefix including sentencesAlon Levy
Previously: prefix #a does #b => ((a, b), [(a, b, "does (prefix)")]) now: => ((a, b), [(a, b, "prefix #a does #b")])
2014-09-23add a function comment to TextAnalyzer2; marking up it needs fixingAlon Levy
2014-09-23fix a #50 noticed error (introduced in af27835b)Alon Levy
2014-09-21Fixes #41: conjugation/connector only sentences keep their linksAlon Levy
2014-09-21textanalysis: drop two noisy logs introduced a few commits agoAlon Levy
2014-09-21textanalysis: multiple changes to autocompleteAlon Levy
1. move the sugg variable to textanalysis.js instead of the ui part 2. use a callback for the autocomplete widget (it supports three options: array, string as url for a json returning service, or callback) 3. use a dictionary instead of an array to keep the list of suggestions. We iterate on the dictionary instead of using a Trie or some other datastructure in the callback. But the dictionary avoids iteration when adding a word. Overall a loss in performance, but not noticeable. Googling / memory suggests a Trie is what we want here, but I'm postponing that for later. See: http://ejohn.org/blog/javascript-trie-performance-analysis
2014-09-21scripts/textanalysis.js cleanup: put switch & cases on same columnAlon Levy
2014-08-20textanalysis & textanalysis-ui split completeAlon Levy
2014-08-19textanalysis: remove usage of $Alon Levy
2014-08-19start breaking textanalysis to logic and uiAlon Levy
2014-08-19textanalysis: move two globals into textanalysis, only used by this function ↵Alon Levy
and reset early
2014-08-19textanalysis.js: some indentation and one if-bool rewriteAlon Levy
2014-08-19TextAnalyzer2: remove unused variableAlon Levy
2014-08-19textanalysis: remove unused variableAlon Levy
2014-08-19textanalysis: make suggestions start out empty instead of an unrelevant listAlon Levy
2014-08-18recording: record keystrokes. no strokes recorded for link renamesAlon Levy
2014-08-13Issue #40Owen
2014-08-13Issue #34Owen
2014-08-13Issue #35Owen
2014-08-13issue #36Owen
2014-08-13Issue #38Owen
2014-08-13Issue #31Owen
2014-08-10more 'use strict' and fallout handlingAlon Levy
Just defining some variables instead of them becoming properties on the global object Some whitespace fixes too.
2014-08-08Redone AND connectors (#issue 27)Owen
2014-08-08Issue #14Owen
2014-08-08Fixed 3 node star case bugOwen
2014-08-08Issue #25Owen
2014-08-07Issue #26Owen
nodes didn't appear because the type selection index was undefined in the 0 to N_1 loop