declension / squeeze-alexa

Squeezebox integration for Amazon Alexa
GNU General Public License v3.0
59 stars 20 forks source link

Question about utterances #69

Closed chatainsim closed 6 years ago

chatainsim commented 6 years ago

Hello,

I have a question about utterances.txt translation.

Regarding PlayRandomMixIntent part, in french, we can call for blues or jazz like this: du blues et du jazz But for pop or country we say: de la pop et de la country

We also have: de l'acide jazz

Is it possible to define a multiple possibility like [du|de la|de l'] in the utterances.txt file ?

declension commented 6 years ago

Is it possible to define a multiple possibility like [du|de la|de l'] in the utterances.txt file ?

No I don't think so, but you can just define lots and lots in the file

e.g.

du {genre}
de la {genre}

and I've just noticed this is exactly what you did :)

Anyway, it's not worth thinking about the text file any more, as the future is v1 Interactions, which have the utterances in the JSON file. See the new intents.json.