AIML as an A.I. Tool

Sometimes the statement of a simple fact can jog my memory to a series of other facts that I can relate to a given question and re-discover a usable solution. I have discovered that AIML can organize my personal collection of facts into a response that I can shape to fit my ever changing needs. As an example, a simple HTML dictionary:

Consider writing HTML web pages and not wanting to become a reference manual. Most times I just use same Search Engine to find the some answer that I have chosen not to commit to memory. Times have changed, and I now require a more tailored answer to my many questions. So, for now, I set up my HTML dictionary to look like the following:

Step 1, I go on over to w3schools.com’s web page and get the reference list of HTML tags. I use a spread sheet to create cross reference table. I then turn this reference data into an AIML file. Which I will call “html.aiml”. Now I have a quick reference type dictionary that have a whole bunch of useful pluses like speed, less internet usage time, and responses that I like, or can change to meet my needs.

<alice version="1.0" encoding="UTF-8">
	<topic name="html"> 
		<category>
			<pattern>show me a comment</pattern>
			<template>use this tag <!--...--></template>
		</category>
		<category>
			<pattern>show me a document type</pattern>
			<template>use this tag <!DOCTYPE></template>
		</category>
		<category>
			<pattern>show me a hyperlink</pattern>
			<template>use this tag <a></template>
		</category>
		<category>
			<pattern>show me a abbreviation</pattern>
			<template>use this tag <abbr></template>
		</category>
		<category>
			<pattern>show me a acronym</pattern>
			<template>use this tag <abbr></template>
		</category>
		<category>
			<pattern>show me a acronym</pattern>
			<template>use this tag <acronym></template>
		</category>
		<category>
			<pattern>show me a contact information</pattern>
			<template>use this tag <address></template>
		</category>
		<category>
			<pattern>show me a applet</pattern>
			<template>use this tag <applet></template>
		</category>
		<category>
			<pattern>show me a image map area</pattern>
			<template>use this tag <area></template>
		</category>
		<category>
			<pattern>show me a article</pattern>
			<template>use this tag <article></template>
		</category>
		<category>
			<pattern>show me a Other content</pattern>
			<template>use this tag <aside></template>
		</category>
		<category>
			<pattern>show me a sound content</pattern>
			<template>use this tag <audio></template>
		</category>
		<category>
			<pattern>show me a bold text</pattern>
			<template>use this tag <b></template>
		</category>
		<category>
			<pattern>show me a Document base URL</pattern>
			<template>use this tag <base></template>
		</category>
		<category>
			<pattern>show me a document font</pattern>
			<template>use this tag <basefont></template>
		</category>
		<category>
			<pattern>show me a Isolates part text</pattern>
			<template>use this tag <bdi></template>
		</category>
		<category>
			<pattern>show me a Override text direction</pattern>
			<template>use this tag <bdo></template>
		</category>
		<category>
			<pattern>show me a big text</pattern>
			<template>use this tag <big></template>
		</category>
		<category>
			<pattern>show me a from another source</pattern>
			<template>use this tag <blockquote></template>
		</category>
		<category>
			<pattern>show me a document body</pattern>
			<template>use this tag <body></template>
		</category>
		<category>
			<pattern>show me a single line break</pattern>
			<template>use this tag <br></template>
		</category>
		<category>
			<pattern>show me a clickable button</pattern>
			<template>use this tag <button></template>
		</category>
		<category>
			<pattern>show me a draw frame</pattern>
			<template>use this tag <canvas></template>
		</category>
		<category>
			<pattern>show me a table caption</pattern>
			<template>use this tag <caption></template>
		</category>
		<category>
			<pattern>show me a centered text</pattern>
			<template>use this tag <center></template>
		</category>
		<category>
			<pattern>show me a work title</pattern>
			<template>use this tag <cite></template>
		</category>
		<category>
			<pattern>show me a computer code</pattern>
			<template>use this tag <code></template>
		</category>
		<category>
			<pattern>show me a colgroup options</pattern>
			<template>use this tag <col></template>
		</category>
		<category>
			<pattern>show me a column group</pattern>
			<template>use this tag <colgroup></template>
		</category>
		<category>
			<pattern>show me a input control option</pattern>
			<template>use this tag <datalist></template>
		</category>
		<category>
			<pattern>show me a description list value</pattern>
			<template>use this tag <dd></template>
		</category>
		<category>
			<pattern>show me a deleted text</pattern>
			<template>use this tag <del></template>
		</category>
		<category>
			<pattern>show me a hideable details</pattern>
			<template>use this tag <details></template>
		</category>
		<category>
			<pattern>show me a term instance</pattern>
			<template>use this tag <dfn></template>
		</category>
		<category>
			<pattern>show me a dialog box</pattern>
			<template>use this tag <dialog></template>
		</category>
		<category>
			<pattern>show me a directory list</pattern>
			<template>use this tag <dir></template>
		</category>
		<category>
			<pattern>show me a document section</pattern>
			<template>use this tag <div></template>
		</category>
		<category>
			<pattern>show me a description list</pattern>
			<template>use this tag <dl></template>
		</category>
		<category>
			<pattern>show me a term description list</pattern>
			<template>use this tag <dt></template>
		</category>
		<category>
			<pattern>show me a emphasized text</pattern>
			<template>use this tag <em></template>
		</category>
		<category>
			<pattern>show me a app frame</pattern>
			<template>use this tag <embed></template>
		</category>
		<category>
			<pattern>show me a form element group</pattern>
			<template>use this tag <fieldset></template>
		</category>
		<category>
			<pattern>show me a Figure caption</pattern>
			<template>use this tag <figcaption></template>
		</category>
		<category>
			<pattern>show me a content frame</pattern>
			<template>use this tag <figure></template>
		</category>
		<category>
			<pattern>show me a Font for text</pattern>
			<template>use this tag <font></template>
		</category>
		<category>
			<pattern>show me a document footer</pattern>
			<template>use this tag <footer></template>
		</category>
		<category>
			<pattern>show me a form</pattern>
			<template>use this tag <form></template>
		</category>
		<category>
			<pattern>show me a frame</pattern>
			<template>use this tag <frame></template>
		</category>
		<category>
			<pattern>show me a frame set</pattern>
			<template>use this tag <frameset></template>
		</category>
		<category>
			<pattern>show me a HTML huge heading</pattern>
			<template>use this tag <h1></template>
		</category>
		<category>
			<pattern>show me a HTML large heading</pattern>
			<template>use this tag <h2></template>
		</category>
		<category>
			<pattern>show me a HTML big heading</pattern>
			<template>use this tag <h3></template>
		</category>
		<category>
			<pattern>show me a HTML heading</pattern>
			<template>use this tag <h4></template>
		</category>
		<category>
			<pattern>show me a HTML small heading</pattern>
			<template>use this tag <h5></template>
		</category>
		<category>
			<pattern>show me a HTML tiny heading</pattern>
			<template>use this tag <h6></template>
		</category>
		<category>
			<pattern>show me a document information</pattern>
			<template>use this tag <head></template>
		</category>
		<category>
			<pattern>show me a document header</pattern>
			<template>use this tag <header></template>
		</category>
		<category>
			<pattern>show me a horizontal line</pattern>
			<template>use this tag <hr></template>
		</category>
		<category>
			<pattern>show me a HTML root</pattern>
			<template>use this tag <html></template>
		</category>
		<category>
			<pattern>show me a alternate voice text</pattern>
			<template>use this tag <i></template>
		</category>
		<category>
			<pattern>show me a inline frame</pattern>
			<template>use this tag <iframe></template>
		</category>
		<category>
			<pattern>show me a image</pattern>
			<template>use this tag <img></template>
		</category>
		<category>
			<pattern>show me a input control</pattern>
			<template>use this tag <input></template>
		</category>
		<category>
			<pattern>show me a document inserted text</pattern>
			<template>use this tag <ins></template>
		</category>
		<category>
			<pattern>show me a keyboard input</pattern>
			<template>use this tag <kbd></template>
		</category>
		<category>
			<pattern>show me a Key pair generator field</pattern>
			<template>use this tag <keygen></template>
		</category>
		<category>
			<pattern>show me a input label</pattern>
			<template>use this tag <label></template>
		</category>
		<category>
			<pattern>show me a fieldset caption</pattern>
			<template>use this tag <legend></template>
		</category>
		<category>
			<pattern>show me a list item</pattern>
			<template>use this tag <li></template>
		</category>
		<category>
			<pattern>show me a link style sheet</pattern>
			<template>use this tag <link></template>
		</category>
		<category>
			<pattern>show me a document main content</pattern>
			<template>use this tag <main></template>
		</category>
		<category>
			<pattern>show me a Image map</pattern>
			<template>use this tag <map></template>
		</category>
		<category>
			<pattern>show me a highlighted text</pattern>
			<template>use this tag <mark></template>
		</category>
		<category>
			<pattern>show me a command list</pattern>
			<template>use this tag <menu></template>
		</category>
		<category>
			<pattern>show me a popup menu item</pattern>
			<template>use this tag <menuitem></template>
		</category>
		<category>
			<pattern>show me a HTML metadata</pattern>
			<template>use this tag <meta></template>
		</category>
		<category>
			<pattern>show me a gauge</pattern>
			<template>use this tag <meter></template>
		</category>
		<category>
			<pattern>show me a navigation links</pattern>
			<template>use this tag <nav></template>
		</category>
		<category>
			<pattern>show me a frame fail alternate content</pattern>
			<template>use this tag <noframes></template>
		</category>
		<category>
			<pattern>show me a script fail alternate content</pattern>
			<template>use this tag <noscript></template>
		</category>
		<category>
			<pattern>show me a embedded object</pattern>
			<template>use this tag <object></template>
		</category>
		<category>
			<pattern>show me a ordered list</pattern>
			<template>use this tag <ol></template>
		</category>
		<category>
			<pattern>show me a Drop down list</pattern>
			<template>use this tag <optgroup></template>
		</category>
		<category>
			<pattern>show me a drop down list option</pattern>
			<template>use this tag <option></template>
		</category>
		<category>
			<pattern>show me a calculation result</pattern>
			<template>use this tag <output></template>
		</category>
		<category>
			<pattern>show me a paragraph</pattern>
			<template>use this tag <p></template>
		</category>
		<category>
			<pattern>show me a object parameter</pattern>
			<template>use this tag <param></template>
		</category>
		<category>
			<pattern>show me a images</pattern>
			<template>use this tag <picture></template>
		</category>
		<category>
			<pattern>show me a preformatted text</pattern>
			<template>use this tag <pre></template>
		</category>
		<category>
			<pattern>show me a task progress</pattern>
			<template>use this tag <progress></template>
		</category>
		<category>
			<pattern>show me a short quotation</pattern>
			<template>use this tag <q></template>
		</category>
		<category>
			<pattern>show me a ruby fail alternate content</pattern>
			<template>use this tag <rp></template>
		</category>
		<category>
			<pattern>show me a Character explanation</pattern>
			<template>use this tag <rt></template>
		</category>
		<category>
			<pattern>show me a ruby annotation</pattern>
			<template>use this tag <ruby></template>
		</category>
		<category>
			<pattern>show me a incorrect text</pattern>
			<template>use this tag <s></template>
		</category>
		<category>
			<pattern>show me a computer program output</pattern>
			<template>use this tag <samp></template>
		</category>
		<category>
			<pattern>show me a script</pattern>
			<template>use this tag <script></template>
		</category>
		<category>
			<pattern>show me a document seciotn</pattern>
			<template>use this tag <section></template>
		</category>
		<category>
			<pattern>show me a Drop down list</pattern>
			<template>use this tag <select></template>
		</category>
		<category>
			<pattern>show me a smaller text</pattern>
			<template>use this tag <small></template>
		</category>
		<category>
			<pattern>show me a media resources</pattern>
			<template>use this tag <source></template>
		</category>
		<category>
			<pattern>show me a document section</pattern>
			<template>use this tag <span></template>
		</category>
		<category>
			<pattern>show me a strikethrough text</pattern>
			<template>use this tag <strike></template>
		</category>
		<category>
			<pattern>show me a important text</pattern>
			<template>use this tag <strong></template>
		</category>
		<category>
			<pattern>show me a document style</pattern>
			<template>use this tag <style></template>
		</category>
		<category>
			<pattern>show me a subscripted text</pattern>
			<template>use this tag <sub></template>
		</category>
		<category>
			<pattern>show me a details heading</pattern>
			<template>use this tag <summary></template>
		</category>
		<category>
			<pattern>show me a superscripted text</pattern>
			<template>use this tag <sup></template>
		</category>
		<category>
			<pattern>show me a table</pattern>
			<template>use this tag <table></template>
		</category>
		<category>
			<pattern>show me a table body content</pattern>
			<template>use this tag <tbody></template>
		</category>
		<category>
			<pattern>show me a cell in a table</pattern>
			<template>use this tag <td></template>
		</category>
		<category>
			<pattern>show me a Multi line input</pattern>
			<template>use this tag <textarea></template>
		</category>
		<category>
			<pattern>show me a table footer</pattern>
			<template>use this tag <tfoot></template>
		</category>
		<category>
			<pattern>show me a table cell header</pattern>
			<template>use this tag <th></template>
		</category>
		<category>
			<pattern>show me a table header</pattern>
			<template>use this tag <thead></template>
		</category>
		<category>
			<pattern>show me a Date time</pattern>
			<template>use this tag <time></template>
		</category>
		<category>
			<pattern>show me a document title</pattern>
			<template>use this tag <title></template>
		</category>
		<category>
			<pattern>show me a table row</pattern>
			<template>use this tag <tr></template>
		</category>
		<category>
			<pattern>show me a Video text tracks</pattern>
			<template>use this tag <track></template>
		</category>
		<category>
			<pattern>show me a Audio text tracks</pattern>
			<template>use this tag <track></template>
		</category>
		<category>
			<pattern>show me a teletype text</pattern>
			<template>use this tag <tt></template>
		</category>
		<category>
			<pattern>show me a stylistic text</pattern>
			<template>use this tag <u></template>
		</category>
		<category>
			<pattern>show me a unordered list</pattern>
			<template>use this tag <ul></template>
		</category>
		<category>
			<pattern>show me a unordered list</pattern>
			<template>use this tag <ul></template>
		</category>
		<category>
			<pattern>show me a variable</pattern>
			<template>use this tag <var></template>
		</category>
		<category>
			<pattern>show me a video or movie</pattern>
			<template>use this tag <video></template>
		</category>
		<category>
			<pattern>show me a video or movie</pattern>
			<template>use this tag <video></template>
		</category>
		<category>
			<pattern>show me a possible line break</pattern>
			<template>use this tag <wbr></template>
		</category>
	</topic>
</alice>

Clumsy, Ya, the above is a basic AIML simple fact framework, I can use this to start off with. So I create the following key word to tag list. Usually that’s all I need to get the project completed. I look at this AIML file the way a sculptor looks at a lump of clay.

Leave a Reply