2 ms·
Did something like this back in '96 w/ a recursive macro parser. Stuff like: "To %TABLOID%, %CELEB% %ADVERB% %ACTION.PAS% %NUMBER% %OBJECT.P%." Each substitut
by EvanAnderson 2y ago
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.