The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between the years of 1995 and 2002. It formed the basis for what was initially a highly extended Eliza called "A.L.I.C.E." ("Artificial Linguistic Internet Computer Entity"), which won the annual Loebner Prize Contest for Most Human Computer three times, and was also the Chatterbox Challenge Champion in 2004.
Because the A.L.I.C.E. AIML set was released under the GNU GPL, and because most AIML interpreters are offered under a free or open source license, many "Alicebot clones" have been created based upon the original implementation of the program and its AIML knowledge base. Free AIML sets in several languages have been developed and made available by the user community. There are AIML interpreters available in Java, Ruby, Python, C++, C#, Pascal, and other languages (see below). A formal specification and a W3C XML Schema for AIML are available.
AIML contains several elements. The most important of these are described in further detail below.
Categories in AIML are the fundamental unit of knowledge. A category consists of at least two further elements: the pattern and template elements. Here is a simple category:
When this category is loaded, an AIML bot will respond to the input "What is your name" with the response "My name is John."
A pattern is a string of characters intended to match one or more user inputs. A literal pattern like
WHAT IS YOUR NAME
will match only one input, ignoring case: "what is your name". But patterns may also contain wildcards, which match one or more words. A pattern like
WHAT IS YOUR *
will match an infinite number of inputs, including "what is your name", "what is your shoe size", "what is your purpose in life", etc.
The AIML pattern syntax is a very simple pattern language, far less complicated than regular expressions. It tends to suffice for most chat-oriented purposes, and where it lacks, AIML interpreters can provide preprocessing functions to expand abbreviations, remove misspellings, etc.
A template specifies the response to a matched pattern. A template may be as simple as some literal text, like
My name is John.
A template may use variables, such as the example
My name is
which will substitute the bot's name into the sentence, or
You told me you are
which will substitute the user's age (if known) into the sentence.
Template elements include basic text formatting, conditional response (if-then/else), and random responses.
Templates may also redirect to other patterns, using an element called srai. This can be used to implement synonymy, as in this example:
The first category simply answers an input "what is your name" with a statement of the bot's name. The second category, however, says that the input "what are you called" should be redirected to the category that matches the input "what is your name"--in other words, it is saying that the two phrases are equivalent.
Templates can contain other types of content, which may be processed by whatever user interface the bot is talking through. So, for example, a template may use HTML tags for formatting, which can be ignored by clients that don't support HTML.
US Patent Issued to Power Integrations on Dec. 28 for "Method and Apparatus for Conditional Response to a Fault Condition in a Switching Power Supply" (California Inventors)
Dec 30, 2010; ALEXANDRIA, Va., Dec. 30 -- United States Patent no. 7,859,865, issued on Dec. 28, was assigned to Power Integrations Inc. (San...
The decision to go skiing often depends on ski reports But can you depend on them to accurately predict the snow depths and surfaces over which you'll ski? A conditional response to `How's the skiing?'
Jan 02, 1991; No question is asked more frequently of a ski writer than, naturally, "How's the skiing up there?" My answers to personal friends...