forked from micro222/chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
templates.txt
56 lines (45 loc) · 2 KB
/
templates.txt
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
// Template form
// sentence to be mached, function to be called if there's a match, number of the word to be passed to the function
// CLASS (is a subset of)
what is *,class_question, 3 // ex: what is coffee?
what are *, class_question, 3 // ex: what are raccoons?
what is a *,class_question,4 // what is a cow?
a * is a *, class_statement, 2, 5 // ex: a cat is an animal
// ATTRIBUTES-COLORS
what color is *, color_question, 4 // ex: what color is chocolate?
is * <color>, color_confirmation_question, 2, 3 // ex: is choclolate brown?
* is <color>, color_statement, 1, 3 // ex: chocolate is brown
// LOCATION
where is *, location_question, 3 // where is lucy?
// ABILITY
can * <action>, ability_question, 2, 3 // ex: can cows fly
* can <action>, ability_statement, 1, 3 // crows can fly
// RATING
do you like *, rating_question, 2, 4 // Example: do you like beer
does <creature> like *, rating_question, 2, 4 // Example: does fred like beer
I hate *, rating_statement, 1, 3, 0
I dont like *, rating_statement, 1, 4, 3
I like *, rating_statement, 1, 3, 7 // Example: i like beer
I love *, rating_statement, 1, 3, 10
<creature> hates *, rating_statement, 1, 3, 0 // Example: bob hates beer
<creature> doesn't'like *, rating_statement, 1, 4, 3
<creature> likes *, rating_statement, 1, 3, 7
<creature> loves *, rating_statement, 1, 3, 10
// MISC.
list <class>, list_question, 2 // Example: list action
what is my name, user_name_question
help, help
// Note: do a root check on all words within angle brackets
// Ignore this for now
// 1 class_question
// 2 class_statement
// 3 color_question
// 4 color_confirmation_question
// 5 color_statement
// 6 location_question
// 7 ability_question
// 8 ability_statement
// 9 rating_question
// 10 rating_statement
// 11 list_question
// 12 name_question