Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Phrase keywords and structure

526christian edited this page Jan 28, 2023 · 4 revisions

At the time of writing, the dicts.py containing all of the words for the script to use is saved in a dictionary structure. You can run dicts.py in a similar way to promptgen.py to quickly see the structure in a terminal/CLI in case you make any changes.

Any one of these can be placed in [brackets] in your template input to replace with a random selection, including categories and sub-categories like [Relations], which will return a value from any randomly-selected list contained within.

Here is the full list of default keywords:

  • Adjectives
    • VisAdjs
    • ObjAdjs
    • CharAdjs
    • Colors
  • Subjects
    • Characters
      • Chars
      • CharObjs
    • Creatures
      • LandCreas
      • AirCreas
      • SeaCreas
    • Vehicles
      • LandVehicles
      • AirVehicles
      • SeaVehicles
      • SpaceVehicles
  • Settings
    • CharSets
    • CreaSets
      • LandCreaSets
      • AirCreaSets
      • SeaCreaSets
    • ObjSets
      • LandObjSets
      • SeaObjSets
      • AirObjSets
      • SpaceObjSets
    • AllSets
    • Relations
      • LandRels
      • AirCreaRels
      • AirObjRels
      • SpaceObjRels
  • VisualModifiers
    • Styles
    • Qualities

Meanwhile, the special keywords [listadj], [liststy], and [listqual] will pull multiple random phrases from the [VisAdjs], [Styles], and [Qualities] lists. Special keywords are defined near the top of promptgen.py. You can change what list they reference by simply changing the structure within the prompts dictionary that they reference:

Selection_236

Clone this wiki locally