| Program
7-1 |
Simple validation of user
input |
| Program
7-2 |
Validation using a function
|
| Program
7-3 |
Checking single numbers
|
| Program
7-4 |
More flexible numerical
checking |
| Program
7-5 |
Fuzzy matching (simple).
Suggested input: cat or cats or cat
family |
| Program
7-6 |
Stripping leading and trailing
blanks. Suggested input: any word or phrase with spaces before and
after it |
| Program
7-7 |
More flexible fuzzy matching.
Suggested input: aluminum or aluminium or
I think the answer is aluminum or It's aluminium
I think |
| Program
7-8 |
ELIZA-based chat program.
JavaScript 1.1 (Netscape 3) only. Suggested input (response may take
a few seconds!): I think you are asking too much or
My favorite color is green because it reminds me of the countryside.
The system has only a handful of simple templates for illustrating
the basic techniques. View the source code to check out the templates.
|
| Program
7-9 |
ELIZA-based chat program.
JavaScript 1.2 (Netscape 4) only. Same suggested input as for Program
7-8 above. Same limitations apply. |
| Program
7-10 |
A simple grammar parser.
Suggested input: the dog bites the man or man bites
dog or a dog bites the man. Requires absolute matching
with no leading or trailing blanks. |
| Program
7-11 |
Checking syntax for Boolean
keyword searching. Suggested input to illustrate correct syntax (response
may take a few seconds!): "learning styles" or ("learning
styles" AND (computers OR "information technology")) or
(learning AND (styles OR strategies)) AND ("computer assisted"
AND (learning OR instruction)).
Suggested input for incorrect feedback: learning styles or
(learning AND (styles OR strategies)) AND (computers OR information
technology) |