News for hackers. Stuff that matters.
Re:Meaningful Nonsense: How I generate sentences by EvanAnderson on Thursday May 30, 2024 @01:24PM (#40526315)
Did something like this back in '96 w/ a recursive macro parser. Stuff like:

"To %TABLOID%, %CELEB% %ADVERB% %ACTION.PAS% %NUMBER% %OBJECT.P%."

Each substitution referenced a file and entries in those files could reference other files (or themselves).

Reflecting the zeitgeist, in the "CELEB" file I find: "Billy Corgan, frontman of %ADVERB% %ADJEC% band The Smashing Pumpkins"

If I was going to do it again today I'd combine tenses into a single file and have the parser track the tense that should be used based on previously selected words. That's probably a lot harder than I think it would be.

There are no comments on this comment yet.