Skip to content

Commit 02f73e1

Browse files
authored
Merge pull request #2 from swagfin/feature/added-sample-files
chore: added sample files in XChatBot
2 parents 4ba394d + c0ada4d commit 02f73e1

File tree

13 files changed

+785
-1
lines changed

13 files changed

+785
-1
lines changed

Aiml.NET.XChatBot/Aiml.NET.XChatBot.csproj

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,56 @@
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
</PropertyGroup>
77

8+
<ItemGroup>
9+
<None Remove="aiml\helloworld.aiml" />
10+
<None Remove="botpredicates.json" />
11+
<None Remove="config.json" />
12+
<None Remove="denormal.json" />
13+
<None Remove="gender.json" />
14+
<None Remove="maps\tomorrow.txt" />
15+
<None Remove="normal.json" />
16+
<None Remove="person.json" />
17+
<None Remove="person2.json" />
18+
<None Remove="predicates.json" />
19+
<None Remove="sets\weekday.txt" />
20+
</ItemGroup>
21+
22+
<ItemGroup>
23+
<Content Include="aiml\helloworld.aiml">
24+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
25+
</Content>
26+
<Content Include="botpredicates.json">
27+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
28+
</Content>
29+
<Content Include="config.json">
30+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
31+
</Content>
32+
<Content Include="denormal.json">
33+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
34+
</Content>
35+
<Content Include="gender.json">
36+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
37+
</Content>
38+
<Content Include="maps\tomorrow.txt">
39+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
40+
</Content>
41+
<Content Include="normal.json">
42+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
43+
</Content>
44+
<Content Include="person.json">
45+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
46+
</Content>
47+
<Content Include="person2.json">
48+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
49+
</Content>
50+
<Content Include="predicates.json">
51+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
52+
</Content>
53+
<Content Include="sets\weekday.txt">
54+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
55+
</Content>
56+
</ItemGroup>
57+
858
<ItemGroup>
959
<ProjectReference Include="..\Aiml.NET\Aiml.NET.csproj" />
1060
</ItemGroup>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version='1.0' encoding='UTF-8'?>
2+
<aiml version='2.0'>
3+
<category>
4+
<pattern>HELLO ^</pattern>
5+
<template>Hello world!</template>
6+
</category>
7+
<category>
8+
<pattern>HI ^</pattern>
9+
<template>Hi There!</template>
10+
</category>
11+
</aiml>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "Example Bot",
3+
"version": "1.0"
4+
}

Aiml.NET.XChatBot/config.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"DefaultPredicate": "unknown",
3+
"DefaultMap": "unknown",
4+
"DefaultHistory": "nil",
5+
"DefaultListItem": "nil",
6+
"DefaultTriple": "nil",
7+
"DefaultWildcard": "nil",
8+
"Splitters": [ ".", "!", "?", ";", "", "", "" ],
9+
"HistorySize": 16,
10+
"DefaultResponse": "I have no answer for that.",
11+
"Timeout": 10000,
12+
"TimeoutMessage": "That query took too long for me to process.",
13+
"RecursionLimit": 50,
14+
"RecursionLimitMessage": "Too much recursion in AIML.",
15+
"LogLevel": "Chat",
16+
"LogRecursionLimit": 2,
17+
"AimlDirectory": "aiml",
18+
"LogDirectory": "logs",
19+
"SetsDirectory": "sets",
20+
"MapsDirectory": "maps",
21+
//"Locale": "en-AU",
22+
"LearnfFile": "aiml/learnf.aiml",
23+
"UnbindPredicatesWithDefaultValue": false
24+
}

