|
51 | 51 | "need" |
52 | 52 | ], |
53 | 53 | "sad": [ |
54 | | - "sad", |
55 | 54 | "unhappy", |
56 | 55 | "depressed", |
57 | 56 | "sick" |
58 | 57 | ], |
59 | 58 | "happy": [ |
60 | | - "happy", |
61 | 59 | "elated", |
62 | 60 | "glad", |
63 | 61 | "better" |
|
66 | 64 | "can't" |
67 | 65 | ], |
68 | 66 | "everyone": [ |
69 | | - "everyone", |
70 | 67 | "everybody", |
71 | 68 | "nobody", |
72 | 69 | "noone" |
|
92 | 89 | "That will be $200." |
93 | 90 | ], |
94 | 91 | "rules": [ |
| 92 | + { |
| 93 | + "keyword": "sorry", |
| 94 | + "patterns": [ |
| 95 | + { |
| 96 | + "pattern": "*", |
| 97 | + "responses": [ |
| 98 | + "Please don't apologise.", |
| 99 | + "Apologies are not necessary.", |
| 100 | + "I've told you that apologies are not required." |
| 101 | + ] |
| 102 | + } |
| 103 | + ] |
| 104 | + }, |
| 105 | + { |
| 106 | + "keyword": "apologise", |
| 107 | + "patterns": [ |
| 108 | + { |
| 109 | + "pattern": "*", |
| 110 | + "responses": [ |
| 111 | + "goto sorry" |
| 112 | + ] |
| 113 | + } |
| 114 | + ] |
| 115 | + }, |
95 | 116 | { |
96 | 117 | "keyword": "remember", |
97 | 118 | "patterns": [ |
|
379 | 400 | "keyword": "i", |
380 | 401 | "patterns": [ |
381 | 402 | { |
382 | | - "pattern": "* i *@desire*", |
| 403 | + "pattern": "* i @desire *", |
383 | 404 | "responses": [ |
384 | 405 | "What would it mean to you if you got (3) ?", |
385 | 406 | "Why do you want (3) ?", |
|
390 | 411 | ] |
391 | 412 | }, |
392 | 413 | { |
393 | | - "pattern": "* i am*@sad*", |
| 414 | + "pattern": "* i am * @sad *", |
394 | 415 | "responses": [ |
395 | 416 | "I am sorry to hear that you are (3) .", |
396 | 417 | "Do you think that coming here will help you not to be (3) ?", |
|
399 | 420 | ] |
400 | 421 | }, |
401 | 422 | { |
402 | | - "pattern": "* i am*@happy*", |
| 423 | + "pattern": "* i am * @happy *", |
403 | 424 | "responses": [ |
404 | 425 | "How have I helped you to be (3) ?", |
405 | 426 | "Has your treatment made you (3) ?", |
|
414 | 435 | ] |
415 | 436 | }, |
416 | 437 | { |
417 | | - "pattern": "* i *@belief* i *", |
| 438 | + "pattern": "* i @belief * i *", |
418 | 439 | "responses": [ |
419 | 440 | "Do you really think so ?", |
420 | 441 | "But you are not sure you (3) .", |
421 | 442 | "Do you really doubt you (3) ?" |
422 | 443 | ] |
423 | 444 | }, |
424 | 445 | { |
425 | | - "pattern": "* i *@belief* you *", |
| 446 | + "pattern": "* i * @belief * you *", |
426 | 447 | "responses": [ |
427 | 448 | "goto you" |
428 | 449 | ] |
|
437 | 458 | ] |
438 | 459 | }, |
439 | 460 | { |
440 | | - "pattern": "* i *@cannot*", |
| 461 | + "pattern": "* i @cannot *", |
441 | 462 | "responses": [ |
442 | 463 | "How do you think that you can't (3) ?", |
443 | 464 | "Have you tried ?", |
|
481 | 502 | "That's quite interesting." |
482 | 503 | ] |
483 | 504 | } |
484 | | - ], |
485 | | - "rank": 2 |
| 505 | + ] |
486 | 506 | }, |
487 | 507 | { |
488 | 508 | "keyword": "you", |
|
523 | 543 | "What are your feelings now ?" |
524 | 544 | ] |
525 | 545 | } |
526 | | - ], |
527 | | - "rank": 1 |
| 546 | + ] |
528 | 547 | }, |
529 | 548 | { |
530 | 549 | "keyword": "yes", |
|
558 | 577 | "keyword": "my", |
559 | 578 | "patterns": [ |
560 | 579 | { |
561 | | - "pattern": "* my *@family*", |
| 580 | + "pattern": "* my * @family *", |
562 | 581 | "responses": [ |
563 | 582 | "Tell me more about your family.", |
564 | 583 | "Who else in your family (4) ?", |
|
678 | 697 | "keyword": "everyone", |
679 | 698 | "patterns": [ |
680 | 699 | { |
681 | | - "pattern": "*@everyone*", |
| 700 | + "pattern": "* @everyone *", |
682 | 701 | "responses": [ |
683 | 702 | "Really, (2) ?", |
684 | 703 | "Surely not (2) .", |
|
768 | 787 | "keyword": "like", |
769 | 788 | "patterns": [ |
770 | 789 | { |
771 | | - "pattern": "*@be* like *", |
| 790 | + "pattern": "* @be * like *", |
772 | 791 | "responses": [ |
773 | 792 | "goto alike" |
774 | 793 | ] |
775 | 794 | } |
776 | 795 | ], |
777 | 796 | "rank": 10 |
778 | | - }, |
779 | | - { |
780 | | - "keyword": "sorry", |
781 | | - "patterns": [ |
782 | | - { |
783 | | - "pattern": "*", |
784 | | - "responses": [ |
785 | | - "Please don't apologise.", |
786 | | - "Apologies are not necessary.", |
787 | | - "I've told you that apologies are not required." |
788 | | - ] |
789 | | - } |
790 | | - ] |
791 | | - }, |
792 | | - { |
793 | | - "keyword": "apologise", |
794 | | - "patterns": [ |
795 | | - { |
796 | | - "pattern": "*", |
797 | | - "responses": [ |
798 | | - "goto sorry" |
799 | | - ] |
800 | | - } |
801 | | - ] |
802 | 797 | } |
803 | 798 | ], |
804 | 799 | "fallbacks": [ |
|
0 commit comments