summaryrefslogtreecommitdiff
path: root/src/client/textanalysis.js
AgeCommit message (Collapse)Author
2015-05-12client/textanalysis: report sentence meta to serverAlon Levy
2015-05-04client/textanalysis: use type from current cursor selection for a new node. ↵Alon Levy
Fixes #520
2015-05-04client: update selected type prompt based on cursorAlon Levy
2015-05-04client: show node titles, not internal node types. fix #537Alon Levy
2015-04-10client: domain type_attributes are now a list for orderingAlon Levy
First type is default, and order is for shift-up/down selection, filter menu and type drop down in properties menu (so, basically everywhere).
2015-04-10client: hack to allow collaborator/person to be default (will fix today)Alon Levy
2015-04-09textanalysis.js: temporary fix: update default_nodetype for leap instanceLV-426
2015-03-08client/completion: support links as wellAlon Levy
the suggestions from textanalysis now come as a dictionary with {nodes: {name: id}, links: {name: id}} (before it was a single dictionary, {name:id}) And the options bus for the textanalyser and search completion have been updated accordingly. textanalyser also takes into account the cursor position to determine which of the option dictionaries to use.
2015-03-08client/textanalysis: add element_at_position__is_linkAlon Levy
2015-03-07client: fix phantom type now that we have 4 types and not 5. Fixes #362Alon Levy
2015-03-07client: return default node type to personAlon Levy
2015-03-07client: move nodetypes from consts to model/typesAlon Levy
2015-03-03textanalysis: fix multiple same names in sentence (a q b q c a => triangle)Alon Levy
2015-03-02util: add text selection and functional utils for later red&blue inputAlon Levy
2015-03-01client/text_analysis: provide function to retrieve existing_nodesAlon Levy
2015-03-01client: move obj_take to utilAlon Levy
2015-02-27client: rename separator_symbol to separator_string and move to rz_configAlon Levy
2015-02-25client: selection tools: add link nodes in fanAlon Levy
2015-02-24client/textanalysis: drop star case. Fixes #330Alon Levy
This fixes the "remove chainlink" (aka star case) part of #330. The rest of #330, i.e. supporting "#1 is #2 not #3" to create two links, now with double spaces, is already fixed by textanalysis refactoring.
2015-02-24client/textanalysis: more accurate comments, s/edge/verb/Alon Levy
2015-02-24client: set double spaces as separator instead of hashAlon Levy
2015-02-24client/textanalysis: fix double spaceAlon Levy
handle correctly node separator containing spaces, of which a double space is a special case.
2015-02-24client/textanalysis: fix empty string caseAlon Levy
2015-02-24client/textanalysis rewriteAlon Levy
I considered breaking this into multiple parts but it is too much work and not worth it at this point. Logically there are two parts: a bunch of support functions, most of them are generic (list_* and obj_*, subsets) plus a few special functions: tokens_to_graph_elements and groups_to_thirds "thirds" is a list of objects representing either a node or a link with start, end and token. The token is the node/link name, the start and end are used to later lookup the node based on cursor position (for type changing from the command line). groups is just an intermediate step where each individual token (space separates them, except when in quotes) is still a separate entry in the list. The logic of textanalysis remains: - prefix (text before the first node) means the first link is the complete sentence - starCase ramains (creating a single center node of the complete sentence and linking everything to it with the 'chained' link name) - and logic is updated to include multiple and sequences (the simple case remains for a single stretch of ands). Simplifications of the code: - single place calls for __addNode and __addLink - no more orderStack, instead we have a thirds array of node,link pairs flattened to a single list, each with start/end in the sentence (this takes into account the hash mark).
2015-02-24client/textanalysis: add new node_token module global variable and use in ↵Alon Levy
tokenize
2015-02-24jshint: client/textanalysis: remove dead code (we create suggestions from ↵Alon Levy
scratch on every update)
2015-02-24jshint: client/textanalysis: various lint fixesAlon Levy
2015-02-24jshint: client/textanalysis: move use strict to function to avoid stricting ↵Alon Levy
everything
2015-02-23client/textanalysis: code style for and_connectAlon Levy
2015-02-23client/textanalysis: s/token_set_new_node_names/node_names/ (and _links)Alon Levy
2015-02-11client/textanalysis: fix possible usage of _get_lastnode when undefinedAlon Levy
2015-02-11client/textanalysis: sanitize quotes, fixes #293Alon Levy
2015-01-27client: remove whitespace around tokens: Fixes #292Alon Levy
2015-01-21Fixes #289: show completions in original caseAlon Levy
2015-01-21client: Fixes #290 use lower case name hashAlon Levy
2015-01-13client: drop and links always; fixes #276Alon Levy
2015-01-13client: move NEW_NODE_NAME to consts, use everywhereAlon Levy
2015-01-13textanalysis: only send new nodes. Fixes #260Alon Levy
2015-01-13client/graph: find_node__* default to recursion but optionalAlon Levy
2015-01-13client: textanalysis: fix type changing. Fixes #262Alon Levy
2015-01-13client/textanalysis: use constant for 'new node'Alon Levy
2015-01-12client: don't keep quotes in node name: Fixes #258Alon Levy
2015-01-11client/textanalysis: fix node type change on tab to use cursor correctly ↵Alon Levy
(still cannot change type of chained node during editing)
2015-01-11client/textanalysis: move tokenize into moduleAlon Levy
2015-01-07client/textanalysis: fix Tab setting on new nodes. Cannot change types of ↵Alon Levy
existing nodes through text analysis (regression, not sure if bad)
2015-01-06client: fix tab switching; move to new tokenize implementation (not strictly ↵Alon Levy
""right""
2015-01-06client/textanalysis: use new_tokenizeAlon Levy
2015-01-06client: wip: get tab working againAlon Levy
2015-01-06client/analyzeSentence: use specAlon Levy
2015-01-06textanalysis: new_tokenise: return node start/endAlon Levy