title: AIML for Intelligent Answering Engine
body: <p>I have heard about a programming language called <strong>AIML</strong> which can be used for programming Intelligent Robots.
  I am a web developer and have a web crawler build using Python 2.7 and have indexed Wikipedia ...</p>
  
  <p>So I wanted to build a answering engine using python which would use a string variable 
  (It is a HUGE variable containing the whole of Wikipedia) as a source of information and use AI to answer...</p>
  
  <p>Finally, I wanted to put this up on my school website...</p>
  
  <p>So can I do that in <strong>AIML</strong>?</p>
  
  <p>Later on I also want to modify it so as to give my live scores answers to questions like:</p>
  
  <p><code>"What is the age of ~someperson~?"</code> etc.
  For that I'll send my web crawler to index some score pages etc..</p>
  
  <p>Can I program this sort of answering agent in <strong>AIML</strong>?</p>
  
  <p>If yes please provide links to tutorials which tell me how to do that? (using string variables as a source of information to parse queries and answer like a human)</p>
  
  <p>moreover, <strong>AIML</strong> uses syntax like:</p>
  
  <pre><code>&lt;category&gt;
      &lt;pattern&gt;WHAT ARE YOU&lt;/pattern&gt;
      &lt;template&gt;
          &lt;think&gt;&lt;set name="topic"&gt;Me&lt;/set&gt;&lt;/think&gt; 
          I am the latest result in artificial intelligence,
          which can reproduce the capabilities of the human brain
          with greater speed and accuracy.
      &lt;/template&gt;
  &lt;/category&gt;
  </code></pre>
  
  <p>Where pattern is the query and template is answer, so does that mean I have to sit and write these tags for all possible queries?</p>
  
  <p>Or can I make it use its brains to figure out what the person wants and give them answers 
  using the string variable as its source of information.</p>
  
  <p>Thank you.</p>