-
Notifications
You must be signed in to change notification settings - Fork 44
Phrase keywords and structure
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.
The default structure is as follows:
- Adjectives
- VisAdjs
- ObjAdjs
- CharAdjs
- Colors
- Subjects
- Characters
- Chars
- CharObjs
- Creatures
- LandCreas
- AirCreas
- SeaCreas
- Vehicles
- LandVehicles
- AirVehicles
- SeaVehicles
- SpaceVehicles
- Characters
- Settings
- CharSets
- CreaSets
- LandCreaSets
- AirCreaSets
- SeaCreaSets
- ObjSets
- LandObjSets
- SeaObjSets
- AirObjSets
- SpaceObjSets
- AllSets
- Relations
- LandRels
- AirCreaRels
- AirObjRels
- SpaceObjRels
- VisualModifiers
- Styles
- Qualities
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.
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:
