Echo Hollow

Gender-Bending Interactive Stories! :D

User Tools

Site Tools


smutbook:classes:grammar:start

This is an old revision of the document!


SmutBook.Grammar

The Grammar module provides functionality to the grammar macros (see the macro documentation for details), which allows one piece of text to be written so that it can display the correct pronoun reference and verb tense regardless of the current viewpoint character or gender of the subject or direct object.

Eg: “He has blond hair.”/“She has blonde hair.”/“They have blond hair.”/“It has blond hair.”/“You have blonde hair.”

A bit complicated, but massively useful for status displays and and other such revisited passages in stories with multiple viewpoint characters and/or gender TF.

Note: As much as referring to a singular someone of indeterminate gender with a plural pronoun makes me cringe grammatically, it is still needed for the androgynous middle stage of a slow-TF, IMO, as referring to someone as “it” seems unintentionally dehumanizing, and the third-person plural seems to have come into common usage for this case, even if it is grammatically incorrect and makes me REEEEEEEEEE inside lol…

LibEcho.Grammar.Pronouns

Implements pronoun forms according to the following table:

Subjective Objective Possessive Adjective Absolute Possessive Reflexive/Intensive
male he him his his himself
female she her her hers herself
neuter it it its its itself
singular1p I me my mine myself
singular2p you you your yours yourself
plural1p we us our ours ourselves
plural2p you you your yours yourselves
plural3p they them their theirs themselves

FIXME The member functions should also work if passed a Person-type object, but that is currently unimplemented. They also don't do any sanity checking on the args.

Member Functions

You probably won't ever need to use these functions in your game. These functions provide functionality to the grammar macros (see the Macro Library documentation for details). You should use those macros instead.

These are all static.

.youHeSheIt( personOrGender )

Returns the subjective pronoun for the given personOrGender.

.youHimHerIt( personOrGender )

Returns the objective pronoun for the given personOrGender.

.yourHisHerIts( personOrGender )

Returns the possessive adjective pronoun for the given personOrGender.

.yoursHisHersIts( personOrGender )

Returns the absolute possessive pronoun for the given personOrGender.

.yourselfHimselfHerselfItself( personOrGender )

Returns the reflexive/intensive pronoun for the given personOrGender.

smutbook/classes/grammar/start.1691376897.txt.gz · Last modified: 2023/08/06 19:54 by lee