converting some of the aiml rules as best i can