Lexicon

Lexicon

Lexicon is directed graph (triple store) between morphemes and their allomorphs and glosses. It allows the search to index the corpus to find datum, it is also used by the default glosser to guess glosses based on what the user inputs on line 1 (utterance/orthography).

Constructor

new Lexicon()

Source:
Lexicon is directed graph (triple store) between morphemes and their allomorphs and glosses. It allows the search to index the corpus to find datum, it is also used by the default glosser to guess glosses based on what the user inputs on line 1 (utterance/orthography).

Extends

Members

(static) lexicon_nodes_mapReduce :function

Source:
[lexicon_nodes_mapReduce description]
Type:
  • function

(static) lexicon_precedence_context_mapReduce :function

Source:
[lexicon_nodes_mapReduce description]
Type:
  • function

addOrMergeDeprecated

Source:
Adds a node to the lexicon, if an equivalent node (as defined by the equals function) is found, it merges the new one into the existing one.

buildLexiconFromLocalStorage

Source:
Overwrite/build the lexicon from local storage if it is there.

fetch

Source:
Overwrite/build the lexicon from the corpus server if it is there, saves the results to local storage so they can be reused offline. OLD url /_design/deprecated/_view/lexicon_create_tuples?group=true New url _design/lexicon/_view/morphemesPrecedenceContext?group=true&limit=400

generatePrecedenceForceDirectedRulesJsonForD3

Source:
Takes as a parameters an array of this.entryRelations which came from CouchDB precedence rule query. Example Rule: {"key":{"x":"@","relation":"precedes","y":"aqtu","context":"aqtu-nay-wa-n"},"value":2}

sanitizeStringForPrimaryKey

Source:
Cleans a value to become a primary key on an object (replaces punctuation with underscore) (replaces the default Collection.sanitizeStringForPrimaryKey method which scrubs unicode from the primary keys)

sorted :Object

Source:
Lexicon find will be faster but insert will be slower
Type:
  • Object

updateAvailableLexicalRelations

Source:
Add any new reltions to the list that the user can choose from