diff options
author | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-04 23:40:36 +0000 |
---|---|---|
committer | yvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2009-12-04 23:40:36 +0000 |
commit | 400958e540150b65cbf59467ea61aa4e654f4542 (patch) | |
tree | 3cc5ed7ce8d183534dfa58cf39caa4dd420d4d12 /aiml/DefaultSubs.py | |
parent | 6153ba1277632d74105170c182594d3833636fa7 (diff) | |
download | omegle-400958e540150b65cbf59467ea61aa4e654f4542.tar.gz omegle-400958e540150b65cbf59467ea61aa4e654f4542.zip |
aiml bot
git-svn-id: http://xapek.org/svn/common/omegle@1473 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'aiml/DefaultSubs.py')
-rw-r--r-- | aiml/DefaultSubs.py | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/aiml/DefaultSubs.py b/aiml/DefaultSubs.py new file mode 100644 index 0000000..5166cf6 --- /dev/null +++ b/aiml/DefaultSubs.py @@ -0,0 +1,156 @@ +"""This file contains the default (English) substitutions for the +PyAIML kernel. These substitutions may be overridden by using the +Kernel.loadSubs(filename) method. The filename specified should refer +to a Windows-style INI file with the following format: + + # lines that start with '#' are comments + + # The 'gender' section contains the substitutions performed by the + # <gender> AIML tag, which swaps masculine and feminine pronouns. + [gender] + he = she + she = he + # and so on... + + # The 'person' section contains the substitutions performed by the + # <person> AIML tag, which swaps 1st and 2nd person pronouns. + [person] + I = you + you = I + # and so on... + + # The 'person2' section contains the substitutions performed by + # the <person2> AIML tag, which swaps 1st and 3nd person pronouns. + [person2] + I = he + he = I + # and so on... + + # the 'normal' section contains subtitutions run on every input + # string passed into Kernel.respond(). It's mainly used to + # correct common misspellings, and to convert contractions + # ("WHAT'S") into a format that will match an AIML pattern ("WHAT + # IS"). + [normal] + what's = what is +""" + +defaultGender = { + # masculine -> feminine + "he": "she", + "him": "her", + "his": "her", + "himself": "herself", + + # feminine -> masculine + "she": "he", + "her": "him", + "hers": "his", + "herself": "himself", +} + +defaultPerson = { + # 1st->3rd (masculine) + "I": "he", + "me": "him", + "my": "his", + "mine": "his", + "myself": "himself", + + # 3rd->1st (masculine) + "he":"I", + "him":"me", + "his":"my", + "himself":"myself", + + # 3rd->1st (feminine) + "she":"I", + "her":"me", + "hers":"mine", + "herself":"myself", +} + +defaultPerson2 = { + # 1st -> 2nd + "I": "you", + "me": "you", + "my": "your", + "mine": "yours", + "myself": "yourself", + + # 2nd -> 1st + "you": "me", + "your": "my", + "yours": "mine", + "yourself": "myself", +} + + +# TODO: this list is far from complete +defaultNormal = { + "wanna": "want to", + "gonna": "going to", + + "I'm": "I am", + "I'd": "I would", + "I'll": "I will", + "I've": "I have", + "you'd": "you would", + "you're": "you are", + "you've": "you have", + "you'll": "you will", + "he's": "he is", + "he'd": "he would", + "he'll": "he will", + "she's": "she is", + "she'd": "she would", + "she'll": "she will", + "we're": "we are", + "we'd": "we would", + "we'll": "we will", + "we've": "we have", + "they're": "they are", + "they'd": "they would", + "they'll": "they will", + "they've": "they have", + + "y'all": "you all", + + "can't": "can not", + "cannot": "can not", + "couldn't": "could not", + "wouldn't": "would not", + "shouldn't": "should not", + + "isn't": "is not", + "ain't": "is not", + "don't": "do not", + "aren't": "are not", + "won't": "will not", + "weren't": "were not", + "wasn't": "was not", + "didn't": "did not", + "hasn't": "has not", + "hadn't": "had not", + "haven't": "have not", + + "where's": "where is", + "where'd": "where did", + "where'll": "where will", + "who's": "who is", + "who'd": "who did", + "who'll": "who will", + "what's": "what is", + "what'd": "what did", + "what'll": "what will", + "when's": "when is", + "when'd": "when did", + "when'll": "when will", + "why's": "why is", + "why'd": "why did", + "why'll": "why will", + + "it's": "it is", + "it'd": "it would", + "it'll": "it will", +}
\ No newline at end of file |