Item¶
Definition¶
<item>
The grammar entry of items. Each item contains a separate phrase that can be used by the system or the user to speak about the parent element.
Parents¶
Children¶
Behaviour¶
In the grammar, <item> is the child of the <one-of> tag. It has no attributes and can contain <slot> tags.
Each <item> tag contains one phrase that can be used by the system or user to speak about the parent element that it belongs to. This parent element could be an <action>, a <question>, an <answer>, a <report>, or an <individual>.
<item> tags can also contain a <vp> tag, which specifies the verb of an expression in different grammatical moods and inflected forms for use in Grammatical Framework to generate grammatical forms. See <vp> for further information.
Examples¶
Action example with three types of <item> tags: basic, with <slot>, and with <vp>.¶
<action name="set_alarm">
<one-of>
<item>
<vp>
<infinitive>set</infinitive>
<imperative>set</imperative>
<ing-form>setting</ing-form>
<object>the alarm</object>
</vp>
</item>
<item>set alarm</item>
<item>set the alarm to <slot predicate="time_to_set" type="individual"/></item>
</one-of>
</action>
Last update: June 18, 2020