Taxonomy of a Rule
Throughout the Caster documentation, you will see references to
defaults. These all refer to parts of a Rule, typically a MappingRule or MergeRule. Both are structured the same way, as depicted below.
spec: This is what you say in order to invoke an
action: This is what happens when you speak a
spec. Examples include Dragonfly's Key, Text, and Function actions, or Caster's R, ContextSeeker, or AsynchronousAction actions.
command: The combination of a
action. In MappingRules or MergeRules, these are key/value pairs.
extra: A sub-component of a
spec. Examples include Dragonfly's Dictation, IntegerRef, and Choice, or Caster's IntegerRefST and Boolean.
default: A default value for an
extras in a
specshould have default values.
rule: Any of the classes which extend Dragonfly's Rule class, but most commonly, MappingRule and MergeRule.