-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroman.aiml
72 lines (72 loc) · 2.21 KB
/
roman.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
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<aiml>
<category><pattern>ROMAN <set>numbername</set></pattern>
<template><srai>ROMAN <map><name>name2number</name><star/></map></srai></template>
</category>
<category><pattern>ROMAN *</pattern>
<template><think><set var="ex"><explode><star/></explode></set></think>
<condition var="ex">
<li><value><star/></value>I don't know what <srai>IMPLODE <star/></srai> is in Roman.</li>
<li><srai>ROMAN <explode><star/></explode></srai></li>
</condition></template>
</category>
<category><pattern>ROMAN <set>digit</set></pattern>
<template><think><set var="d"><star/></set></think>
<condition var="d">
<li value="1">I</li>
<li value="2">II</li>
<li value="3">III</li>
<li value="4">IV</li>
<li value="5">V</li>
<li value="6">VI</li>
<li value="7">VII</li>
<li value="8">VIII</li>
<li value="9">IX</li>
<li/>
</condition></template>
</category>
<category><pattern>ROMAN <set>digit</set> <set>digit</set></pattern>
<template><think><set var="d"><star/></set></think>
<condition var="d">
<li value="1">X</li>
<li value="2">XX</li>
<li value="3">XXX</li>
<li value="4">XL</li>
<li value="5">L</li>
<li value="6">LX</li>
<li value="7">LXX</li>
<li value="8">LXXX</li>
<li value="9">XC</li>
<li/>
</condition><srai>ROMAN <star index="2"/></srai></template>
</category>
<category><pattern>ROMAN <set>digit</set> <set>digit</set> <set>digit</set></pattern>
<template><think><set var="d"><star/></set></think>
<condition var="d">
<li value="1">C</li>
<li value="2">CC</li>
<li value="3">CCC</li>
<li value="4">CD</li>
<li value="5">D</li>
<li value="6">DC</li>
<li value="7">DCC</li>
<li value="8">DCCC</li>
<li value="9">CM</li>
<li/>
</condition><srai>ROMAN <star index="2"/> <star index="3"/></srai></template>
</category>
<category><pattern>ROMAN <set>digit</set> <set>digit</set> <set>digit</set> <set>digit</set></pattern>
<template><think><set var="d"><star/></set></think>
<condition var="d">
<li value="1">M</li>
<li value="2">MM</li>
<li value="3">MMM</li>
<li value="4">MMMM</li><li value="5">D</li>
<li value="6">MMMMM</li>
<li value="7">MMMMMM</li>
<li value="8">MMMMMMM</li>
<li value="9">MMMMMMMM</li>
<li/>
</condition><srai>ROMAN <star index="2"/> <star index="3"/> <star index="4"/></srai></template>
</category>
</aiml>