summaryrefslogtreecommitdiff
path: root/scripts/textanalysis.js
AgeCommit message (Collapse)Author
2014-11-11use non-named module definitionLV-426
2014-11-11new node type for link last entry should be selectedType; Fixes #130Alon Levy
2014-11-11textanalysis: reduce APIAlon Levy
textanalysis exposes the current selected type plus functions to increment or decrement it, hides the typeindex and nodetypes.
2014-11-11textanalysis: factor out selectedTypeAlon Levy
2014-11-11add some console bug logs where preconditions are wrong (oh, eiffel..)Alon Levy
2014-11-11insensitive autocompile; Fixes #133Alon Levy
2014-11-10graph/textanalysis.ui: lastnode is now the last added node (fixes #124)Alon Levy
2014-11-09scripts/model/graph.js merge resolutionLV-426
2014-11-09commit diff_set upon sentence analysis:LV-426
- backend_commit - allows client accumulating changes & select better commit timing
2014-11-09code standard: use a single var at start of functions (just one big case) ↵Alon Levy
and some whitespace
2014-11-09s/textAnalyser2/textAnalyser/Alon Levy
2014-11-03Fixes #119Alon Levy
It's a bit ugly. In that it uses the explicit string 'and' to avoid creating those links. But that was the wording of the request. In general we are missing an AST step. That would let us switch between '#' and ' ' much more cleanly.
2014-11-03change id to be distinct from nameAlon Levy
TODO: introduce a Node class split from the Graph. TODO: use a GUID and not just an incrementing number (trivial change).
2014-10-29fix multiple warnings from zed (zedapp.org)Alon Levy
css: use 0 instead of 0px (0 doesn't need a unit) fallback rgb(r,g,b) for rgba code: missing semicolons don't use initial caps for a function name unused variables
2014-10-28textanalysis{,.ui}: fix remaining globals, use strictAlon Levy
2014-10-27Fixes #116 - no star graph for a single nodeAlon Levy
2014-10-27textanalysis: s/abnormalGraph/starGraph/Alon Levy
2014-10-26textanalysis: protect from temp nodes on finalize (all these patches - need ↵Alon Levy
to rewrite that and heavily test it)
2014-10-26textanalysis (#86): make star case avoid an empty string that was causing a ↵Alon Levy
chainlink temp node created from ''
2014-10-26s/const/var/ ES6 defines const, not there yetAlon Levy
2014-10-26Fixes #86Alon Levy
2014-10-26textanalysis: use constsAlon Levy
2014-10-26textanalysis: whitespace fix (same line touched by last patch)Alon Levy
2014-10-26remove extra spaces around 'and' nodesAlon Levy
2014-10-26Fixes #114Alon Levy
In * case sentence - Description contains quote marks for multiple worded sentence
2014-10-26textanalysis: factor out tokenizeAlon Levy
2014-10-24fixes #106Alon Levy
broken by define addition (require.js)
2014-10-20introduce require.js and rewrite testsAlon Levy
Yes, I'm being lazy. The purpose of require.js is to allow writing modules, i.e. individual smaller then the whole files with clear dependencies. This is achieved by using a new api provided by require.js: define, require, requirejs Read more at [requirejs] (http://requirejs.org) Tests have been rewritten to work correctly with require.js; they still use jsdom. Test output is now stored in the repository, all tests are run via run_tests.js; This is a hack - once a good harness (with assertions, suites - unittest like) presents itself it will be used. Hidden here is also using FileSaver for history saving, so history is saved to history.json instead to a random name. Plus dropping some dead code.
2014-10-19text_analyzer: drop unused verb variableAlon Levy
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