[pandorabots-general] Clarification
R. B. Chandler
rbchandler at hotmail.com
Sun Mar 4 08:19:23 PST 2007
>From your perspective it may seem like a good practice but from mine it is a
bit redundant. If you only have one <star/> as in:
<category>
<pattern>CAN YOU TELL ME ABOUT *</pattern>
<template><srai>DEFINE <star/></srai></template>
</category>
I doubt seriously anyone would use <star index="1"> in this case. There is
no real benefit either way except for convenience or clearification for the
sake of proper form. If I was programing for use by the rest of the planet I
might view it differently, but for myself, as a very slow typer, it is a
waste of time especially when I can go back later with search-and-replace
and change it all at once if needed. Most of my programs are written that
way so that if you don't like the way I wrote the program you can use
search-and-replace globally to change the program to whatever format you are
use to.
As far as I know I have yet to see any kind of sheet that outlines desired
best practices when it comes to AIML programing. It is those generally
accepted but unwritten practices that generate friction in the world today.
As long as the programer remains consistant in style the ability to change
things like <star/> into <star index="1"> on a global scale makes it easy to
adapt the program into a more widely acceptable format whatever that format
may be. Inconsistency in program formats becomes a problem when global
changes are not possible and you have to go through the code line by line.
Botom line is that it is a matter of semantics and personal preference. Code
for personalizing your own bot is one thing; code for publication as part of
the AIML Set published online is another thing altogether.
>From: "Anne Kootstra" <anne at aiml.info>
>Reply-To: pandorabots-general at list.pandorabots.com
>To: <pandorabots-general at list.pandorabots.com>
>Subject: Re: [pandorabots-general] Clarification
>Date: Sun, 4 Mar 2007 13:57:57 +0100
>MIME-Version: 1.0
>Received: from pyrrha.pandorabots.com ([206.169.106.15]) by
>bay0-mc10-f20.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Sun,
>4 Mar 2007 05:00:47 -0800
>Received: from localhost (127.0.0.1) by pyrrha.pandorabots.com (Allegro
>Maild v1.2.2) id 000001522754; Sun, 4 Mar 2007 05:00:47 -0800
>Received: from xeon2.xeonserver.net (69.93.225.101) by
>pyrrha.pandorabots.com(Allegro Maild v1.2.2) id 000001522166;Sun, 4 Mar
>2007 04:58:09 -0800
>Received: from [89.98.186.179] (helo=wimpie)by xeon2.xeonserver.net with
>esmtpa (Exim 4.52) id 1HNqHt-00075w-Mifor
>pandorabots-general at list.pandorabots.com;Sun, 04 Mar 2007 07:58:07 -0500
>X-Message-Info: txF49lGdW41c8o0XiYcgBq6Bd16LwoWxWCYgVDNvbh8=
>X-Mailer: Microsoft Office Outlook, Build 11.0.6353
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
>thread-index: AcdZtjAll2YC3DK3Q+6XcS3wE9S8cQEpjVNg
>X-AntiAbuse: This header was added to track abuse,please include it with
>any abuse report
>X-AntiAbuse: Primary Hostname - xeon2.xeonserver.net
>X-AntiAbuse: Original Domain - list.pandorabots.com
>X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
>X-AntiAbuse: Sender Address Domain - aiml.info
>X-Source: X-Source-Args: X-Source-Dir: X-BeenThere:
>pandorabots-general at list.pandorabots.com
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: Pandorabots General
>Discussion<pandorabots-general.list.pandorabots.com>
>List-Unsubscribe:
><http://list.pandorabots.com/mailman/listinfo/pandorabots-general>,<mailto:pandorabots-general-request at list.pandorabots.com?subject=unsubscribe>
>List-Archive: <http://list.pandorabots.com/pipermail/pandorabots-general>
>List-Post: <mailto:pandorabots-general at list.pandorabots.com>
>List-Help:
><mailto:pandorabots-general-request at list.pandorabots.com?subject=help>
>List-Subscribe:
><http://list.pandorabots.com/mailman/listinfo/pandorabots-general>,<mailto:pandorabots-general-request at list.pandorabots.com?subject=subscribe>
>Errors-To:
>pandorabots-general-bounces+rbchandler=hotmail.com at list.pandorabots.com
>Return-Path:
>pandorabots-general-bounces+rbchandler=hotmail.com at list.pandorabots.com
>X-OriginalArrivalTime: 04 Mar 2007 13:00:47.0878 (UTC)
>FILETIME=[20CF6260:01C75E5D]
>
>It is true that <star> and <star index="1"/> are synonymous; however it's
>become good practice to use the latter. This will ensure a uniform approach
>to writing AIML, which in the long run will be more beneficial then the
>immediate benefit of not having to type "index="1".
>
>
>
>Kind regards,
>
>
>
>Anne
>
>
>
> _____
>
>Van: R. B. Chandler [mailto:rbchandler at hotmail.com]
>Verzonden: maandag 26 februari 2007 15:22
>Aan: pandorabots-general at list.pandorabots.com
>Onderwerp: Re: [pandorabots-general] Clarification
>
>
>
> ><category>
> ><pattern> * AND *</patteren>
> ><template> <srai><star index="1"/></srai><srai><star
> >index="2"/></srai></template>
> ></category>
>
>You don't really need the first star index. The indexing starts with 2 then
>3,4,5...
>
><category>
><pattern> * AND *</patteren>
><template> <srai><star/></srai><srai><star
>index="2"/></srai></template>
></category>
>
><category>
> <pattern>WILL YOU TELL ME WHAT THE HECK * * * * * ARE</pattern>
> <template><srai>DEFINE <star/> <star index="2"/> <star index="3"/>
><star index="4"/> <star index="5"/></srai></template>
></category>
>
>
>
>
>
>
>
>
>
> <http://www.uep.galacticenterprise.com/> United Earth For Peace
>
>Seeking ways to bring the peoples of the Earth together in peace and
>harmony
>
>
> _____
>
>
>From: "Gary Dubuque" <gdubuque at scattercreek.com>
>Reply-To: pandorabots-general at list.pandorabots.com
>To: <pandorabots-general at list.pandorabots.com>
>Subject: Re: [pandorabots-general] Clarification
>Date: Sun, 25 Feb 2007 14:35:21 -0800
>MIME-Version: 1.0
>Received: from pyrrha.pandorabots.com ([206.169.106.15]) by
>bay0-mc5-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Sun, 25
>Feb 2007 14:38:03 -0800
>Received: from localhost (127.0.0.1) by pyrrha.pandorabots.com (Allegro
>Maild v1.2.2) id 000001495500; Sun, 25 Feb 2007 14:38:02 -0800
>Received: from mail1.kalama.com (204.245.228.16) by
>pyrrha.pandorabots.com(Allegro Maild v1.2.2) id 000001494909; Sun, 25 Feb
>2007 14:36:12 -0800
>Received: from localhost (localhost [127.0.0.1])by mail1.kalama.com
>(Postfix) with ESMTP id E46C25B719for
><pandorabots-general at list.pandorabots.com>;Sun, 25 Feb 2007 14:35:31 -0800
>(PST)
>Received: from mail1.kalama.com ([127.0.0.1])by localhost (mail1.kalama.com
>[127.0.0.1]) (amavisd-new, port 10024)with ESMTP id 20481-09 for
><pandorabots-general at list.pandorabots.com>; Sun, 25 Feb 2007 14:35:31 -0800
>(PST)
>Received: from Speedy (unknown [209.168.33.226])by mail1.kalama.com
>(Postfix) with SMTP id 733C75B71Bfor
><pandorabots-general at list.pandorabots.com>;Sun, 25 Feb 2007 14:35:31 -0800
>(PST)
> >Do you mean:
> >
> ><category>
> ><pattern> * AND *</patteren>
> ><template> <srai><star index="1"/></srai><srai><star
> >index="2"/></srai></template>
> ></category>
> >
> >
> >-----Original Message-----
> >From:
> >pandorabots-general-bounces+gdubuque=scattercreek.com at list.pandorabots.c
> >om
> >[mailto:pandorabots-general-bounces+gdubuque=scattercreek.com at list.pando
> >rabots.com]On Behalf Of Dekadens
> >Sent: Sunday, February 25, 2007 12:28 PM
> >To: pandorabots-general at list.pandorabots.com
> >Subject: [pandorabots-general] Clarification
> >
> >
> >Hi.
> >
> >Thanks for the reply to my question about combined patterns and
> >templates, but I think you misunderstood me. I know how to make
> >"Specific" combinations, but what I want to do is make a general one.
> >
> >Litterally a category for * and * where both wildcards can mean
> >anything. I want the first wildcard to be matched ( if there is one to
> >it or to default to the pick-up category) and THEN recognize that the
> >second wild card is something else and match that one.
> >
> >Here is what I mean.:
> >
> ><category>
> ><pattern> * AND *</patteren>
> ><template> <srai>first wildcard</srai><srai>second
> >wildcard</srai></template>
> ></category>
> >
> >Now using my previouse example it might look like this:
> >
> >Human - Go Home and call me
> >
> >Bot - ( matches first wild card ) I am home already and (matches
> >second wildcard) What's your phone number?
> >
> >Thanks for your help.
> >_______________________________________________
> >This is the pandorabots-general mailing list
> >To Post, reply to pandorabots-general at list.pandorabots.com
> >Unsubscribe and change preferences at
> >http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> >Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> >Learn to read at http://www.literacy.org/
> >
> >
> >_______________________________________________
> >This is the pandorabots-general mailing list
> >To Post, reply to pandorabots-general at list.pandorabots.com
> >Unsubscribe and change preferences at
>http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> >Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> >Learn to read at http://www.literacy.org/
>
>
>
>
> _____
>
>Mortgage <http://g.msn.com/8HMBENUS/2749??PS=47575> rates as low as 4.625%
>- Refinance $150,000 loan for $579 a month. Intro*Terms
>
>_______________________________________________
>This is the pandorabots-general mailing list
>To Post, reply to pandorabots-general at list.pandorabots.com
>Unsubscribe and change preferences at
>http://list.pandorabots.com/mailman/listinfo/pandorabots-general
>Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
>Learn to read at http://www.literacy.org/
_________________________________________________________________
The average US Credit Score is 675. The cost to see yours: $0 by Experian.
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAVERAGE
More information about the pandorabots-general
mailing list