home *** CD-ROM | disk | FTP | other *** search
- XPOEM.EXE is an experimental algorithmic poetry generator.
- The algorithm evolved over a period of a couple months, starting from
- a "NOUN-VERB-NOUN" construct and then adding rules which I felt
- were the "natural" rules for syntax. The program has categories of words
- (the *.dat files) which it choosess from randomly. While the categories
- have the names of familiar grammatical categories, inspecting some of
- them will show you that what they contain is not necessarily what the
- name of the file implies. Experiment with them. To see how the categories
- are used by the program, you can add words to the "temporary vocabulary"
- while the program is running.
-
-
-
- Important Note :
- Before running xpoem.exe, make sure that xpoem and the vocabulary
- (*.dat files) are all in your current directory / path.
- That is, say xpoem and all the *.dat files are in a directory
- called "alpo" on drive A. Then you would enter "cd a:\alpo"
- before running xpoem.
- Generating poem lines
- Run xpoem. Hit <ENTER> when asked if you want to use the default files.
- Hit "P" for poem when the next menu comes up. Hit <ENTER> again when
- you are asked how many lines you want. This will give you 20 lines.
- Use PgUp and PgDn keys to see the rest of the lines, if they didn't
- all fit on one screen. If you want to save certain lines, move the
- shaded region with the arrows to the line to save and hit <ENTER>.
- You can continue to choose lines to save this way. They will be saved
- when you finally hit <ESC>. (The default output file is named
- "poem0.txt") You can then load the output file into a word processor
- to carry on your experiments.
- Modifying the vocabulary files
- The default vocabulary files are the 13 (? count them?) .dat files,
- for example, "adjectives.dat". When you decide to add or delete words
- from these files, save them to disk as ASCII files. If your word
- processor has an "unformatted" choice for saving files, it probably
- saves them as ASCII.
- You can add phrases by using an underscore character instead of a
- space between the words. The underscore is removed by the program.
- For example, "Jumpin_Jehosephat" is considered by the program to be a
- single unit, but the underscore will not appear in the poem.
- Temporary words
- These are words which will be used by the xpoem program only for your
- current session. Say you want xpoem to generate a love poem to
- Brigham Young, then you could add "Brigham Young" to the temporary
- vocabulary for "3rd person pronouns" (Due to to algorithm used, this is
- the best place for people's names) with a chance of being chosen of
- say 50 percent. Phrases you add in a temporary word box (if they fit)
- will be used as a unit without needing the underscore character.
- When you are through adding, or changing the temporary words in a
- prticular category, hit PgUp or PgDn.
- If you don't want to add words to another category, hit <ESC> when the
- vocabulary category menu reappears.
- Using different word files:
- By choosing "Other files", any ASCII text file can be used for a
- particular word category. This can only be done at the start of the
- program's execution. EXPERIMENT!