Please add 3to 4 new sections to the ‘psychobabble area of
You Are Eligible For 15% Discount This Month!
Please add 3to 4 new sections to the ‘psychobabble’ area of the program. The textfollowing the ‘r’ character is the keyword being searched for in theusers input. The lines of text right after the ‘r’ statement areresponses that Eliza can update and print back to the user. The ‘{0}’characters are text (or individuals words) that have been parsed fromthe users input and put through the ‘reflections’ block of code.Forextra credit (5 points) enhance the sentence construction line in the’analyze’ function. You enhancement could include improving the outputto retain some type of context (for example – ‘You already said that’,or set flags to catch changes in emotion – If I say ‘I’m sad’ and thentype in ‘I’m happy’ the program should ‘remember’ what I said 1 or 2 or 3statements earlier.)
Leave a Reply
Want to join the discussion?Feel free to contribute!