Aiml.NET.XChatBot/denormal.json

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
[
2+
[ " dot com ", ".com " ],
3+
[ " dot org ", ".org " ],
4+
[ " dot edu ", ".edu " ],
5+
[ " dot gov ", ".gov " ],
6+
[ " dot uk ", ".uk " ],
7+
[ " dot net ", ".net " ],
8+
[ " dot ca ", ".ca " ],
9+
[ " dot de ", ".de " ],
10+
[ " dot jp ", ".jp " ],
11+
[ " dot fr ", ".fr " ],
12+
[ " dot au ", ".au " ],
13+
[ " dot us ", ".us " ],
14+
[ " dot ru ", ".ru " ],
15+
[ " dot ch ", ".ch " ],
16+
[ " dot it ", ".it " ],
17+
[ " dot nl ", ".nl " ],
18+
[ " dot se ", ".se " ],
19+
[ " dot no ", ".no " ],
20+
[ " dot es ", ".es " ],
21+
[ " dot mil ", ".mil " ],
22+
[ " dot co ", ".co " ],
23+
[ " dot ac ", ".ac " ],
24+
[ " are not ", " aren't " ],
25+
[ " can not ", " can't " ],
26+
[ " could not ", " couldn't " ],
27+
[ " could have ", " could've " ],
28+
[ " did not ", " didn't " ],
29+
[ " does not ", " doesn't " ],
30+
[ " do not ", " don't " ],
31+
[ " do not ", " do'nt " ],
32+
[ " Doctor ", " Dr. " ],
33+
[ " Senior ", " Sr. " ],
34+
[ " Junior ", " Jr. " ],
35+
[ " etc ", " etc. " ],
36+
[ " had not ", " hadn't " ],
37+
[ " has not ", " hasn't " ],
38+
[ " have not ", " haven't " ],
39+
[ " he will ", " he'll " ],
40+
[ " he would ", " he'd " ],
41+
[ " how is ", " how's " ],
42+
[ " I will ", " I'll " ],
43+
[ " I am ", " I'm " ],
44+
[ " Inc ", " Inc. " ],
45+
[ " is not ", " isn't " ],
46+
[ " I have ", " I've " ],
47+
[ " let us ", " let's " ],
48+
[ " might have ", " might've " ],
49+
[ " mr ", " Mr." ],
50+
[ " mrs ", " Mrs. " ],
51+
[ " ms ", " Ms." ],
52+
[ " phd ", " Ph.d. " ],
53+
[ " she would ", " she'd " ],
54+
[ " she will ", " she'll " ],
55+
[ " she is ", " she's " ],
56+
[ " should not ", " shouldn't " ],
57+
[ " st ", " st. " ],
58+
[ " St ", " St." ],
59+
[ " that will ", " that'll " ],
60+
[ " that is ", " that's " ],
61+
[ " there will ", " there'll " ],
62+
[ " there is ", " there's " ],
63+
[ " they would ", " they'd " ],
64+
[ " they will ", " they'll " ],
65+
[ " they are ", " they're " ],
66+
[ " they have ", " they've " ],
67+
[ " this will ", " this'll " ],
68+
[ " we would ", " we'd " ],
69+
[ " we will ", " we'll " ],
70+
[ " were not ", " weren't " ],
71+
[ " we have ", " we've " ],
72+
[ " what is ", " what's " ],
73+
[ " where is ", " where's " ],
74+
[ " will not ", " won't " ],
75+
[ " would not ", " wouldn't " ],
76+
[ " would have ", " would've " ],
77+
[ "www dot ", " www. " ],
78+
[ " www dot ", " www." ],
79+
[ " http colon slash slash ", " http:\/\/" ],
80+
[ " dash ", "-" ],
81+
[ " sharp ", "#" ],
82+
[ " dollarsign ", "$" ],
83+
[ " percent ", "%" ],
84+
[ " lparen ", "(" ],
85+
[ " rparen ", ")" ],
86+
[ " star ", "*" ],
87+
[ " point 0", ".0" ],
88+
[ " point 1", ".1" ],
89+
[ " point 2", ".2" ],
90+
[ " point 3", ".3" ],
91+
[ " point 4", ".4" ],
92+
[ " point 5", ".5" ],
93+
[ " point 6", ".6" ],
94+
[ " point 7", ".7" ],
95+
[ " point 8", ".8" ],
96+
[ " point 9", ".9" ],
97+
[ " jar", ".jar" ],
98+
[ " zip", ".zip" ],
99+
[ " slash ", " \/" ],
100+
[ " frown ", " :-(" ],
101+
[ " smile ", " :-)" ],
102+
[ " smile ", " :)" ],
103+
[ " smile ", " :-)" ],
104+
[ " colon 0", ":0" ],
105+
[ " colon 1", ":1" ],
106+
[ " colon 2", ":2" ],
107+
[ " colon 3", ":3" ],
108+
[ " colon 4", ":4" ],
109+
[ " colon 5", ":5" ],
110+
[ " colon 6", ":6" ],
111+
[ " colon 7", ":7" ],
112+
[ " colon 8", ":8" ],
113+
[ " colon 9", ":9" ],
114+
[ " smile ", " ;)" ],
115+
[ " smile ", " ;-)" ],
116+
[ " at ", " @" ],
117+
[ " atsign ", " @" ],
118+
[ " leftbracket ", "[" ],
119+
[ " forwardslash ", "\"" ],
120+
[ " rightbracket ", "]" ],
121+
[ " uparrow ", "^" ],
122+
[ " underscore ", "_" ],
123+
[ " beginscript ", "{" ],
124+
[ " leftcurly ", "{" ],
125+
[ " endscript ", "}" ],
126+
[ " rightcurly ", "}" ],
127+
[ " plus ", "+" ],
128+
[ " lt ", "<" ],
129+
[ " heart ", " <3" ],
130+
[ " equals ", "=" ],
131+
[ " gt ", ">" ],
132+
[ " s ", "'s " ]
133+
]

Aiml.NET.XChatBot/gender.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[
2+
[ " he ", " she " ],
3+
[ " she ", " he " ],
4+
[ " to him ", " to her " ],
5+
[ " for him ", " for her " ],
6+
[ " with him ", " with her " ],
7+
[ " on him ", " on her " ],
8+
[ " in him ", " in her " ],
9+
[ " to her ", " to him " ],
10+
[ " for her ", " for him " ],
11+
[ " with her ", " with him " ],
12+
[ " on her ", " on him " ],
13+
[ " in her ", " in him " ],
14+
[ " his ", " her " ],
15+
[ " her ", " his " ],
16+
[ " him ", " her " ],
17+
[ " er ", " Sie " ],
18+
[ " ihm ", " ihr " ],
19+
[ " sein ", " ihr " ],
20+
[ " ihn ", " Sie " ]
21+
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Sunday:Monday
2+
Monday:Tuesday
3+
Tuesday:Wednesday
4+
Wednesday:Thursday
5+
Thursday:Friday
6+
Friday:Saturday
7+
Saturday:Sunday

0 commit comments

Comments
 (0)