Re: Draft iXML minutes, 4 March 2025

Looks like you had a great discussion in the status reports section. Sorry 
I missed it.


Bethan says: "What I'm interested in working on are tools that will treat 
your grammar as a generator rather than a recognizer."


I've written several of these in the past (for instance, when I wrote a 
version of Eliza, the Rogerian psychotherapist, I wrote another program to 
generate random paranoid ramblings for Eliza to respond to 
(https://cwi.nl/~steven/Talks/2024/09-oxford/ai.html#L2734)


In fact, they are quite easy to write, since it is just a recursive random 
path through the grammar tree. This is the complete code, where 'thing' is 
either a terminal or nonterminal ('choice' returns a random element of a 
sequence, in this case returning a random alternative from a rule):


HOW TO GENERATE thing FROM grammar:
     SELECT:
         nonterminal(thing):
             FOR symbol IN choice grammar[thing]:
                 GENERATE symbol FROM grammar
         ELSE:
             WRITE thing, " "


And you generate one rambling with "GENERATE '<sentence>' FROM sentences"


Steven


On Tuesday 04 March 2025 16:42:47 (+01:00), Norm Tovey-Walsh wrote:



 > Hi folks,

 >

 > Draft minutes are online:

 >

 > https://www.w3.org/2025/03/04-ixml-minutes.html

 >

 > Be seeing you,

 > norm

 >

 > --

 > Norm Tovey-Walsh

 > Saxonica

 >

 >

Received on Tuesday, 18 March 2025 12:50:33 UTC