Files
jeffshrager a72cdbd256 no message
2023-02-10 10:20:53 -08:00

133 lines
30 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- saved from url=(0035)http://chayden.net/eliza/Eliza.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><script type="text/javascript" src="./Eliza test._files/1.txt"></script><script type="text/javascript" src="./Eliza test._files/1(1).txt"></script><script type="text/javascript" src="./Eliza test._files/moatframe.js"></script><title>Eliza test.</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="Microsoft Border" content="none, default">
<style type="text/css">.at-icon{fill:#fff;border:0}.at-icon-wrapper{display:inline-block;overflow:hidden}a .at-icon-wrapper{cursor:pointer}.at-rounded,.at-rounded-element .at-icon-wrapper{border-radius:12%}.at-circular,.at-circular-element .at-icon-wrapper{border-radius:50%}.addthis_32x32_style .at-icon{width:2pc;height:2pc}.addthis_24x24_style .at-icon{width:24px;height:24px}.addthis_20x20_style .at-icon{width:20px;height:20px}.addthis_16x16_style .at-icon{width:1pc;height:1pc}#at16lb{display:none;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1001;background-color:#000;opacity:.001}#at_complete,#at_error,#at_share,#at_success{position:static!important}.at15dn{display:none}#at15s,#at16p,#at16p form input,#at16p label,#at16p textarea,#at_share .at_item{font-family:arial,helvetica,tahoma,verdana,sans-serif!important;font-size:9pt!important;outline-style:none;outline-width:0;line-height:1em}* html #at15s.mmborder{position:absolute!important}#at15s.mmborder{position:fixed!important;width:250px!important}#at15s{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);float:none;line-height:1em;margin:0;overflow:visible;padding:5px;text-align:left;position:absolute}#at15s a,#at15s span{outline:0;direction:ltr;text-transform:none}#at15s .at-label{margin-left:5px}#at15s .at-icon-wrapper{width:1pc;height:1pc;vertical-align:middle}#at15s .at-icon{width:1pc;height:1pc}.at4-icon{display:inline-block;background-repeat:no-repeat;background-position:top left;margin:0;overflow:hidden;cursor:pointer}.addthis_16x16_style .at4-icon,.addthis_default_style .at4-icon,.at4-icon,.at-16x16{width:1pc;height:1pc;line-height:1pc;background-size:1pc!important}.addthis_32x32_style .at4-icon,.at-32x32{width:2pc;height:2pc;line-height:2pc;background-size:2pc!important}.addthis_24x24_style .at4-icon,.at-24x24{width:24px;height:24px;line-height:24px;background-size:24px!important}.addthis_20x20_style .at4-icon,.at-20x20{width:20px;height:20px;line-height:20px;background-size:20px!important}.at4-icon.circular,.circular .at4-icon,.circular.aticon{border-radius:50%}.at4-icon.rounded,.rounded .at4-icon{border-radius:4px}.at4-icon-left{float:left}#at15s .at4-icon{text-indent:20px;padding:0;overflow:visible;white-space:nowrap;background-size:1pc;width:1pc;height:1pc;background-position:top left;display:inline-block;line-height:1pc}.addthis_vertical_style .at4-icon,.at4-follow-container .at4-icon{margin-right:5px}html>body #at15s{width:250px!important}#at15s.atm{background:none!important;padding:0!important;width:10pc!important}#at15s_inner{background:#fff;border:1px solid #fff;margin:0}#at15s_head{position:relative;background:#f2f2f2;padding:4px;cursor:default;border-bottom:1px solid #e5e5e5}.at15s_head_success{background:#cafd99!important;border-bottom:1px solid #a9d582!important}.at15s_head_success a,.at15s_head_success span{color:#000!important;text-decoration:none}#at15s_brand,#at15sptx,#at16_brand{position:absolute}#at15s_brand{top:4px;right:4px}.at15s_brandx{right:20px!important}a#at15sptx{top:4px;right:4px;text-decoration:none;color:#4c4c4c;font-weight:700}#at15sptx:hover{text-decoration:underline}#at16_brand{top:5px;right:30px;cursor:default}#at_hover{padding:4px}#at_hover .at_item,#at_share .at_item{background:#fff!important;float:left!important;color:#4c4c4c!important}#at_share .at_item .at-icon-wrapper{margin-right:5px}#at_hover .at_bold{font-weight:700;color:#000!important}#at_hover .at_item{width:7pc!important;padding:2px 3px!important;margin:1px;text-decoration:none!important}#at_hover .at_item.athov,#at_hover .at_item:focus,#at_hover .at_item:hover{margin:0!important}#at_hover .at_item.athov,#at_hover .at_item:focus,#at_hover .at_item:hover,#at_share .at_item.athov,#at_share .at_item:hover{background:#f2f2f2!important;border:1px solid #e5e5e5;color:#000!important;text-decoration:none}.ipad #at_hover .at_item:focus{background:#fff!important;border:1px solid #fff}.at15t{display:block!important;height:1pc!important;line-height:1pc!important;padding-left:20px!important;background-position:0 0;text-align:left}.addthis_button,.at15t{cursor:pointer}.addthis_toolbox a.at300b,.addthis_toolbox a.at300m{width:auto}.addthis_toolbox a{margin-bottom:5px;line-height:initial}.addthis_toolbox.addthis_vertical_style{width:200px}.addthis_button_facebook_like .fb_iframe_widget{line-height:100%}.addthis_button_facebook_like iframe.fb_iframe_widget_lift{max-width:none}.addthis_toolbox a.addthis_button_counter,.addthis_toolbox a.addthis_button_facebook_like,.addthis_toolbox a.addthis_button_facebook_send,.addthis_toolbox a.addthis_button_facebook_share,.addthis_toolbox a.addthis_button_foursquare,.addthis_toolbox a.addthis_button_linkedin_counter,.addthis_toolbox a.addthis_button_pinterest_pinit,.addthis_toolbox a.addthis_button_tweet{display:inline-block}.addthis_toolbox span.addthis_follow_label{display:none}.addthis_toolbox.addthis_vertical_style span.addthis_follow_label{display:block;white-space:nowrap}.addthis_toolbox.addthis_vertical_style a{display:block}.addthis_toolbox.addthis_vertical_style.addthis_32x32_style a{line-height:2pc;height:2pc}.addthis_toolbox.addthis_vertical_style .at300bs{margin-right:4px;float:left}.addthis_toolbox.addthis_20x20_style span{line-height:20px}.addthis_toolbox.addthis_32x32_style span{line-height:2pc}.addthis_toolbox.addthis_pill_combo_style .addthis_button_compact .at15t_compact,.addthis_toolbox.addthis_pill_combo_style a{float:left}.addthis_toolbox.addthis_pill_combo_style a.addthis_button_tweet{margin-top:-2px}.addthis_toolbox.addthis_pill_combo_style .addthis_button_compact .at15t_compact{margin-right:4px}.addthis_default_style .addthis_separator{margin:0 5px;display:inline}div.atclear{clear:both}.addthis_default_style .addthis_separator,.addthis_default_style .at4-icon,.addthis_default_style .at300b,.addthis_default_style .at300bo,.addthis_default_style .at300bs,.addthis_default_style .at300m{float:left}.at300b img,.at300bo img{border:0}a.at300b .at4-icon,a.at300m .at4-icon{display:block}.addthis_default_style .at300b,.addthis_default_style .at300bo,.addthis_default_style .at300m{padding:0 2px}.at300b,.at300bo,.at300bs,.at300m{cursor:pointer}.addthis_button_facebook_like.at300b:hover,.addthis_button_facebook_like.at300bs:hover,.addthis_button_facebook_send.at300b:hover,.addthis_button_facebook_send.at300bs:hover{opacity:1}.addthis_20x20_style .at15t,.addthis_20x20_style .at300bs{overflow:hidden;display:block;height:20px!important;width:20px!important;line-height:20px!important}.addthis_32x32_style .at15t,.addthis_32x32_style .at300bs{overflow:hidden;display:block;height:2pc!important;width:2pc!important;line-height:2pc!important}.at300bs{overflow:hidden;display:block;background-position:0 0;height:1pc;width:1pc;line-height:1pc!important}.addthis_default_style .at15t_compact,.addthis_default_style .at15t_expanded{margin-right:4px}#at_share .at_item{width:123px!important;padding:4px;margin-right:2px;border:1px solid #fff}#at16p{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);z-index:10000001;position:absolute;top:50%;left:50%;width:300px;padding:10px;margin:0 auto;margin-top:-185px;margin-left:-155px;font-family:arial,helvetica,tahoma,verdana,sans-serif;font-size:9pt;color:#5e5e5e}#at_share{margin:0;padding:0}#at16pt{position:relative;background:#f2f2f2;height:13px;padding:5px 10px}#at16pt a,#at16pt h4{font-weight:700}#at16pt h4{display:inline;margin:0;padding:0;font-size:9pt;color:#4c4c4c;cursor:default}#at16pt a{position:absolute;top:5px;right:10px;color:#4c4c4c;text-decoration:none;padding:2px}#at15sptx:focus,#at16pt a:focus{outline:thin dotted}#at15s #at16pf a{top:1px}#_atssh{width:1px!important;height:1px!important;border:0!important}.atm{width:10pc!important;padding:0;margin:0;line-height:9pt;letter-spacing:normal;font-family:arial,helvetica,tahoma,verdana,sans-serif;font-size:9pt;color:#444;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABtJREFUeNpiZGBgaGAgAjAxEAlGFVJHIUCAAQDcngCUgqGMqwAAAABJRU5ErkJggg==);padding:4px}.atm-f{text-align:right;border-top:1px solid #ddd;padding:5px 8px}.atm-i{background:#fff;border:1px solid #d5d6d6;padding:0;margin:0;box-shadow:1px 1px 5px rgba(0,0,0,.15)}.atm-s{margin:0!important;padding:0!important}.atm-s a:focus{border:transparent;outline:0;transition:none}#at_hover.atm-s a,.atm-s a{display:block;text-decoration:none;padding:4px 10px;color:#235dab!important;font-weight:400;font-style:normal;transition:none}#at_hover.atm-s .at_bold{color:#235dab!important}#at_hover.atm-s a:hover,.atm-s a:hover{background:#2095f0;text-decoration:none;color:#fff!important}#at_hover.atm-s .at_bold{font-weight:700}#at_hover.atm-s a:hover .at_bold{color:#fff!important}.atm-s a .at-label{vertical-align:middle;margin-left:5px;direction:ltr}.at_PinItButton{display:block;width:40px;height:20px;padding:0;margin:0;background-image:url(//s7.addthis.com/static/t00/pinit00.png);background-repeat:no-repeat}.at_PinItButton:hover{background-position:0 -20px}.addthis_toolbox .addthis_button_pinterest_pinit{position:relative}.at-share-tbx-element .fb_iframe_widget span{vertical-align:baseline!important}#at16pf{height:auto;text-align:right;padding:4px 8px}.at-privacy-info{position:absolute;left:7px;bottom:7px;cursor:pointer;text-decoration:none;font-family:helvetica,arial,sans-serif;font-size:10px;line-height:9pt;letter-spacing:.2px;color:#666}.at-privacy-info:hover{color:#000}.body .wsb-social-share .wsb-social-share-button-vert{padding-top:0;padding-bottom:0}.body .wsb-social-share.addthis_counter_style .addthis_button_tweet.wsb-social-share-button{padding-top:40px}.body .wsb-social-share.addthis_counter_style .addthis_button_facebook_like.wsb-social-share-button{padding-top:21px}@media print{#at4-follow,#at4-share,#at4-thankyou,#at4-whatsnext,#at4m-mobile,#at15s,.at4,.at4-recommended{display:none!important}}@media screen and (max-width:400px){.at4win{width:100%}}@media screen and (max-height:700px) and (max-width:400px){.at4-thankyou-inner .at4-recommended-container{height:122px;overflow:hidden}.at4-thankyou-inner .at4-recommended .at4-recommended-item:first-child{border-bottom:1px solid #c5c5c5}}</style><style type="text/css">.at-branding-logo{font-family:helvetica,arial,sans-serif;text-decoration:none;font-size:10px;display:inline-block;margin:2px 0;letter-spacing:.2px}.at-branding-logo .at-branding-icon{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAMAAAC67D+PAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAZQTFRF////+GlNUkcc1QAAAB1JREFUeNpiYIQDBjQmAwMmkwEM0JnY1WIxFyDAABGeAFEudiZsAAAAAElFTkSuQmCC")}.at-branding-logo .at-branding-icon,.at-branding-logo .at-privacy-icon{display:inline-block;height:10px;width:10px;margin-left:4px;margin-right:3px;margin-bottom:-1px;background-repeat:no-repeat}.at-branding-logo .at-privacy-icon{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAMAAABR24SMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhQTFRF8fr9ot/xXcfn2/P5AKva////////AKTWodjhjAAAAAd0Uk5T////////ABpLA0YAAAA6SURBVHjaJMzBDQAwCAJAQaj7b9xifV0kUKJ9ciWxlzWEWI5gMF65KUTv0VKkjVeTerqE/x7+9BVgAEXbAWI8QDcfAAAAAElFTkSuQmCC")}.at-branding-logo span{text-decoration:none}.at-branding-logo .at-branding-addthis,.at-branding-logo .at-branding-powered-by{color:#666}.at-branding-logo .at-branding-addthis:hover{color:#333}.at-cv-with-image .at-branding-addthis,.at-cv-with-image .at-branding-addthis:hover{color:#fff}a.at-branding-logo:visited{color:initial}.at-branding-info{display:inline-block;padding:0 5px;color:#666;border:1px solid #666;border-radius:50%;font-size:10px;line-height:9pt;opacity:.7;transition:all .3s ease;text-decoration:none}.at-branding-info span{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.at-branding-info:before{content:'i';font-family:Times New Roman}.at-branding-info:hover{color:#0780df;border-color:#0780df}</style><style type="text/css" id="js-cmt-css">.js-OldComments { margin-bottom: 1px; }.js-LeaveComment { margin: 3pt 0; }.js-CreateComment, .js-commentInputOpenID, .js-commentOpenID { display: none; }.js-OpenIDError { color: #F00; display: block; max-width: 250px;}.js-CCMore { padding-left: 3px }.js-CreateCommentBg { margin: 1em; padding: 0.5em; border: solid 1px #c0c0c0; text-align: left; float: left; }.js-PageNavTop { margin-bottom: 3px; } .js-PageNavBottom { margin-top: 3px; } .js-commentFieldSubject { font-weight: bold; margin-bottom: 5px; }.js-commentFieldLabel { margin-top: 5px; }.js-commentOpenID { margin-top: 5px; }.js-commentOpenIDURL { margin-left: 3px; padding-left: 19px; min-height: 16px; background: url('../images/openid-16x16.png') no-repeat 0 -2px; font-weight: bold; }.js-commentFieldNote { font-family: Verdana; font-size: 7pt; color: #808080; }.js-siteAdmin { font-weight: bold; }.js-singleComment { font-size: 8pt; font-family: Verdana, Helvetica; border: solid 1px #c0c0c0; text-align: left; margin-bottom: -1px; }.js-singleCommentBg { padding: 0.3em; position: relative; }.js-singleCommentINFO { color: #808080; float: right; padding: 3px; margin-left: 2em; text-align: right;}.js-singleCommentAvatar { margin-right: 1px; margin-left: 0.5em; float: right; }.js-singleCommentDate { font-size: 7pt; }.js-singleCommentOrigin { position: absolute; bottom: 0.3em; font-size: 7pt; color: #808080; }.js-singleCommentKarmaComMod { clear: both; }.js-singleCommentKarma { float: left; font-size: 7pt; color: #808080; margin-right: 2em; padding-top: 3px; }.js-singleCommentKarmaShow { float: left; font-size: 7pt; color: #808080; margin-right: 2em; padding-top: 3px; display: none; }.js-singleCommentKarmaScore { display: none; }.js-singleCommentComMod { white-space: nowrap; float: left; font-size: 7pt; color: #808080; display: none; padding-top: 3px; margin-right: 3em; }.js-singleCommentCtls { float: right; white-space: nowrap; }.js-singleCommentComModMark {}.js-commentControl { float: left; margin-right: 2em; }.js-CmtButton { margin-right: 0.5em }.js-CCButtons { margin: 0.3em 0 0.5em 0 }.js-poweredBy { margin-top: 2pt; margin-right: 2pt; color: #808080; font-size: 7pt; font-family: Verdana, Helvetica; }.js-poweredBy A { text-decoration: none; color: #8080a0 }.js-antispamBy { text-align: right; }.js-Progress { position: absolute; visibility: hidden; right: 5px; top: 5px; width: 15px; height: 15px; }.js-SettingsWindow { position: absolute; margin: 2px; padding: 0.3em; border: solid 1px #cccccc; color: #404040; white-space: normal; }.js-ControlBlockText, .js-ControlBlockTextDisabled {font-size: 8pt; text-align: left;}.js-ControlBlockButton {font-size: 8pt;}.js-ControlBlockTextDisabled {color: #808080}</style><style type="text/css" id="js-wbr-css">.js-singleCommentTEXT{word-wrap:break-word}</style><script type="text/javascript" charset="utf-8" async="" src="./Eliza test._files/menu.c9fe060fcef7c720d644.js"></script><script type="text/javascript" charset="utf-8" async="" src="./Eliza test._files/14.2dfb61b890959f78272d.js"></script></head>
<body>
<h1>Eliza Test </h1>
<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub="cchayden";</script><a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, &#39;&#39;, &#39;[URL]&#39;, &#39;[TITLE]&#39;)" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="./Eliza test._files/lg-bookmark-en.gif" alt="Bookmark and Share" style="border: 0pt none ;" height="16" width="125"></a>
<script type="text/javascript" src="./Eliza test._files/addthis_widget.js"></script><div id="_atssh" style="visibility: hidden; height: 1px; width: 1px; position: absolute; top: -9999px; z-index: 100000;"><iframe id="_atssh700" title="AddThis utility frame" style="height: 1px; width: 1px; position: absolute; top: 0px; z-index: 100000; border: 0px; left: 0px;" src="./Eliza test._files/sh.f48a1a04fe8dbf021b4cda1d.html"></iframe></div><style id="service-icons-0"></style><!-- AddThis Button END -->
<p>This applet implements the classic "Eliza" program, a program
that
communicates in natural language. It pretends to be a Rogerian
psychologist. </p>
<p>The original ELIZA was described by Joseph Weizenbaum in <i>Communications
of the ACM</i>
in January 1966. ELIZA was one of the first programs that attempted to
communicate in
natural language. The article was an attempt to demystify the behavior
of the program, and
included a detailed description of the program. ELIZA is based on a
"script"
consisting of patterns and corresponding responses. An appendiz to the
article contained
the complete script for the Rogerial psychologist. </p>
<p>This rendition of ELIZA is a complete and faithful
implementation of the program
described by Weizenbaum. The script language has been reformatted for
clarity, but is
unchanged in its content. </p>
<p>
<applet code="Eliza/Eliza.class" height="200" width="600"> <param name="script" value="http://chayden.org/eliza/script"></applet>
</p>
<h2>The Source</h2>
<ul>
<li><a href="http://chayden.net/eliza/Eliza/Decomp.java">Decomp.java</a>
- Decomposition rule. </li>
<li><a href="http://chayden.net/eliza/Eliza/DecompList.java">DecompList.java</a>
- List of decomposition rules. </li>
<li><a href="http://chayden.net/eliza/Eliza/Key.java">Key.java</a> -
A key is the first thing the program looks for in the input. </li>
<li><a href="http://chayden.net/eliza/Eliza/KeyList.java">KeyList.java</a>-
The list of all keys. </li>
<li><a href="http://chayden.net/eliza/Eliza/KeyStack.java">KeyStack.java</a>
- The program arranges all keys found in the input into a rank-ordered
stack. </li>
<li><a href="http://chayden.net/eliza/Eliza/Mem.java">Mem.java</a> -
Used to store responses for later use. </li>
<li><a href="http://chayden.net/eliza/Eliza/PrePost.java">PrePost.java</a>
- Holds word paris for pre or post rewriting. </li>
<li><a href="http://chayden.net/eliza/Eliza/PrePostList.java">PrePostList.java</a>
- List of all the pre or post rules. </li>
<li><a href="http://chayden.net/eliza/Eliza/ReasembList.java">ReasembList.java</a>
- List of reassembly rules (goes with a decomp rule). </li>
<li><a href="http://chayden.net/eliza/Eliza/EString.java">EString.java</a>
- String matching and transformation helper functions. </li>
<li><a href="http://chayden.net/eliza/Eliza/SynList.java">SynList.java</a>
- List of EWordList synonym lists. </li>
<li><a href="http://chayden.net/eliza/Eliza/WordList.java">WordList.java</a>
- List of words, used for synonyms. </li>
<li><a href="http://chayden.net/eliza/Eliza/Eliza.java">Eliza.java</a>
- The main applet program. </li>
<li><a href="http://chayden.net/eliza/Eliza/ElizaApp.java">ElizaApp.java</a>
The main application program. Use either this or Eliza.java, not both. </li>
<li><a href="http://chayden.net/eliza/Eliza/ElizaMain.java">ElizaMain.java</a>
- The main driver. </li>
</ul>
<h2>The Script</h2>
<a href="http://chayden.net/eliza/instructions.txt">Instructions</a> on how
to modify the script file.
<h2>The Executable</h2>
<p>This <a href="http://chayden.net/eliza/Eliza.zip">zip file</a>
contains the compiled class files and the script.<br>
</p>
<p>I wrote this to help learn Java. You are welcome to make use
of it however you want.
This version is a reworking of a program I wrote back in 1983 to teach
myself how to use
the Macintosh. I had written some really good documentation at that
time, explaining how
to write your own scripts. For now, you can look at Weizenbaum's
article and the script I
have provided to see how to write scripts. </p>
<p>You can specify your own script as an applet parameter. See
the source of this page to
see how to do that. </p>
<p>Note on making your own page: I don't fully understand all the
interactions of the
components of the applet tag. Here is what I use: <br>
&lt;applet code="Eliza/Eliza.class" width="600"
height="200"&gt; <br>
&lt;param name="script"
value="http://chayden.org/chayden/eliza/script"&gt; <br>
&lt;/applet&gt; </p>
<p>This says that the compiled class file Eliza.class is in a
subdirectory Eliza
(capitalization is important). Since there are many class files, and
they are all in the
Eliza subdirectory, it would seem to make sense to set "codebase" to
"Eliza" and code to "Eliza.class". However, this does not work. </p>
<p>Once the program starts, it needs to read a script file, and
so the "param"
value gives a URL of the script file. This must be on the same server
that supplied the
applet (because of Java security rules). </p>
<p>If you use the HTML shown above, and it you store the class
files in an Eliza
subdirectory relative to the web page, and if you point to a script
file on the same
server, you should be able to get this program running on your machine
(many people have
reported success in doing this). Be aware that certain tools (such as
Microsoft Front
Page) will split the "code" tag into "code" and "codebase"
breaking the applet. This is the major source of difficulties reported
to me. </p>
<p>If you have comments or suggestions, please <a href="mailto:cchayden@gmail.com">let me
know.</a> </p>
<div id="" class="js-kit-comments" style="display: block; visibility: visible;"><script charset="utf-8" src="./Eliza test._files/comments-data.js"></script></div>
<p><a href="http://chayden.net/Index.shtml"><img alt="o" src="./Eliza test._files/back.gif" height="22" width="20">Go
back to Charles Hayden's Home Page </a></p>
<p></p>
<script src="./Eliza test._files/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct="UA-367225";
urchinTracker();
</script>
<script src="./Eliza test._files/comments.js"></script>
<div id="at20mc" class="" style="z-index: 1000000; position: static;"><div id="at15s" class=" atm" onmouseover="_atw.xwa()" onmouseout="if (this.className.indexOf(&#39;border&#39;)==-1) addthis_close()" style="z-index: 1000000; position: absolute; visibility: visible; top: 82.4375px; left: 8px; display: none;"><div class="atm-i"><div id="at15s_head" style="display: none;"><span id="at15ptc">Bookmark &amp; Share</span><span id="at15s_brand" class="at15s_brandx"></span><a id="at15sptx" class="" href="http://chayden.net/eliza/Eliza.html#" tabindex="9000" onclick="return _atw.clb()" onkeydown="if(!e){var e = window.event||event;}if(e.keyCode){_ate.maf.key=e.keyCode;}else{if(e.which){_ate.maf.key=e.which;}}if(_ate.maf.key==9){ addthis_close(); _ate.maf.sib.tabIndex=9001;_ate.maf.sib.focus();}else{/*alert(_ate.maf.key)*/} _ate.maf.key=null">X</a></div><div id="at_hover" class="atm-s" style="display: block;"><a id="atic_facebook" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(59, 89, 152);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-facebook-1" title="Facebook" alt="Facebook" class="at-icon at-icon-facebook"><title id="at-svg-facebook-1">Facebook</title><g><path d="M22 5.16c-.406-.054-1.806-.16-3.43-.16-3.4 0-5.733 1.825-5.733 5.17v2.882H9v3.913h3.837V27h4.604V16.965h3.823l.587-3.913h-4.41v-2.5c0-1.123.347-1.903 2.198-1.903H22V5.16z" fill-rule="evenodd"></path></g></svg></span><span class="at-label at-size-16">Facebook</span></a><a id="atic_twitter" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(29, 161, 242);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-twitter-2" title="Twitter" alt="Twitter" class="at-icon at-icon-twitter"><title id="at-svg-twitter-2">Twitter</title><g><path d="M27.996 10.116c-.81.36-1.68.602-2.592.71a4.526 4.526 0 0 0 1.984-2.496 9.037 9.037 0 0 1-2.866 1.095 4.513 4.513 0 0 0-7.69 4.116 12.81 12.81 0 0 1-9.3-4.715 4.49 4.49 0 0 0-.612 2.27 4.51 4.51 0 0 0 2.008 3.755 4.495 4.495 0 0 1-2.044-.564v.057a4.515 4.515 0 0 0 3.62 4.425 4.52 4.52 0 0 1-2.04.077 4.517 4.517 0 0 0 4.217 3.134 9.055 9.055 0 0 1-5.604 1.93A9.18 9.18 0 0 1 6 23.85a12.773 12.773 0 0 0 6.918 2.027c8.3 0 12.84-6.876 12.84-12.84 0-.195-.005-.39-.014-.583a9.172 9.172 0 0 0 2.252-2.336" fill-rule="evenodd"></path></g></svg></span><span class="at-label at-size-16">Twitter</span></a><a id="atic_print" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(115, 138, 141);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-print-3" title="Print" alt="Print" class="at-icon at-icon-print"><title id="at-svg-print-3">Print</title><g><path d="M24.67 10.62h-2.86V7.49H10.82v3.12H7.95c-.5 0-.9.4-.9.9v7.66h3.77v1.31L15 24.66h6.81v-5.44h3.77v-7.7c-.01-.5-.41-.9-.91-.9zM11.88 8.56h8.86v2.06h-8.86V8.56zm10.98 9.18h-1.05v-2.1h-1.06v7.96H16.4c-1.58 0-.82-3.74-.82-3.74s-3.65.89-3.69-.78v-3.43h-1.06v2.06H9.77v-3.58h13.09v3.61zm.75-4.91c-.4 0-.72-.32-.72-.72s.32-.72.72-.72c.4 0 .72.32.72.72s-.32.72-.72.72zm-4.12 2.96h-6.1v1.06h6.1v-1.06zm-6.11 3.15h6.1v-1.06h-6.1v1.06z"></path></g></svg></span><span class="at-label at-size-16">Print</span></a><a id="atic_email" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(132, 132, 132);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-email-4" title="Email" alt="Email" class="at-icon at-icon-email"><title id="at-svg-email-4">Email</title><g><g fill-rule="evenodd"></g><path d="M27 22.757c0 1.24-.988 2.243-2.19 2.243H7.19C5.98 25 5 23.994 5 22.757V13.67c0-.556.39-.773.855-.496l8.78 5.238c.782.467 1.95.467 2.73 0l8.78-5.238c.472-.28.855-.063.855.495v9.087z"></path><path d="M27 9.243C27 8.006 26.02 7 24.81 7H7.19C5.988 7 5 8.004 5 9.243v.465c0 .554.385 1.232.857 1.514l9.61 5.733c.267.16.8.16 1.067 0l9.61-5.733c.473-.283.856-.96.856-1.514v-.465z"></path></g></svg></span><span class="at-label at-size-16">Email</span></a><a id="atic_pinterest_share" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(203, 32, 39);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-pinterest_share-5" title="Pinterest" alt="Pinterest" class="at-icon at-icon-pinterest_share"><title id="at-svg-pinterest_share-5">Pinterest</title><g><path d="M7 13.252c0 1.81.772 4.45 2.895 5.045.074.014.178.04.252.04.49 0 .772-1.27.772-1.63 0-.428-1.174-1.34-1.174-3.123 0-3.705 3.028-6.33 6.947-6.33 3.37 0 5.863 1.782 5.863 5.058 0 2.446-1.054 7.035-4.468 7.035-1.232 0-2.286-.83-2.286-2.018 0-1.742 1.307-3.43 1.307-5.225 0-1.092-.67-1.977-1.916-1.977-1.692 0-2.732 1.77-2.732 3.165 0 .774.104 1.63.476 2.336-.683 2.736-2.08 6.814-2.08 9.633 0 .87.135 1.728.224 2.6l.134.137.207-.07c2.494-3.178 2.405-3.8 3.533-7.96.61 1.077 2.182 1.658 3.43 1.658 5.254 0 7.614-4.77 7.614-9.067C26 7.987 21.755 5 17.094 5 12.017 5 7 8.15 7 13.252z" fill-rule="evenodd"></path></g></svg></span><span class="at-label at-size-16">Pinterest</span></a><a id="atic_gmail" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(219, 68, 55);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-gmail-6" title="Gmail" alt="Gmail" class="at-icon at-icon-gmail"><title id="at-svg-gmail-6">Gmail</title><g><g fill-rule="evenodd"></g><path opacity=".3" d="M7.03 8h17.94v17H7.03z"></path><path d="M7.225 8h-.41C5.815 8 5 8.84 5 9.876v13.248C5 24.16 5.812 25 6.815 25h.962V12.714L16 19.26l8.223-6.546V25h.962C26.188 25 27 24.16 27 23.124V9.876C27 8.84 26.186 8 25.185 8h-.41L16 15.506 7.225 8z"></path></g></svg></span><span class="at-label at-size-16">Gmail</span></a><a id="atic_linkedin" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(0, 119, 181);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-linkedin-7" title="LinkedIn" alt="LinkedIn" class="at-icon at-icon-linkedin"><title id="at-svg-linkedin-7">LinkedIn</title><g><path d="M26 25.963h-4.185v-6.55c0-1.56-.027-3.57-2.175-3.57-2.18 0-2.51 1.7-2.51 3.46v6.66h-4.182V12.495h4.012v1.84h.058c.558-1.058 1.924-2.174 3.96-2.174 4.24 0 5.022 2.79 5.022 6.417v7.386zM8.23 10.655a2.426 2.426 0 0 1 0-4.855 2.427 2.427 0 0 1 0 4.855zm-2.098 1.84h4.19v13.468h-4.19V12.495z" fill-rule="evenodd"></path></g></svg></span><span class="at-label at-size-16">LinkedIn</span></a><a id="atic_more" href="http://chayden.net/eliza/Eliza.html#"><span class="at-icon-wrapper" style="background-color: rgb(255, 101, 80);"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32" version="1.1" role="img" aria-labelledby="at-svg-addthis-8" title="More..." alt="More..." class="at-icon at-icon-addthis"><title id="at-svg-addthis-8">AddThis</title><g><path d="M18 14V8h-4v6H8v4h6v6h4v-6h6v-4h-6z" fill-rule="evenodd"></path></g></svg></span><span class="at-label at-size-16">More... (181)</span></a><div style="clear: both;"></div></div><div class="atm-f" id="at15pf"><div><a class="at-branding-logo" href="https://www.addthis.com/website-tools/overview?utm_source=AddThis%20Tools&amp;utm_medium=image&amp;utm_campaign=AddThis%20compact%20menu" title="Powered by AddThis" target="_blank"><div class="at-branding-icon"></div><span class="at-branding-addthis">AddThis</span></a></div></div></div></div></div></body></html>