Echo Hollow

Gender-Bending Interactive Stories! :D

User Tools

Site Tools


libecho:classes:grammar

This is an old revision of the document!


LibEcho.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…

LibEcho.Grammar.Pronouns

Implements pronoun forms according to the following table:

Subjective Objective Possessive Adjective Absolute Possessive
male he him his his
female she her her hers
neuter it it its its
Singular1p I me my mine
Singular2p you you your yours
Plural1p we us our ours
Plural2p you you your yours
Plural3p they them their theirs

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 shouldn't ever need to use these functions in your game. These functions provide a back-end to the grammar macros (see the macro documentation for details). Use those macros instead.

.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.

libecho/classes/grammar.1653086941.txt.gz · Last modified: 2022/05/20 15:49 by lee