Text Expansion

Expansion tokens are embedded sequences of characters that are replaced with the information that it describes. For example

Expansion Tokens
The following table describes the expansions that are available

X Prefix
The X prefix must be replaced with one of the following:

Modifiers
There are also modifiers that can be applied by embedding a code between the $ and the ( in the expansion:
 * $-(...) -- Cause the expanded text to be all lowercase
 * $++(...) -- Cause the expanded text to be all uppercase
 * $+(...) -- Cause the first letter to be uppercase, and the rest remain untouched

Examples
“Hello, $(s.name)!” would be replaced with the speaker’s name(e.g. “Hello, Maclusky!”). If an expansion cannot be found or inferred, the raw text should come through so it is immediately visible as an error in the final text.(e.g “Hello, $(unknownexpansion).” would result in the same string unmodified.)
 * “Kill $(l.him)!”
 * “I wouldn't expect a $(l.race) like you to understand."
 * "We $(s.race_plural) are far superior intellectually.”
 * “Look $(l.guy), I don’t have time for this!”
 * “You have killed $(scene.NumRatsKilled) of 10 rats.”