Strangelibs
by Ben Roth
D.R. Incorporated Studios

OVERVIEW

Strangelibs takes a file you define at the beginning of the game and replaces your commands with random words from other resource files. For instance, if you were to give strangelibs a file that contained the string 'I have a !noun' it would replace the !noun with a random noun from the file called noun.txt. It could return something like 'I have a tiger' or 'I have a fig.' 

RESOURCE FILES

The following resource files must be in the same folder as Strangelibs for it to run:

noun.txt
verb.txt
pastverb.txt
adjective.txt

This is how each of the resource files is formatted:

- The first line of the file must have a number. This is the number of entries in the file.
- The remaining lines will have one word or phrase each. If it is a nouns file, each word should be a noun, etc.

For example, the following is a correct verbs file:

3
run
snatch
follow

The three signifies three list entries: run, snatch, and follow. You can add on to the resource files as much as you like, as long as you update the heading number accordingly.

COMMANDS

Strangelibs accepts the following commands in the main template file you submit it:
!noun
This will add a random noun wherever you put it.
!plnoun
This will add a random noun wherever you put it, and then modify it to make it plural.
!verb
This will add a random verb everywhere you put it.
!pverb
This will add a past tense verb everywhere you put it. It uses the pastverb.txt resource file.
!ingverb
This will add a verb from the verb.txt resource file and then modify it to be an 'ing' verb.

Your template file you submit should not have any line breaks. If you want to add a line break, use the # sign. If you actually want to print the # sign in your string, use \#. 