Skip to content

REFGENDER

Vera Chellgren edited this page Sep 18, 2021 · 1 revision

REFGENDER provides a way for users to use their own name lists with the YeetWords genders, so that users do not need to rely on the limited number of names hard-coded into the program.

REFGENDER is limited in that matching name lists to genders is the only thing it currently does, and thus there are only really 4 possible statements that can be made with it. In future, it's possible that REFGENDER could be extended to update other built-in gender-specific lists in a gen, but for now its only purpose is to match genders with name lists.

Syntax

The syntax is:
REFGENDER gender-name-list-storage = yournamelist

where gender-name-list-storage is one of the special, hard-coded variable names shown below. Below are all 4 ways of using the REFGENDER command. yournamelist is the variable name for your list of names that you are providing for that gender.

Usage

The 4 ways of using it are shown here.

REFGENDER male.names = yourmalenamelist
REFGENDER female.names = yourfemalenamelist
REFGENDER nonbinary.names = yournonbinarynamelist
REFGENDER robot.names = yourrobotnamelist

Obviously, the part to the right of the equals sign will differ from that shown above, depending on what you've called your various name lists, but the part to the left should remain as written.

The name list to the right of the equals sign must be a list, not a catalog, string literal, or anything else. There may be only one name list in that position on each REFGENDER command. In other words, manually typing a series of string literals for names will not work in REFGENDER command. If such an approach is desired by the user, a preceding ASSIGNLIST command will work to create a list of string literals that can then be used in the REFGENDER command.

Behind-the-scenes

REFGENDER actually works like the ASSIGN commands, so in theory for REFGENDER you could put all 4 genders to the left of the equals sign and assign to the same list on the right. However, this is not likely to have a use case because this would mean all genders would operate from the same name list which would be confusing for your readers.

Similar commands

GEN, ASSIGNGEN, ASSIGNLIST

Clone this wiki locally