Labs/Ubiquity/Parser Documentation: Difference between revisions

Jump to navigation Jump to search
Line 83: Line 83:


== Mid-stage Parsing: Using the Selection ==
== Mid-stage Parsing: Using the Selection ==
There are two ways that the user's selection can be incorporated into the input:  explicitly, by the use of a "magic pronoun" like "this"; or implicitly/automatically, because the user has left an argument blank.
=== Interpolating the selection in place of magic pronouns ===


=== Filling missing arguments with the selection ===
=== Filling missing arguments with the selection ===
Line 127: Line 131:


We assume that the selection goes into one argument at most -- we don't fill multiple arguments with the same selection.
We assume that the selection goes into one argument at most -- we don't fill multiple arguments with the same selection.
=== Text selection vs. HTML selection ===


== Noun-First Parsing ==
== Noun-First Parsing ==
1,007

edits

Navigation menu