Hi,
The Gawk distribution includes doc/awkforai.txt which in return has
pointers to a short article (from 1996) describing why gawk is a good
language for Artificial Intelligence (AI) programming, see
https://www.gnu.org/software/gawk/manual/html_node/Distribution-contents.html
I believe that I what I am looking for (if it exists) would be some form
of Gawk'ish AI: a script or set of user-defined functions that could can
generate syntactically correct English text, similarly to what the Dada
engine does (which happened to be invented around the same time: 1995),
see
https://github.com/orenmazor/Dada-Engine
Example script code from a random Dada-Engine script:
// convert the first character of a string to its uppercase equivalent
%trans upcase-first:
".*": 0 u ;
;
What I would do in Gawk:
function upcase_first(str) {
return toupper(substr(str,1,1)) substr(str,2)
}
Any idea where to look for existing Gawk code? The usual Internet
searches did not return.
Thanks in advance, Hermann