intent-utterance-expander
0.0.9 • Public • Published intent-utterance-expander
Expand custom utterance slots of phrases, to use with Alexa Skills Kit Sample Utterances.
Demo
https://lab.miguelmota.com/intent-utterance-expander
Install
npm install intent-utterance-expander
Usage
const intentUtteranceExpander = require('intent-utterance-expander');
console.log(intentUtteranceExpander(`(hello|hi) (|mighty) world`));
console.log(intentUtteranceExpander([`hello (|mighty) world`, `(great|good) day`]);
console.log(intentUtteranceExpander(`(when is|when's) the (|next) Dodger's (|baseball) game?`));
console.log(intentUtteranceExpander(`(today is|today's) (|a) {(monday|tuesday)|day}`));
Test
License
MIT
Package Sidebar
Install
npm i intent-utterance-expander
Weekly Downloads