1,007
edits
| 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]]. | ||
= | = 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 | 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, | ||
edits