ArticleslgStudy

science

Artificial Intelligence Markup Language

Artificial Intelligence Markup Language is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Artificial Intelligence Markup Language rather than just read about it. In short: Artificial Intelligence Markup Language (AIML) is an XML dialect for creating natural language software agents. History The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between 1995 and 2002.

Key takeaways

  • Artificial Intelligence Markup Language belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Artificial Intelligence Markup Language to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Artificial Intelligence Markup Language from memory before moving on to harder problems.

Reference excerpt

Artificial Intelligence Markup Language (AIML) is an XML dialect for creating natural language software agents.

History The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between 1995 and 2002. AIML 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 Competition in Artificial Intelligence three times, and was also the Chatterbox Challenge Champion in 2004. Because the A.L.I.C.E. AIML set was released under the 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 semi-formal specification and a W3C XML Schema for AIML are available. Noel Bush is credited as the author of the formal specification, while Richard S. Wallace is listed as the creator of AIML, and the Working Draft names contributors including Thomas Ringate, Anthony Taylor, and Jon Baer . Since early 2013, The A.L.I.C.E foundation has been working on a draft specification for AIML 2.0.

Elements of AIML AIML contains several elements. The most important of these are described in further detail below.

Categories Categories in AIML form 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 Michael N.S Evanious."

Patterns 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, substantially less complex than regular expressions and as such less than level 3 in the Chomsky hierarchy. To compensate for the simple pattern matching capabilities, AIML interpreters can provide preprocessing functions to expand abbreviations, remove misspellings, etc. The AIML syntax itself is at least as complex as finite-state machines and as such at least of level 3 in the Chomsky hierarchy. This is because a state correlates to one topic. To implement that behavior, the topic should have a "*" Pattern to make sure, that the state is not left accidentally. A state transit is implemented with the <think><set name="topic">state2</set></think> Tag. This way, the bot will be able to "remember" the topic talked about or even user privileges, which are gained during the chat.

Templates 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 <bot name="name"/>.

which will substitute the bot's name into the sentence, or

You told me you are <get name="user-age"/> years old.

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 (Symbolic Reduction in Artificial Intelligence). This can be used to implement synonymy, as in this example (where CDATA is used to avoid the need for XML escaping):

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.

References

Worked examples

Example 1 — a first encounter with Artificial Intelligence Markup Language

Start with the simplest possible case. Write down what Artificial Intelligence Markup Language claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Artificial Intelligence Markup Language before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Artificial Intelligence Markup Language ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Artificial Intelligence Markup Language

In research
Artificial Intelligence Markup Language appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Artificial Intelligence Markup Language in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Artificial Intelligence Markup Language is common in secondary-school and first-year university syllabi. It links to neighbouring topics Free artificial intelligence applications, XML markup languages, so understanding it makes those chapters shorter.
In everyday life
Look for Artificial Intelligence Markup Language outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Artificial Intelligence Markup Language” →

How to study Artificial Intelligence Markup Language in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Artificial Intelligence Markup Language means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Artificial Intelligence Markup Language out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Artificial Intelligence Markup Language in simple terms?

Artificial Intelligence Markup Language (AIML) is an XML dialect for creating natural language software agents. History The XML dialect called AIML was developed by Richard Wallace and a worldwide free software community between 1995 and 2002.

Why does Artificial Intelligence Markup Language matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Artificial Intelligence Markup Language?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Artificial Intelligence Markup Language.

Tags

  • Free artificial intelligence applications
  • XML markup languages

Keep exploring