- From: Yahn Teisseire <yahn@ukibi.com>
- Date: Mon, 28 Oct 2002 18:23:33 +0100
- To: "Voice w3c" <www-voice@w3.org>
- Message-ID: <12b701c27ea6$bf18a710$e9020a0a@paris.ukibi.com>
Hi,
I have the following grammar :
<grammar root="command">
<rule id="command" scope="public">
<item><ruleref uri="#action"/></item>
<item><ruleref uri="#contact"/></item>
</rule>
<rule id="action">
<one-of>
<item>call<tag>action="call"</tag></item>
<item>find<tag>action="find"</tag></item>
<item>search<tag>action="spell"</tag></item>
</one-of>
</rule>
<rule id="contact">
<one-of>
<item>john<tag>contact="john"</tag></item>
<item>georges<tag>contact="georges"</tag></item>
<item>sandra<tag>contact="sandra"</tag></item>
</one-of>
</rule>
</grammar>
I'd like to know if it's possible to write 2 <nomatch> rules :
- one to say "Sorry this contact doesn't exists" if the user said for example "call peter"
- one to say "Sorry i don't understand" if the user said a real un-understable sentance.
because actually, i have the message "Sorry i don't understand" even if the rule "action" matches something, but i'm unable to catch it.
Thanks for your help,
Yahn Teisseire
Received on Monday, 28 October 2002 12:23:04 UTC