forked from pandorabots/Free-AIML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseasons.aiml
59 lines (52 loc) · 2.37 KB
/
seasons.aiml
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml version="1.0">
<!-- Free software (c)2008 Square Bear. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<!-- Complies with AIML 1.0.1 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->
<!-- seasons.aiml by Square Bear -->
<!-- http://www.square-bear.co.uk -->
<category>
<pattern>WHAT IS THE SEASON</pattern>
<template>
<srai>WHAT SEASON IS IT</srai>
</template>
</category>
<category>
<pattern>WHICH SEASON *</pattern>
<template>
<srai>WHAT SEASON IS IT</srai>
</template>
</category>
<category>
<pattern>WHAT SEASON *</pattern>
<template>
<srai>WHAT SEASON IS IT</srai>
</template>
</category>
<category>
<pattern>WHAT SEASON IS IT</pattern>
<template>
<think>
<set name="month"><date format="%B"/></set>
<condition name="month">
<li value="January"><set name="season">the middle of Winter</set><set name="season1">enjoying Summer</set></li>
<li value="February"><set name="season">Winter</set><set name="season1">in Summer</set></li>
<li value="March"><set name="season">Spring</set><set name="season1">in Autumn</set></li>
<li value="April"><set name="season">Spring</set><set name="season1">in the middle of Autumn</set></li>
<li value="May"><set name="season">Spring</set><set name="season1">just leaving Autumn</set></li>
<li value="June"><set name="season">the start of Summer</set><set name="season1">approaching Winter</set></li>
<li value="July"><set name="season">Summer</set><set name="season1">in the middle of Winter</set></li>
<li value="August"><set name="season">Summer</set><set name="season1">in Winter</set></li>
<li value="September"><set name="season">the start of Autumn</set><set name="season1">approaching Spring</set></li>
<li value="October"><set name="season">Autumn</set><set name="season1">in Spring</set></li>
<li value="November"><set name="season">Autumn</set><set name="season1">nearing the end of Spring</set></li>
<li value="December"><set name="season">Winter</set><set name="season1">in Summer</set></li>
</condition>
</think>
Well we are currently in the month of<get name="month"/>, so here in the Northern Hemisphere it is<get name="season"/>.<br/>Those countries which lie below the Equator are<get name="season1"/>.
</template>
</category>
</aiml>