Labs/Ubiquity/Parser Interface: Difference between revisions

Line 8: Line 8:
If you're looking for documentation on the language-specific parser plugin API, then you want [[Labs/Ubiquity/Ubiquity 0.1_Localization_Tutorial|Localizing Ubiquity to Your Language]].  If you're looking for documentation on the implementation of the current parser, you want [[Labs/Ubiquity/Parser_Documentation]].
If you're looking for documentation on the language-specific parser plugin API, then you want [[Labs/Ubiquity/Ubiquity 0.1_Localization_Tutorial|Localizing Ubiquity to Your Language]].  If you're looking for documentation on the implementation of the current parser, you want [[Labs/Ubiquity/Parser_Documentation]].


= Top-level functions and objects =
= MakeParserForLanguage =


The parser is wrapped in a JS object called NLParser.  (This object just acts as a namespace.)
The parser is wrapped in a JS object called NLParser.  (This object just acts as a namespace.)


It exposes the following top-level functions and objects:
It exposes just one top-level function, which is a factory called makeParserForLanguage:


  NLParser.makeParserForLanguage: function(languageCode, verbList, nounList,
  NLParser.makeParserForLanguage: function(languageCode, verbList, nounList,
1,007

edits