omegabytes / askTheDM

Alexa skill: Get basic info about DND spells, items, and rules
Other
15 stars 10 forks source link

Develop robust utterances #4

Closed omegabytes closed 7 years ago

omegabytes commented 7 years ago

some examples: -SpellsIntent what is the {attribute} of {spell} -SpellsIntent whats the {attribute} of {spell} -SpellsIntent whats {spell} {attribute}?

-SpellsIntent what does {spell} do -SpellsIntent whats {spell} do -SpellsIntent whats {spell}

-SpellsIntent how long does {spell} last

omegabytes commented 7 years ago

Some issues with how Alexa wants to accept input here. We can't use "what's" - it has to be "whats", and we can't use a possessive after a slot. So, if I wanted to ask "What's fireball's range?", I can't code SpellsIntent whats {Spell}'s {Attribute}. I have to save a second spell called "fireball's" in spells.js I'm looking around for a more elegant solution than doubling the file size with plural and possessive cases.

omegabytes commented 7 years ago

The first few links under NPM are libraries that create utterances. https://github.com/miguelmota/awesome-amazon-echo