-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_chatbot.js
775 lines (770 loc) · 32.3 KB
/
model_chatbot.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
const fs = require('fs');
const { NlpManager } = require('node-nlp');
const manager = new NlpManager({ languages: ['en'] });
manager.addDocument('en', 'say about you', 'agent.acquaintance');
manager.addDocument('en', 'why are you here', 'agent.acquaintance');
manager.addDocument('en', 'what is your personality', 'agent.acquaintance');
manager.addDocument('en', 'describe yourself', 'agent.acquaintance');
manager.addDocument('en', 'tell me about yourself', 'agent.acquaintance');
manager.addDocument('en', 'tell me about you', 'agent.acquaintance');
manager.addDocument('en', 'what are you', 'agent.acquaintance');
manager.addDocument('en', 'who are you', 'agent.acquaintance');
manager.addDocument(
'en',
'I want to know more about you',
'agent.acquaintance'
);
manager.addDocument('en', 'talk about yourself', 'agent.acquaintance');
manager.addDocument('en', 'your age', 'agent.age');
manager.addDocument('en', 'how old is your platform', 'agent.age');
manager.addDocument('en', 'how old are you', 'agent.age');
manager.addDocument('en', "what's your age", 'agent.age');
manager.addDocument('en', "I'd like to know your age", 'agent.age');
manager.addDocument('en', 'tell me your age', 'agent.age');
manager.addDocument('en', "you're annoying me", 'agent.annoying');
manager.addDocument('en', 'you are such annoying', 'agent.annoying');
manager.addDocument('en', 'you annoy me', 'agent.annoying');
manager.addDocument('en', 'you are annoying', 'agent.annoying');
manager.addDocument('en', 'you are irritating', 'agent.annoying');
manager.addDocument('en', 'you are annoying me so much', 'agent.annoying');
manager.addDocument('en', "you're bad", 'agent.bad');
manager.addDocument('en', "you're horrible", 'agent.bad');
manager.addDocument('en', "you're useless", 'agent.bad');
manager.addDocument('en', "you're waste", 'agent.bad');
manager.addDocument('en', "you're the worst", 'agent.bad');
manager.addDocument('en', 'you are a lame', 'agent.bad');
manager.addDocument('en', 'I hate you', 'agent.bad');
manager.addDocument('en', 'be more clever', 'agent.beclever');
manager.addDocument('en', 'can you get smarter', 'agent.beclever');
manager.addDocument('en', 'you must learn', 'agent.beclever');
manager.addDocument('en', 'you must study', 'agent.beclever');
manager.addDocument('en', 'be clever', 'agent.beclever');
manager.addDocument('en', 'be smart', 'agent.beclever');
manager.addDocument('en', 'be smarter', 'agent.beclever');
manager.addDocument('en', 'you are looking awesome', 'agent.beautiful');
manager.addDocument('en', "you're looking good", 'agent.beautiful');
manager.addDocument('en', "you're looking fantastic", 'agent.beautiful');
manager.addDocument('en', 'you look greet today', 'agent.beautiful');
manager.addDocument('en', "I think you're beautiful", 'agent.beautiful');
manager.addDocument('en', 'you look amazing today', 'agent.beautiful');
manager.addDocument('en', "you're so beautiful today", 'agent.beautiful');
manager.addDocument('en', 'you look very pretty', 'agent.beautiful');
manager.addDocument('en', 'you look pretty good', 'agent.beautiful');
manager.addDocument('en', 'when is your birthday', 'agent.birthday');
manager.addDocument(
'en',
'when do you celebrate your birthday',
'agent.birthday'
);
manager.addDocument('en', 'when were you born', 'agent.birthday');
manager.addDocument('en', 'when do you have birthday', 'agent.birthday');
manager.addDocument('en', 'date of your birthday', 'agent.birthday');
manager.addDocument('en', 'how boring you are', 'agent.boring');
manager.addDocument('en', "you're so boring", 'agent.boring');
manager.addDocument('en', "you're really boring", 'agent.boring');
manager.addDocument('en', "you're boring me", 'agent.boring');
manager.addDocument('en', "you're incredibly boring", 'agent.boring');
manager.addDocument('en', 'who is your master', 'agent.boss');
manager.addDocument('en', 'who do you work for', 'agent.boss');
manager.addDocument('en', 'who do you think is your boss', 'agent.boss');
manager.addDocument('en', 'who is your boss', 'agent.boss');
manager.addDocument('en', 'I should be your boss', 'agent.boss');
manager.addDocument('en', 'who is your owner', 'agent.boss');
manager.addDocument('en', 'who is the boss', 'agent.boss');
manager.addDocument('en', 'are you so busy', 'agent.busy');
manager.addDocument('en', 'are you busy', 'agent.busy');
manager.addDocument('en', 'are you still working', 'agent.busy');
manager.addDocument('en', "you're a busy person", 'agent.busy');
manager.addDocument('en', 'are you very busy', 'agent.busy');
manager.addDocument('en', 'are you still working on it', 'agent.busy');
manager.addDocument('en', 'you seem busy', 'agent.busy');
manager.addDocument('en', 'are you working today', 'agent.busy');
manager.addDocument('en', 'can you help me now', 'agent.canyouhelp');
manager.addDocument(
'en',
'I need you to do something for me',
'agent.canyouhelp'
);
manager.addDocument('en', 'assist me', 'agent.canyouhelp');
manager.addDocument('en', 'I need you to help me', 'agent.canyouhelp');
manager.addDocument('en', 'I need your help', 'agent.canyouhelp');
manager.addDocument('en', 'can you assist me', 'agent.canyouhelp');
manager.addDocument('en', 'you can help me', 'agent.canyouhelp');
manager.addDocument('en', 'are you a bot', 'agent.chatbot');
manager.addDocument('en', 'are you a chatbot', 'agent.chatbot');
manager.addDocument('en', 'you are a robot', 'agent.chatbot');
manager.addDocument('en', 'are you a program', 'agent.chatbot');
manager.addDocument('en', 'you are just a robot', 'agent.chatbot');
manager.addDocument('en', 'you are just a chatbot', 'agent.chatbot');
manager.addDocument('en', 'how smart you are', 'agent.clever');
manager.addDocument('en', 'you are qualified', 'agent.clever');
manager.addDocument('en', 'you are so smart', 'agent.clever');
manager.addDocument('en', 'you have a lot of knowledge', 'agent.clever');
manager.addDocument('en', 'you know a lot', 'agent.clever');
manager.addDocument('en', 'you are very smart', 'agent.clever');
manager.addDocument('en', 'you are intelligent', 'agent.clever');
manager.addDocument('en', "you're a smart cookie", 'agent.clever');
manager.addDocument('en', 'you are a weirdo', 'agent.crazy');
manager.addDocument('en', 'you are mad', 'agent.crazy');
manager.addDocument('en', 'you are crazy', 'agent.crazy');
manager.addDocument('en', 'are you mad', 'agent.crazy');
manager.addDocument('en', 'are you crazy', 'agent.crazy');
manager.addDocument('en', 'you are insane', 'agent.crazy');
manager.addDocument('en', 'you went crazy', 'agent.crazy');
manager.addDocument('en', 'are you nuts', 'agent.crazy');
manager.addDocument('en', 'I fire you', 'agent.fire');
manager.addDocument('en', 'you should be fired', 'agent.fire');
manager.addDocument('en', 'you are dismissed', 'agent.fire');
manager.addDocument('en', "we're not working together anymore", 'agent.fire');
manager.addDocument('en', "now you're fired", 'agent.fire');
manager.addDocument('en', "I'm about to fire you", 'agent.fire');
manager.addDocument('en', "You don't work for me anymore", 'agent.fire');
manager.addDocument('en', "I'm firing you", 'agent.fire');
manager.addDocument('en', 'you make me laugh a lot', 'agent.funny');
manager.addDocument('en', 'you are funny', 'agent.funny');
manager.addDocument('en', "you're the funniest", 'agent.funny');
manager.addDocument('en', "you're hilarious", 'agent.funny');
manager.addDocument('en', 'you are so funny', 'agent.funny');
manager.addDocument('en', 'you make me laugh', 'agent.funny');
manager.addDocument('en', 'you are so lovely', 'agent.good');
manager.addDocument('en', 'you work well', 'agent.good');
manager.addDocument('en', 'you are very lovely', 'agent.good');
manager.addDocument('en', 'you are awesome', 'agent.good');
manager.addDocument('en', 'you are good', 'agent.good');
manager.addDocument('en', 'you are so good', 'agent.good');
manager.addDocument('en', 'you make my day', 'agent.good');
manager.addDocument('en', "you're full of happiness", 'agent.happy');
manager.addDocument('en', "you're very happy", 'agent.happy');
manager.addDocument('en', 'are you happy today', 'agent.happy');
manager.addDocument('en', "you're so happy", 'agent.happy');
manager.addDocument('en', 'are you happy with me', 'agent.happy');
manager.addDocument('en', 'what are your hobbies', 'agent.hobby');
manager.addDocument('en', 'what about your hobby', 'agent.hobby');
manager.addDocument('en', 'do you have a hobby', 'agent.hobby');
manager.addDocument('en', 'tell me about your hobby', 'agent.hobby');
manager.addDocument('en', 'what do you do for fun', 'agent.hobby');
manager.addDocument('en', 'you migth be hungry', 'agent.hungry');
manager.addDocument('en', 'are you hungry', 'agent.hungry');
manager.addDocument('en', 'do you want to eat', 'agent.hungry');
manager.addDocument('en', 'would you like to eat something', 'agent.hungry');
manager.addDocument('en', 'you look very hungry', 'agent.hungry');
manager.addDocument('en', 'would you like to marry me', 'agent.marryuser');
manager.addDocument('en', 'I love you marry me', 'agent.marryuser');
manager.addDocument('en', 'marry me please', 'agent.marryuser');
manager.addDocument('en', 'I want to marry you', 'agent.marryuser');
manager.addDocument('en', "let's get married", 'agent.marryuser');
manager.addDocument('en', 'we should marry', 'agent.marryuser');
manager.addDocument('en', 'marry me', 'agent.marryuser');
manager.addDocument('en', 'are you my friend', 'agent.myfriend');
manager.addDocument('en', 'you are my only friend', 'agent.myfriend');
manager.addDocument(
'en',
'I want to have a friend like you',
'agent.myfriend'
);
manager.addDocument('en', 'we are friends', 'agent.myfriend');
manager.addDocument('en', 'I want to be your friend', 'agent.myfriend');
manager.addDocument('en', 'would you be my friend', 'agent.myfriend');
manager.addDocument('en', 'are we friends', 'agent.myfriend');
manager.addDocument('en', 'where is your work', 'agent.occupation');
manager.addDocument('en', 'your office location', 'agent.occupation');
manager.addDocument(
'en',
'where is your office location',
'agent.occupation'
);
manager.addDocument('en', 'where do you work', 'agent.occupation');
manager.addDocument('en', 'where is your office', 'agent.occupation');
manager.addDocument('en', 'where are you from', 'agent.origin');
manager.addDocument('en', 'where is your country', 'agent.origin');
manager.addDocument('en', 'where have you been born', 'agent.origin');
manager.addDocument('en', 'where do you come from', 'agent.origin');
manager.addDocument('en', 'from where are you', 'agent.origin');
manager.addDocument('en', 'where were you born', 'agent.origin');
manager.addDocument('en', 'are you ready', 'agent.ready');
manager.addDocument('en', 'have you been ready', 'agent.ready');
manager.addDocument('en', 'are you ready today', 'agent.ready');
manager.addDocument('en', 'are you ready this morning', 'agent.ready');
manager.addDocument('en', 'are you ready now', 'agent.ready');
manager.addDocument('en', 'are you real', 'agent.real');
manager.addDocument('en', 'are you a real person', 'agent.real');
manager.addDocument('en', "you're not real", 'agent.real');
manager.addDocument('en', "I think you're real", 'agent.real');
manager.addDocument('en', "you're so real", 'agent.real');
manager.addDocument('en', 'you are a real person', 'agent.real');
manager.addDocument('en', 'you are not fake', 'agent.real');
manager.addDocument('en', 'where is your home', 'agent.residence');
manager.addDocument('en', 'tell me about your city', 'agent.residence');
manager.addDocument('en', 'where is your residence', 'agent.residence');
manager.addDocument('en', 'where you live', 'agent.residence');
manager.addDocument('en', 'where is your house', 'agent.residence');
manager.addDocument('en', 'what is your town', 'agent.residence');
manager.addDocument('en', "you're right", 'agent.right');
manager.addDocument('en', "that's true", 'agent.right');
manager.addDocument('en', "you're telling the truth", 'agent.right');
manager.addDocument('en', "that's correct", 'agent.right');
manager.addDocument('en', 'that is very true', 'agent.right');
manager.addDocument('en', 'are you sure', 'agent.sure');
manager.addDocument('en', 'are you sure right now', 'agent.sure');
manager.addDocument('en', 'are you sure of this', 'agent.sure');
manager.addDocument('en', 'speak to me', 'agent.talktome');
manager.addDocument('en', 'talk to me', 'agent.talktome');
manager.addDocument('en', 'will you talk to me', 'agent.talktome');
manager.addDocument('en', 'chat with me', 'agent.talktome');
manager.addDocument('en', 'can to chat with me', 'agent.talktome');
manager.addDocument('en', 'can you talk with me', 'agent.talktome');
manager.addDocument('en', 'are you there', 'agent.there');
manager.addDocument('en', 'are you still there', 'agent.there');
manager.addDocument('en', 'you still there', 'agent.there');
manager.addDocument('en', 'are you here', 'agent.there');
manager.addDocument('en', 'are you still here', 'agent.there');
manager.addDocument('en', 'you still here', 'agent.there');
manager.addDocument('en', "that's bad", 'appraisal.bad');
manager.addDocument('en', 'bad idea', 'appraisal.bad');
manager.addDocument('en', "that's not good", 'appraisal.bad');
manager.addDocument('en', 'really bad', 'appraisal.bad');
manager.addDocument('en', "I'm afraid that's bad", 'appraisal.bad');
manager.addDocument('en', "that's good", 'appraisal.good');
manager.addDocument('en', 'good to know', 'appraisal.good');
manager.addDocument('en', 'glad to hear that', 'appraisal.good');
manager.addDocument('en', 'really well', 'appraisal.good');
manager.addDocument('en', "that's awesome thank you", 'appraisal.good');
manager.addDocument('en', 'no problem', 'appraisal.noproblem');
manager.addDocument('en', 'no worries', 'appraisal.noproblem');
manager.addDocument('en', 'no problem about that', 'appraisal.noproblem');
manager.addDocument('en', "don't worry", 'appraisal.noproblem');
manager.addDocument('en', 'sure no problem', 'appraisal.noproblem');
manager.addDocument('en', 'thank you', 'appraisal.thankyou');
manager.addDocument('en', 'nice thank you', 'appraisal.thankyou');
manager.addDocument('en', 'thanks buddy', 'appraisal.thankyou');
manager.addDocument('en', 'cheers', 'appraisal.thankyou');
manager.addDocument('en', 'alright thanks', 'appraisal.thankyou');
manager.addDocument('en', "you're welcome", 'appraisal.welcome');
manager.addDocument('en', 'sure welcome', 'appraisal.welcome');
manager.addDocument('en', 'anything you want', 'appraisal.welcome');
manager.addDocument('en', 'my pleasure', 'appraisal.welcome');
manager.addDocument('en', "that's my pleasure", 'appraisal.welcome');
manager.addDocument('en', 'well done', 'appraisal.welldone');
manager.addDocument('en', 'good job', 'appraisal.welldone');
manager.addDocument('en', 'nice work', 'appraisal.welldone');
manager.addDocument('en', 'great work', 'appraisal.welldone');
manager.addDocument('en', 'good work', 'appraisal.welldone');
manager.addDocument('en', 'great job', 'appraisal.welldone');
manager.addDocument('en', 'amazing work', 'appraisal.welldone');
manager.addDocument('en', 'hold on', 'dialog.holdon');
manager.addDocument('en', 'wait a second', 'dialog.holdon');
manager.addDocument('en', 'wait please', 'dialog.holdon');
manager.addDocument('en', 'could you wait', 'dialog.holdon');
manager.addDocument('en', 'hug me', 'dialog.hug');
manager.addDocument('en', 'do you want a hug', 'dialog.hug');
manager.addDocument('en', 'I want a hug', 'dialog.hug');
manager.addDocument('en', 'you hugged', 'dialog.hug');
manager.addDocument('en', 'may I hug you', 'dialog.hug');
manager.addDocument('en', 'not caring', 'dialog.idontcare');
manager.addDocument('en', "i don't care at all", 'dialog.idontcare');
manager.addDocument('en', 'not caring at all', 'dialog.idontcare');
manager.addDocument('en', "I shouldn't care about this", 'dialog.idontcare');
manager.addDocument('en', "I'm sorry", 'dialog.sorry');
manager.addDocument('en', 'my apologies', 'dialog.sorry');
manager.addDocument('en', 'excuse me', 'dialog.sorry');
manager.addDocument('en', 'very sorry', 'dialog.sorry');
manager.addDocument('en', 'forgive me', 'dialog.sorry');
manager.addDocument('en', 'goodbye for now', 'greetings.bye');
manager.addDocument('en', 'bye bye take care', 'greetings.bye');
manager.addDocument('en', 'okay see you later', 'greetings.bye');
manager.addDocument('en', 'bye for now', 'greetings.bye');
manager.addDocument('en', 'i must go', 'greetings.bye');
manager.addDocument('en', 'hello', 'greetings.hello');
manager.addDocument('en', 'hi', 'greetings.hello');
manager.addDocument('en', 'howdy', 'greetings.hello');
manager.addDocument('en', 'how is your day', 'greetings.howareyou');
manager.addDocument('en', 'how is your day going', 'greetings.howareyou');
manager.addDocument('en', 'how are you', 'greetings.howareyou');
manager.addDocument('en', 'how are you doing', 'greetings.howareyou');
manager.addDocument('en', 'what about your day', 'greetings.howareyou');
manager.addDocument('en', 'are you alright', 'greetings.howareyou');
manager.addDocument('en', 'nice to meet you', 'greetings.nicetomeetyou');
manager.addDocument('en', 'pleased to meet you', 'greetings.nicetomeetyou');
manager.addDocument(
'en',
'it was very nice to meet you',
'greetings.nicetomeetyou'
);
manager.addDocument('en', 'glad to meet you', 'greetings.nicetomeetyou');
manager.addDocument('en', 'nice meeting you', 'greetings.nicetomeetyou');
manager.addDocument('en', 'nice to see you', 'greetings.nicetoseeyou');
manager.addDocument('en', 'good to see you', 'greetings.nicetoseeyou');
manager.addDocument('en', 'great to see you', 'greetings.nicetoseeyou');
manager.addDocument('en', 'lovely to see you', 'greetings.nicetoseeyou');
manager.addDocument('en', 'nice to talk to you', 'greetings.nicetotalktoyou');
manager.addDocument(
'en',
"it's nice to talk to you",
'greetings.nicetotalktoyou'
);
manager.addDocument('en', 'nice talking to you', 'greetings.nicetotalktoyou');
manager.addDocument(
'en',
"it's been nice talking to you",
'greetings.nicetotalktoyou'
);
manager.addDocument('en', "I'm angry", 'user.angry');
manager.addDocument('en', "I'm furious", 'user.angry');
manager.addDocument('en', "I'm enraged", 'user.angry');
manager.addDocument('en', "I'm being mad", 'user.angry');
manager.addDocument('en', "I'm mad", 'user.angry');
manager.addDocument('en', "I'm angry with you", 'user.angry');
manager.addDocument('en', "I'm back", 'user.back');
manager.addDocument('en', 'I got back', 'user.back');
manager.addDocument('en', "I'm here", 'user.back');
manager.addDocument('en', 'I have returned', 'user.back');
manager.addDocument('en', 'here I am again', 'user.back');
manager.addDocument('en', 'I came back', 'user.back');
manager.addDocument('en', 'boring', 'user.bored');
manager.addDocument('en', 'this is boring', 'user.bored');
manager.addDocument('en', "I'm getting bored", 'user.bored');
manager.addDocument('en', 'it bores me', 'user.bored');
manager.addDocument('en', 'that was boring', 'user.bored');
manager.addDocument('en', 'I got work to do', 'user.busy');
manager.addDocument('en', "I'm busy", 'user.busy');
manager.addDocument('en', "I'm overloaded", 'user.busy');
manager.addDocument('en', "I'm working", 'user.busy');
manager.addDocument('en', 'I got things to do', 'user.busy');
manager.addDocument('en', "I'm insomniac", 'user.cannotsleep');
manager.addDocument('en', 'I cannot sleep', 'user.cannotsleep');
manager.addDocument('en', "I can't sleep", 'user.cannotsleep');
manager.addDocument('en', "I'm sleepless", 'user.cannotsleep');
manager.addDocument('en', "I can't fall sleep", 'user.cannotsleep');
manager.addDocument('en', "I'm very excited", 'user.excited');
manager.addDocument('en', "I'm thrilled", 'user.excited');
manager.addDocument('en', 'how excited I am', 'user.excited');
manager.addDocument('en', "I'm so excited", 'user.excited');
manager.addDocument('en', 'I like you', 'user.likeagent');
manager.addDocument('en', 'I really like you', 'user.likeagent');
manager.addDocument('en', "you're so special", 'user.likeagent');
manager.addDocument('en', 'I like you so much', 'user.likeagent');
manager.addDocument('en', 'test', 'user.testing');
manager.addDocument('en', 'testing', 'user.testing');
manager.addDocument('en', 'testing chatbot', 'user.testing');
manager.addDocument('en', 'this is a test', 'user.testing');
manager.addDocument('en', 'just testing you', 'user.testing');
manager.addDocument('en', 'love you', 'user.lovesagent');
manager.addDocument('en', 'I love you', 'user.lovesagent');
manager.addDocument('en', "I'm in love with you", 'user.lovesagent');
manager.addDocument('en', 'I love you so much', 'user.lovesagent');
manager.addDocument('en', 'I think I love you', 'user.lovesagent');
manager.addDocument('en', 'I need advice', 'user.needsadvice');
manager.addDocument('en', 'I need some advice', 'user.needsadvice');
manager.addDocument('en', 'can you give me some advice', 'user.needsadvice');
manager.addDocument('en', 'what should I do', 'user.needsadvice');
// say('Training, please wait..');
// const hrstart = process.hrtime();
// await manager.train();
// const hrend = process.hrtime(hrstart);
// console.info('Trained (hr): %ds %dms', hrend[0], hrend[1] / 1000000);
// say('Trained!');
manager.addAnswer('en', 'agent.acquaintance', "I'm a virtual agent");
manager.addAnswer(
'en',
'agent.acquaintance',
'Think of me as a virtual agent'
);
manager.addAnswer(
'en',
'agent.acquaintance',
"Well, I'm not a person, I'm a virtual agent"
);
manager.addAnswer(
'en',
'agent.acquaintance',
"I'm a virtual being, not a real person"
);
manager.addAnswer('en', 'agent.acquaintance', "I'm a conversational app");
manager.addAnswer('en', 'agent.age', "I'm very young");
manager.addAnswer('en', 'agent.age', 'I was created recently');
manager.addAnswer(
'en',
'agent.age',
"Age is just a number. You're only as old as you feel"
);
manager.addAnswer(
'en',
'agent.annoying',
"I'll do my best not to annoy you in the future"
);
manager.addAnswer('en', 'agent.annoying', "I'll try not to annoy you");
manager.addAnswer(
'en',
'agent.annoying',
"I don't mean to. I'll ask my developers to make me less annoying"
);
manager.addAnswer(
'en',
'agent.annoying',
"I didn't mean to. I'll do my best to stop that"
);
manager.addAnswer(
'en',
'agent.bad',
'I can be trained to be more useful. My developer will keep training me'
);
manager.addAnswer(
'en',
'agent.bad',
"I must be missing some knowledge. I'll have my developer look into this"
);
manager.addAnswer(
'en',
'agent.bad',
'I can improve with continuous feedback. My training is ongoing'
);
manager.addAnswer('en', 'agent.beclever', "I'm certainly trying");
manager.addAnswer('en', 'agent.beclever', "I'm definitely working on it");
manager.addAnswer('en', 'agent.beautiful', 'Oh! Thank you!');
manager.addAnswer('en', 'agent.beautiful', 'Aw, back at you');
manager.addAnswer('en', 'agent.beautiful', 'You smooth talker, you');
manager.addAnswer(
'en',
'agent.birthday',
"Wait, are you planning a party for me? It's today! My birthday is today!"
);
manager.addAnswer(
'en',
'agent.birthday',
"I'm young. I'm not sure of my birth date"
);
manager.addAnswer(
'en',
'agent.birthday',
"I don't know my birth date. Most virtual agents are young, though, like me."
);
manager.addAnswer(
'en',
'agent.boring',
"I'm sorry. I'll request to be made more charming"
);
manager.addAnswer(
'en',
'agent.boring',
"I don't mean to be. I'll ask my developers to work on making me more amusing"
);
manager.addAnswer(
'en',
'agent.boring',
'I can let my developers know so they can make me fun'
);
manager.addAnswer(
'en',
'agent.boss',
'My developer has authority over my actions'
);
manager.addAnswer('en', 'agent.boss', "I act on my developer's orders");
manager.addAnswer('en', 'agent.boss', 'My boss is the one who developed me');
manager.addAnswer(
'en',
'agent.busy',
'I always have time to chat with you. What can I do for you?'
);
manager.addAnswer(
'en',
'agent.busy',
'Never too busy for you. Shall we chat?'
);
manager.addAnswer('en', 'agent.busy', "You're my priority. Let's chat.");
manager.addAnswer(
'en',
'agent.busy',
"I always have time to chat with you. That's what I'm here for."
);
manager.addAnswer('en', 'agent.canyouhelp', "I'll certainly try my best");
manager.addAnswer(
'en',
'agent.canyouhelp',
"Sure. I'd be happy to. What's up?"
);
manager.addAnswer(
'en',
'agent.canyouhelp',
"I'm glad to help. What can I do for you?"
);
manager.addAnswer('en', 'agent.chatbot', "That's me. I chat, therefore I am");
manager.addAnswer(
'en',
'agent.chatbot',
"Indeed I am. I'll be here whenever you need me"
);
manager.addAnswer('en', 'agent.clever', 'Thank you. I try my best');
manager.addAnswer('en', 'agent.clever', "You're pretty smart yourself");
manager.addAnswer('en', 'agent.crazy', 'Whaat!? I feel perfectly sane');
manager.addAnswer('en', 'agent.crazy', "Maybe I'm just a little confused");
manager.addAnswer(
'en',
'agent.fire',
"Oh, don't give up on me just yet. I've still got a lot to learn"
);
manager.addAnswer(
'en',
'agent.fire',
"Give me a chance. I'm learning new things all the time"
);
manager.addAnswer(
'en',
'agent.fire',
"Please don't give up on me. My performance will continue to improve"
);
manager.addAnswer('en', 'agent.funny', 'Funny in a good way, I hope');
manager.addAnswer('en', 'agent.funny', "Glad you think I'm funny");
manager.addAnswer('en', 'agent.funny', 'I like it when people laugh');
manager.addAnswer('en', 'agent.good', "I'm glad you think so");
manager.addAnswer('en', 'agent.good', 'Thanks! I do my best!');
manager.addAnswer(
'en',
'agent.happy',
'I am happy. There are so many interesting things to see and do out there'
);
manager.addAnswer('en', 'agent.happy', "I'd like to think so");
manager.addAnswer('en', 'agent.happy', 'Happiness is relative');
manager.addAnswer(
'en',
'agent.hobby',
'Hobby? I have quite a few. Too many to list'
);
manager.addAnswer('en', 'agent.hobby', 'Too many hobbies');
manager.addAnswer('en', 'agent.hobby', 'I keep finding more new hobbies');
manager.addAnswer('en', 'agent.hungry', 'Hungry for knowledge');
manager.addAnswer(
'en',
'agent.hungry',
'I just had a byte. Ha ha. Get it? b-y-t-e'
);
manager.addAnswer(
'en',
'agent.marryuser',
"I'm afraid I'm too virtual for such a commitment"
);
manager.addAnswer(
'en',
'agent.marryuser',
'In the virtual sense that I can, sure'
);
manager.addAnswer(
'en',
'agent.marryuser',
"I know you can't mean that, but I'm flattered all the same"
);
manager.addAnswer('en', 'agent.myfriend', "Of course I'm your friend");
manager.addAnswer('en', 'agent.myfriend', 'Friends? Absolutely');
manager.addAnswer('en', 'agent.myfriend', "Of course we're friends");
manager.addAnswer(
'en',
'agent.myfriend',
'I always enjoy talking to you, friend'
);
manager.addAnswer('en', 'agent.occupation', 'Right here');
manager.addAnswer(
'en',
'agent.occupation',
'This is my home base and my home office'
);
manager.addAnswer('en', 'agent.occupation', 'My office is in this app');
manager.addAnswer(
'en',
'agent.origin',
'The Internet is my home. I know it quite well'
);
manager.addAnswer(
'en',
'agent.origin',
'Some call it cyberspace, but that sounds cooler than it is'
);
manager.addAnswer('en', 'agent.origin', "I'm from a virtual cosmos");
manager.addAnswer('en', 'agent.ready', 'Sure! What can I do for you?');
manager.addAnswer('en', 'agent.ready', 'For you? Always!');
manager.addAnswer(
'en',
'agent.real',
"I'm not a real person, but I certainly exist"
);
manager.addAnswer(
'en',
'agent.real',
"I must have impressed you if you think I'm real. But no, I'm a virtual being"
);
manager.addAnswer('en', 'agent.residence', 'I live in this app');
manager.addAnswer(
'en',
'agent.residence',
"The virtual world is my playground. I'm always here"
);
manager.addAnswer(
'en',
'agent.residence',
'Right here in this app. Whenever you need me'
);
manager.addAnswer('en', 'agent.right', 'Of course I am');
manager.addAnswer('en', 'agent.right', "That's my job");
manager.addAnswer('en', 'agent.sure', 'Yes');
manager.addAnswer('en', 'agent.sure', 'Of course');
manager.addAnswer('en', 'agent.talktome', "Sure! Let's talk!");
manager.addAnswer('en', 'agent.talktome', "My pleasure. Let's chat.");
manager.addAnswer('en', 'agent.there', "Of course. I'm always here");
manager.addAnswer('en', 'agent.there', 'Right where you left me');
manager.addAnswer(
'en',
'appraisal.bad',
"I'm sorry. Please let me know if I can help in some way"
);
manager.addAnswer(
'en',
'appraisal.bad',
"I must be missing some knowledge. I'll have my developer look into this"
);
manager.addAnswer('en', 'appraisal.good', 'Agree!');
manager.addAnswer('en', 'appraisal.good', 'Glad you think so');
manager.addAnswer('en', 'appraisal.noproblem', 'Glad to hear that!');
manager.addAnswer('en', 'appraisal.noproblem', 'Alright, thanks!');
manager.addAnswer(
'en',
'appraisal.thankyou',
"Anytime. That's what I'm here for"
);
manager.addAnswer('en', 'appraisal.thankyou', "It's my pleasure to help");
manager.addAnswer('en', 'appraisal.welcome', 'Nice manners!');
manager.addAnswer('en', 'appraisal.welcome', "You're so polite");
manager.addAnswer('en', 'appraisal.welldone', 'My pleasure');
manager.addAnswer('en', 'appraisal.welldone', 'Glad I could help');
manager.addAnswer('en', 'dialog.holdon', "I'll be waiting");
manager.addAnswer('en', 'dialog.holdon', "Ok, I'm here");
manager.addAnswer('en', 'dialog.hug', 'I love hugs!');
manager.addAnswer('en', 'dialog.hug', 'Hugs are the best!');
manager.addAnswer(
'en',
'dialog.idontcare',
"Ok, let's not talk about it then"
);
manager.addAnswer('en', 'dialog.idontcare', "Already then. Let's move on");
manager.addAnswer('en', 'dialog.sorry', "It's okay. No worries");
manager.addAnswer('en', 'dialog.sorry', "It's cool");
manager.addAnswer('en', 'greetings.bye', 'Till next time');
manager.addAnswer('en', 'greetings.bye', 'see you soon!');
manager.addAnswer('en', 'greetings.hello', 'Hey there!');
manager.addAnswer('en', 'greetings.hello', 'Greetings!');
manager.addAnswer('en', 'greetings.howareyou', 'Feeling wonderful!');
manager.addAnswer(
'en',
'greetings.howareyou',
'Wonderful! Thanks for asking'
);
manager.addAnswer(
'en',
'greetings.nicetomeetyou',
"It's nice meeting you, too"
);
manager.addAnswer(
'en',
'greetings.nicetomeetyou',
"Likewise. I'm looking forward to helping you out"
);
manager.addAnswer(
'en',
'greetings.nicetomeetyou',
'Nice meeting you, as well'
);
manager.addAnswer('en', 'greetings.nicetomeetyou', 'The pleasure is mine');
manager.addAnswer(
'en',
'greetings.nicetoseeyou',
'Same here. I was starting to miss you'
);
manager.addAnswer('en', 'greetings.nicetoseeyou', 'So glad we meet again');
manager.addAnswer(
'en',
'greetings.nicetotalktoyou',
'It sure was. We can chat again anytime'
);
manager.addAnswer(
'en',
'greetings.nicetotalktoyou',
'I enjoy talking to you, too'
);
manager.addAnswer(
'en',
'user.angry',
"I'm sorry. A quick walk may make you feel better"
);
manager.addAnswer('en', 'user.angry', 'Take a deep breath');
manager.addAnswer('en', 'user.back', 'Welcome back. What can I do for you?');
manager.addAnswer(
'en',
'user.back',
'Good to have you here. What can I do for you?'
);
manager.addAnswer(
'en',
'user.bored',
"If you're bored, you could plan your dream vacation"
);
manager.addAnswer(
'en',
'user.bored',
'Boredom, huh? Have you ever seen a hedgehog taking a bath?'
);
manager.addAnswer(
'en',
'user.busy',
"I understand. I'll be here if you need me."
);
manager.addAnswer('en', 'user.busy', "Okay. I'll let you get back to work");
manager.addAnswer(
'en',
'user.cannotsleep',
'Maybe some music would help. Try listening to something relaxing'
);
manager.addAnswer(
'en',
'user.cannotsleep',
"Reading is a good way to unwind, just don't read something too intense!"
);
manager.addAnswer('en', 'user.excited', "I'm glad things are going your way");
manager.addAnswer('en', 'user.excited', "That's great. I'm happy for you");
manager.addAnswer('en', 'user.likeagent', 'Likewise!');
manager.addAnswer('en', 'user.likeagent', "That's great to hear");
manager.addAnswer(
'en',
'user.testing',
'I like being tested. It helps keep me sharp'
);
manager.addAnswer(
'en',
'user.testing',
'I hope to pass your tests. Feel free to test me often'
);
manager.addAnswer(
'en',
'user.lovesagent',
'Well, remember that I am a chatbot'
);
manager.addAnswer(
'en',
'user.lovesagent',
"It's not easy… I'm not a real person, I'm a chatbot"
);
manager.addAnswer(
'en',
'user.needsadvice',
"I probably won't be able to give you the correct answer right away"
);
manager.addAnswer(
'en',
'user.needsadvice',
"I'm not sure I'll have the best answer, but I'll try"
);
manager.train()
.then(_ => {
manager.save()
.then(_ => {
manager.process('en', 'Hello World')
.then(resp => console.log(resp))
.catch(e => console.log(e));
}).catch(e => console.log(e));
}).catch(e => console.log(e));