forked from alexa-samples/skill-sample-nodejs-buttons-trivia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
questions.js
175 lines (171 loc) · 5.98 KB
/
questions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
'use strict';
/*
* Copyright 2018 Amazon.com, Inc. and its affiliates. All Rights Reserved.
* Licensed under the Amazon Software License (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
* http://aws.amazon.com/asl/
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/**
* Questions library
*
* Use this file to create your own set of questions.
*
* Object properties:
* index: The index of the question in this list
* question: The question you want Alexa to ask
* answers: The list of available answers
* correct_answer: The correct answer to the question
*
* When adding or updating questions and answers, you must take the list of all values
* in each of the 'answers' arrays for all questions and add them to a custom slot
* in your skill called 'answers'.
*
* The 'answers' custom slot is be mapped to a couple of intents in the interaction model.
* One intent, named 'AnswerOnlyIntent', contains only the slot, by itself, in order
* to maximize the accuracy of the model.
*
* For example:
* AnswerOnlyIntent {answers}
*
* The other intent, 'AnswerQuestionIntent', provides more complex speech patterns
* to match other utternaces users may include with their answers.
*
* For example:
* AnswerQuestionIntent is it {answers}
* AnswerQuestionIntent it is {answers}
* AnswerQuestionIntent the answer is {answers}
* AnswerQuestionIntent I think the answer is {answers}
*
* See model file at models/en-US.json for a complete example.
*/
module.exports = Object.freeze({
questions_en_US: [
{
index: 1,
question: 'What is the name for a group of lions?',
answers: ['pack', 'pride', 'den', 'frat'],
correct_answer: 'pride'
},
{
index: 2,
question: 'What is the only type of bear native to South America?',
answers: ['brown bear', 'kodiac', 'giant panda', 'spectacled bear'],
correct_answer: 'spectacled bear'
},
{
index: 3,
question: 'What type of animal is a seahorse?',
answers: ['crustacean', 'arachnid', 'fish', 'shell'],
correct_answer: 'fish'
},
{
index: 4,
question: 'What color are zebras?',
answers: ['white with black stripes', 'black with white stripes'],
correct_answer: 'black with white stripes'
},
{
index: 5,
question: 'What is the fastest water animal?',
answers: ['porpoise', 'sailfish', 'flying fish', 'tuna'],
correct_answer: 'sailfish'
},
{
index: 6,
question: 'What is the only venomous snake found in Britain?',
answers: ['cobra', 'coral snake', 'copperhead', 'adder'],
correct_answer: 'adder'
},
{
index: 7,
question: 'What is a female donkey called?',
answers: ['joey', 'jenny', 'janet'],
correct_answer: 'jenny'
},
{
index: 8,
question: 'What land mammal other than man has the longest lifespan?',
answers: ['blue whale', 'dolphin', 'elephant', 'orangutan'],
correct_answer: 'elephant'
},
{
index: 9,
question: 'Eskimos call what kind of creature a nanook?',
answers: ['penguin', 'narwhal', 'polar bear', 'caribou'],
correct_answer: 'polar bear'
},
{
index: 10,
question: 'Lupus is the Latin name for what animal?',
answers: ['dog', 'cat', 'wolf', 'fox'],
correct_answer: 'wolf'
}
],
questions_en_GB: [
{
index: 1,
question: 'What is the name for a group of lions?',
answers: ['pack', 'pride', 'den', 'frat'],
correct_answer: 'pride'
},
{
index: 2,
question: 'What is the only type of bear native to South America?',
answers: ['brown bear', 'kodiac', 'giant panda', 'spectacled bear'],
correct_answer: 'spectacled bear'
},
{
index: 3,
question: 'What type of animal is a seahorse?',
answers: ['crustacean', 'arachnid', 'fish', 'shell'],
correct_answer: 'fish'
},
{
index: 4,
question: 'What color are zebras?',
answers: ['white with black stripes', 'black with white stripes'],
correct_answer: 'black with white stripes'
},
{
index: 5,
question: 'What is the fastest water animal?',
answers: ['porpoise', 'sailfish', 'flying fish', 'tuna'],
correct_answer: 'sailfish'
},
{
index: 6,
question: 'What is the only venomous snake found in Britain?',
answers: ['cobra', 'coral snake', 'copperhead', 'adder'],
correct_answer: 'adder'
},
{
index: 7,
question: 'What is a female donkey called?',
answers: ['joey', 'jenny', 'janet'],
correct_answer: 'jenny'
},
{
index: 8,
question: 'What land mammal other than man has the longest lifespan?',
answers: ['blue whale', 'dolphin', 'elephant', 'orangutan'],
correct_answer: 'elephant'
},
{
index: 9,
question: 'Eskimos call what kind of creature a nanook?',
answers: ['penguin', 'narwhal', 'polar bear', 'caribou'],
correct_answer: 'polar bear'
},
{
index: 10,
question: 'Lupus is the Latin name for what animal?',
answers: ['dog', 'cat', 'wolf', 'fox'],
correct_answer: 'wolf'
}
]
});