This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
smutbook:classes:grammar:start [2023/08/06 19:54] – created lee | smutbook:classes:grammar:start [2023/08/06 20:29] (current) – lee | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== 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. | 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. | ||
Line 8: | Line 8: | ||
**Note:** As much as referring to a singular someone of indeterminate gender with a plural pronoun makes me cringe grammatically, | **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 probably won't ever need to use these functions in your game. These functions provide functionality to the grammar macros (see the [[SmutBook: | ||
- | |||
- | 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/ | ||