module Grammar::Attributes

A collection of attributes that enable grammar features for entities, such as selecting their correct pronouns.

Attributes

gender[W]

@see gender

plural[W]

@see plural?

Public Instance Methods

gender() click to toggle source

The gender of the object. Supported values are :male, :female, :neutral, and :other. Use :neutral for objects that don't have a gender (i.e., “it”). Use :other for people or characters that have an unspecified or non-binary gender (i.e., “they”).

@return [Symbol]

# File lib/gamefic-standard/grammar/attributes.rb, line 18
def gender
  @gender ||= :neutral
end
person() click to toggle source

For now, the object's person is always assumed to be third (he/she/it/they). A future version of this library might support first (I/me) and second (you).

# File lib/gamefic-standard/grammar/attributes.rb, line 33
def person
  3
end
plural?() click to toggle source

True if the object should be referred to in the plural, e.g., “they” instead of “it.” @return [Boolean]

# File lib/gamefic-standard/grammar/attributes.rb, line 26
def plural?
  @plural ||= false
end