Labs/Ubiquity/Parser Documentation: Difference between revisions

no edit summary
No edit summary
Line 20: Line 20:


(Note: this simplistic way of getting the verb currently limits us to having only single-word command names.  It needs to be changed to support multi-word commands.)
(Note: this simplistic way of getting the verb currently limits us to having only single-word command names.  It needs to be changed to support multi-word commands.)
=== Looking for a Verb Match ===
=== If there is no verb match: Noun-First Suggestions ===
=== If the input string is empty ===
(Noun-first suggestion based on the selection)
=== Scoring the Quality of the Verb Match ===
=== Scoring the Frequency of the Verb Match ===
=== Meanwhile: Parsing the Arguments ===
(Also language-dependent)
=== Assigning input substrings to command arguments ===
To create PartiallyParsedSentences
=== Interpolating magic pronouns like "this" (or not) ===
=== Getting suggestions from NounTypes ===
This can be asynchronous
=== Rejecting parsings with invalid argument assignments ===
=== Turning PartiallyParsedSentences into FullyParsedSentences ===
=== Filling missing arguments with the selection ===
=== Filling missing arguments with the NounType's defaults ===
=== Scoring the Quality of the Noun Matches ===
=== Binding arguments to the FullyParsedSentences ===
=== Sorting the suggestions and returning them ===
1,007

edits