%OP%BON
%OP%PL0
%OP%LM8
%OP%DEdfeelgood
%CO:A,12,72%%H2%DOCTOR FEELGOOD by Mike Smith (c)1988%H2%


"Doctor Feelgood" is an Artificial Intelligence program on the lines of 
the famous 1960's "ELIZA" by Professor Weizenbaum. I must also 
acknowledge Rod Nicholson's program published in "Acorn User", March 
1987 and Tim Hartnell's excellent introduction to A.I., "Exploring 
Artificial Intelligence", 1984.

This version amalgamates many ideas and adds a facility for data 
storage and retrieval on any topic. The %H2%Z88%H2% is an ideal medium in view 
of its portability and solid-state RAM filing.


%H2%FILES%H2%

The main program "docz" is in Basic, 18990 bytes long, and should be 
filed in the main memory RAM. Before CHAINing it, create a directory 
"DOC", also in the main memory RAM. The more free memory, the better, 
if you want to use the Data base facility to the full.

Datafiles are stored in Directory "DOC", with a filename consisting of 
the first seven letters of a keyword. Each file is 2570 bytes long.   

Other files called "feelgood1", "feelgood2", etc., are created for 
each new user of the program, on properly saying "goodbye". This 
preserves some privacy, as each file contains the lists of important 
keywords and the name, or codename, unique to each user. They are about 
400 bytes each.

    
%H2%TALKING TO DOCTOR FEELGOOD%H2%

CHAIN"docz" and enter your name or codename, 15 characters maximum. 
Type in upper or lower case.


%H2%PRINTING OUT CONVERSATIONS%H2%

Enter "P" or "p" at any time to toggle Printer output on and off.


%H2%TRACING PROGRAM LOGIC%H2%

Enter "T" or "t" at any time to trace the program's reasons for a 
particular response. It will also list the keywords in each category.


%H2%KEYWORDS%H2%

There are three main categories of keywords: "Family", "Friends", and 
"Important". By typing one of these and then any keywords you wish to 
add, you can modify each list. Only the last fifteen keywords 
are kept in each category though, to ensure that Doctor Feelgood is 
always up to date with your problems!

Having added some keywords, the program will ask if you wish to save 
any data on each. If there is already a datafile, it will be displayed 
for you to browse or edit. If you answer "N" or "n", the word will not 
be saved as a keyword. This allows you to sidestep the inevitable 
mistakes you may make when getting used to the program.


%H2%DATA FILES%H2%

The full datafile can also be accessed by asking a question about any 
keyword or current topic, or entering the keyword or topic and "?". 
Selected data will be displayed on keywords or related topics if the 
word is mentioned in any sentence and the datafile has most recently 
been accessed.

If you answer "Y" or "y" when asked if you want to create a datafile, 
you will then be asked to list any related topics. Up to eight can be 
entered, or none by pressing <ENTER>, though this seems a waste of 
memory space!

You will then be asked to enter specific data on the keyword and 
each related topic in turn. When complete, you have the opportunity to 
browse through your completed file by pressing a number for each topic, 
or editing the file by pressing <DEL>.

The editor allows you to keep any entry intact without change by 
pressing <ENTER>, but if you do start to change it, you must complete 
the whole line. No COPY key like the good old BEEB, I'm afraid!

When not in edtitor mode, pressing <ENTER> returns you to normal (!) 
conversation with Doctor Feelgood.


%H2%RELATED PROGRAMS%H2%

I have compacted versions of this program for the Z88 and BBC B. The 
latter includes code to access Superior Software's amazing "SPEECH" 
program, so that Doctor Feelgood can actually speak to you!

I would be very pleased to hear from anyone with comments or ideas 
about the program. If you want the compacted versions on 5 1/4" floppy 
disc, please send 5 to cover costs of disc and postage.

Mike Smith,
57 Arlington Drive, Macclesfield, Cheshire, SK11 8QL.
%CO:B,12,60%%CO:C,12,48%%CO:D,12,36%%CO:E,12,24%%CO:F,12,12%