308
edits
| Line 110: | Line 110: | ||
=step 5: anaphora substitution= | =step 5: anaphora substitution= | ||
{{Ubiquity Parser infobox | |||
|input = <code>Query._possibleParses</code> | |||
|output = <code>Query._possibleParses</code> (updated with additional parses) | |||
|uses = <code>Query.context, Parser.substitute(), Parser._patternCache.anaphora</code> | |||
|configurable = <code>Parser.anaphora</code>}} | |||
Each language has a set of "anaphora" or "magic words", like the English <code>["this", "that", "it", "selection", "him", "her", "them"]</code>. This step will search for any occurrences of these in the parses' arguments and make substituted alternatives, if there is a selection text. | Each language has a set of "anaphora" or "magic words", like the English <code>["this", "that", "it", "selection", "him", "her", "them"]</code>. This step will search for any occurrences of these in the parses' arguments and make substituted alternatives, if there is a selection text. | ||
edits