I am trying to formulate AIML to provide alternative ways for the user to ask the same question. 
The following code, where * is name of an element, works OK.
<category>
HOW MANY PROTONS DOES * HAVE</pattern>
<template>
 <srai>XCHECKELEMENT <star index=“1”></srai>
<get name=“element”> has <get name=“protons”> proton. 
</template>
</category>
I would like to allow the user to ask the question in a different format. I have tried the following code, and several variations on it,  but it doesn’t work.
<category>
WHAT IS THE NUMBER OF PROTONS IN * </pattern> 
<template><srai>HOW MANY PROTONS DOES  HAVE<star></srai></template>
</category>
Any help would be greatly appreciated.
John Flynn
http://semanticsimulations.com

 RSS AI Zone
            
            
        
            
            
            
        
            
            
            
        
            
