This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
smutbook:classes:grammar [2023/08/06 19:25] – created lee | smutbook:classes:grammar [2023/08/06 19:54] (current) – removed lee | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 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."/" | ||
- | |||
- | A bit complicated, | ||
- | |||
- | Note: As much as referring to a singular someone of indeterminate gender with a plural pronoun makes me cringe grammatically, | ||
- | |||
- | ===== LibEcho.Grammar.Pronouns ===== | ||
- | |||
- | Implements pronoun forms according to the following table: | ||
- | |||
- | | ^ Subjective ^ Objective ^ Possessive Adjective ^ Absolute Possessive ^ Reflexive/ | ||
- | ^ male | he | him | his | his | himself | ||
- | ^ female | ||
- | ^ neuter | ||
- | ^ Singular1p | I | me | my | mine | myself | ||
- | ^ Singular2p | you | you | your | yours | yourself | ||
- | ^ Plural1p | ||
- | ^ Plural2p | ||
- | ^ Plural3p | ||
- | |||
- | FIXME The member functions should also work if passed a Person-type object, but that is currently unimplemented. | ||
- | |||
- | ==== Member Functions ==== | ||
- | |||
- | You shouldn' | ||
- | |||
- | 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/ | ||