[alicebot-general] Response order

Troy Vinson troy.vinson at dal.tribalddb.com
Fri Feb 2 07:24:53 PST 2007


In need of an AIML suggestion concerning ordering of a match or
pre-scanning a sentence.  Given these two patterns:

<category>
    <pattern>
        * FRIEND *
    </pattern>
    <template>
        <srai>     
            FRIEND RESPONSE
        </srai>    
    </template>
</category>

<category>         
    <pattern>      
        * A$$      
    </pattern>     
    <template>     
        <srai>     
            BADWORD RESPONSE
        </srai>    
    </template>    
</category>


And the input "my friend can kiss my a$$".  The desire is to have the
pattern match and send a response for BADWORD RESPONSE instead of FRIEND
RESPONSE.

Any help would be greatly appreciated.


More information about the alicebot-general mailing list