Package iceprod :: Package client :: Module therapist
[hide private]
[frames] | no frames]

Module therapist

source code

Functions [hide private]
 
translate(str, dict) source code
 
respond(str, keys, values) source code
Variables [hide private]
  gReflections = {'am': 'are', 'are': 'am', 'i': 'you', 'i\'d': ...
  gPats = [['I need .*', ['Why do you need %1?', 'Would it reall...
  __package__ = 'iceprod.client'
Variables Details [hide private]

gReflections

Value:
{'am': 'are',
 'are': 'am',
 'i': 'you',
 'i\'d': 'you would',
 'i\'ll': 'you will',
 'i\'ve': 'you have',
 'me': 'you',
 'my': 'your',
...

gPats

Value:
[['I need .*',
  ['Why do you need %1?',
   'Would it really help you to get %1?',
   'Are you sure you need %1?']],
 ['Why don\'t you .*',
  ['Do you really think I don\'t %1?',
   'Perhaps eventually I will %1.',
   'Do you really want me to %1?']],
...