Creating a Legend

Text to be processed must include logic to define each of the dynamic characters in a text.

This can either be accomplished by filling out the "Characters" section on a text page (screenshot), or embedded via a legend, wrapped in double square brackets, which may appear anywhere in the text. An example legend:

[[Mindy/Mork/Mac:male][Charlize/Charles/Charlie:female][Kate/Ken/Kan:trans]]

Rules for generating the legend

1. The legend must start and stop with square brackets: [ ]

2. Each element in the legend must be wrapped in square brackets, itself

3. Each element must consist of the gendered proper names for the character, in the order FEMALE/MALE/TRANS, followed by a colon, after which indicates the gender that should be used in the dynamically generated version of the text.

So, using the legend above, the program will look for a character named "Mindy" or "Mork" and render this character as "Mork" with the male pronoun set. It will look for a character named "Charlize" or "Charles" and render the character as "Charlize" with the female pronoun set. It will look for a character named "Kate," "Ken" or "Kan," and render the character as "Kan" with a transgender pronoun.