Difference between revisions of "Epigram"

From HypertWiki
Jump to navigation Jump to search
(status update: demo page gone-gone)
(Slight update)
Line 5: Line 5:


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).
I came up with a handful of templates, one of which told a little story if you ran it several times in succession. I still have the Turbo Pascal code here somewhere... will post on GitHub when I can.


<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...
<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==
* <s>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.</s> (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 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).
* An OStatus bot like [https://mastodon.social/@bepis bepis] also seems like a thing that should be done.
 
[[Category:Projects|Epigram]]

Revision as of 22:30, 25 April 2017

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

I came up with a handful of templates, one of which told a little story if you ran it several times in succession. I still have the Turbo Pascal code here somewhere... will post on GitHub when I can.

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

  • 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.)
  • An OStatus bot like bepis also seems like a thing that should be done.