Epigram

From HypertWiki
Revision as of 12:46, 13 July 2008 by Woozle (talk | contribs) (Reverted edits by 203.158.221.227 (Talk); changed back to last version by Woozle)
Jump to navigation Jump to search

Woozle: Projects: Epigram

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.

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).