alexa-js / alexa-app-server

An Alexa app server for alexa-app.
MIT License
401 stars 116 forks source link

Utterance generation bug #25

Closed mseminatore closed 7 years ago

mseminatore commented 7 years ago

I am filing this here but also cross-filed against the alexa-app. Please feel free to close out one of them.

@matt-kruse There seems to be a bug in the server generation of utterance permutations. For example the following:

"utterances": ['{to|} set temperature to {64-80|number}']

generates utterances as follows:

setTempsIntent  to set temperature to {sixty four|number}
setTempsIntent  set temperature to {sixty five|number}
setTempsIntent  to set temperature to {sixty six|number}
setTempsIntent  set temperature to {sixty seven|number}
...

but what I believe should be generated is:

setTempsIntent  to set temperature to {sixty four|number}
setTempsIntent  set temperature to {sixty four|number}
setTempsIntent  to set temperature to {sixty five|number}
setTempsIntent  set temperature to {sixty five|number}
setTempsIntent  to set temperature to {sixty six|number}
setTempsIntent  set temperature to {sixty six|number}
setTempsIntent  to set temperature to {sixty seven|number}
setTempsIntent  set temperature to {sixty seven|number}
...
mseminatore commented 7 years ago

@matt-kruse OK I've confirmed this does not lie with the alexa-server but rather in how alexa-app uses the alexa-utterances package. Closing this out.