Epigram: Difference between revisions
htw>Woozle m (Reverted edits by 178.109.140.175 (talk) to last revision by Woozle) |
htw>Woozle (status update: demo page gone-gone) |
||
Line 6: | Line 6: | ||
The idea is, basically, that you have a template, such as "'''* is the * of *.'''" Each "*" in the template has a set of words which can be used to fill it in. When you run epigram, you tell it the template and the list of words, and it randomly chooses from the list to fill in the template (avoiding duplication where possible). | The idea is, basically, that you have a template, such as "'''* is the * of *.'''" Each "*" in the template has a set of words which can be used to fill it in. When you run epigram, you tell it the template and the list of words, and it randomly chooses from the list to fill in the template (avoiding duplication where possible). | ||
For a demonstration of Epigram in action, see the [http://hypertwins.org/epigram/ Epigram Demonstration Page]. | <s>For a demonstration of Epigram in action, see the [http://hypertwins.org/epigram/ Epigram Demonstration Page].</s> Eep! That page seems to have been lost in a migration several years ago, where I [thought I] backed everything up, but many of the folders were empty. Konquerer needs a "paranoid mode" which does a compare after it thinks it is done copying. Ultimately I will rewrite Epigram as a MediaWiki extension... | ||
==To Be Done== | ==To Be Done== |
Revision as of 00:17, 14 January 2011
Overview
Epigram is an idea I came up with while at Brown in the late 1980s, although the seeds of it were actually planted by a wordgame article in (of all places) a Weekly Reader, probably in 2nd grade circa 1972-3.
The idea is, basically, that you have a template, such as "* is the * of *." Each "*" in the template has a set of words which can be used to fill it in. When you run epigram, you tell it the template and the list of words, and it randomly chooses from the list to fill in the template (avoiding duplication where possible).
For a demonstration of Epigram in action, see the Epigram Demonstration Page. Eep! That page seems to have been lost in a migration several years ago, where I [thought I] backed everything up, but many of the folders were empty. Konquerer needs a "paranoid mode" which does a compare after it thinks it is done copying. Ultimately I will rewrite Epigram as a MediaWiki extension...
To Be Done
The Perl version on the demonstration page has a problem with inserting an extra space at the end; I think I once worked out that this was a problem with Perl, and in any case I wasn't able to fix it.(seems to be fixed)- Need to write a PHP version so that it can be used within a wiki, for extra silliness. (People could edit the wordlists and submit their own.)
- Need to post the Perl code (somewhat complicated because of the way I use Perl).