Package squidpony
Enum Messaging.NounTrait
- All Implemented Interfaces:
Serializable
,Comparable<Messaging.NounTrait>
,Constable
- Enclosing class:
- Messaging
public static enum Messaging.NounTrait extends Enum<Messaging.NounTrait>
Properties of nouns needed to correctly conjugate those nouns and refer to them with pronouns, such as genders.
Includes parts of speech, which only are concerned with whether they refer to a singular noun or a plural noun,
and genders for when a gendered pronoun is needed. This provides substantial support for uncommon cases regarding
gender and pronoun preferences. That said, gender and pronoun preference can be incredibly hard to handle.
The simplest cases are for first- and second-person pronouns; here we have "I/me/my/myself" for
This at least tries to provide pronoun handling for the common cases, such as "you" not needing a gendered pronoun at all (it uses
FIRST_PERSON_SINGULAR
, "you/you/your/yourself" for SECOND_PERSON_SINGULAR
,
"we/us/our/ourselves" for FIRST_PERSON_PLURAL
, and "you/you/your/yourselves" for
SECOND_PERSON_PLURAL
; there are more pronouns this can produce, but they aren't listed here.
Third-person pronouns are considerably more challenging because English sporadically considers gender as part of
conjugation, but doesn't provide a universally-acceptable set of gendered pronouns.
This at least tries to provide pronoun handling for the common cases, such as "you" not needing a gendered pronoun at all (it uses
SECOND_PERSON_SINGULAR
), and supports male
,
female
, genderless
(using "it" and related forms; preferred especially
for things that aren't alive, and in most cases not recommended for people),
"unspecified"
(using "they" in place of "he" or "she"; preferred in some cases when
describing someone with a non-specific gender or an unknown gender) pronouns, and group
for when a
group of individuals, regardless of gender or genders, is referred to with a single pronoun. As mentioned, this
has support for some uncommon situations, like additional gender
(as in, a gender that
is in addition to male and female but that is not genderless, which has a clear use case when describing
non-human species, and a more delicate use for humans who use non-binary gender pronouns; hopefully "xe" will be
acceptable), and finally a "special case"
pronoun that is unpronounceable and, if
given special processing, can be used as a replacement target for customized pronouns. For the additional gender,
the non-binary gendered pronouns are modified from the male pronouns by replacing 'h' with 'x' (he becomes xe,
his becomes xis). The "special case" pronouns replace the 'h' in the male pronouns with 'qvq', except for in one
case. Where, if the female pronoun were used, it would be "hers", but the male pronoun in that case would be "his",
changing the male pronoun would lead to a difficult-to-replace case because "his" is also used in the case where
the female pronoun is the usefully distinct "her". Here, the "special case" gender diverges from what it usually
does, and uses "qvqims" in place of "his" or "hers". The "special case" pronouns should be replaced before being
displayed, since they look like gibberish or a glitch and so are probably confusing out of context.-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDITIONAL_GENDER
Third-gender pronoun preference, potentially relevant for cultures with non-binary gender terms.FEMALE_GENDER
Female pronoun preference, as in "She is her own boss."FIRST_PERSON_PLURAL
As in, "We are our own bosses." Doesn't reference gender, and applies to groups.FIRST_PERSON_SINGULAR
As in, "I am my own boss." Doesn't reference gender.GROUP
Any third-person plural, as in "They are their own bosses." Not to be confused with UNSPECIFIED_GENDER, which is for singular beings, but usually uses "they" in the same way (not always).MALE_GENDER
Male pronoun preference, as in "He is his own boss."NO_GENDER
Inanimate objects or beings without gender, as in "It is its own boss."SECOND_PERSON_PLURAL
As in, "You are your own bosses." Doesn't reference gender, and applies to groups.SECOND_PERSON_SINGULAR
As in, "You are your own boss." Doesn't reference gender.SPECIAL_CASE_GENDER
Unpronounceable words that can be processed specially for more complex cases of pronoun preference.UNSPECIFIED_GENDER
"Singular they" pronoun preference or to be used when preference is unknown, as in "They are their own boss." -
Method Summary
Modifier and Type Method Description String
$$$Text()
String
$$Text()
String
$Text()
String
directText(String term)
String
fvesText()
String
iText()
String
meText()
String
mineText()
String
myselfText()
String
myText()
String
name_sText(String term)
String
nameText(String term)
String
sssText()
String
ssText()
String
sText()
String
usiText()
static Messaging.NounTrait
valueOf(String name)
Returns the enum constant of this type with the specified name.static Messaging.NounTrait[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIRST_PERSON_SINGULAR
As in, "I am my own boss." Doesn't reference gender. -
SECOND_PERSON_SINGULAR
As in, "You are your own boss." Doesn't reference gender. -
FIRST_PERSON_PLURAL
As in, "We are our own bosses." Doesn't reference gender, and applies to groups. -
SECOND_PERSON_PLURAL
As in, "You are your own bosses." Doesn't reference gender, and applies to groups. -
NO_GENDER
Inanimate objects or beings without gender, as in "It is its own boss." -
MALE_GENDER
Male pronoun preference, as in "He is his own boss." -
FEMALE_GENDER
Female pronoun preference, as in "She is her own boss." -
UNSPECIFIED_GENDER
"Singular they" pronoun preference or to be used when preference is unknown, as in "They are their own boss." -
ADDITIONAL_GENDER
Third-gender pronoun preference, potentially relevant for cultures with non-binary gender terms. As in, "Xe is xis own boss." -
SPECIAL_CASE_GENDER
Unpronounceable words that can be processed specially for more complex cases of pronoun preference. As in, "Qvqe is qvqis own boss." -
GROUP
Any third-person plural, as in "They are their own bosses." Not to be confused with UNSPECIFIED_GENDER, which is for singular beings, but usually uses "they" in the same way (not always).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
nameText
-
name_sText
-
iText
-
meText
-
myText
-
mineText
-
myselfText
-
sText
-
ssText
-
sssText
-
usiText
-
fvesText
-
$Text
-
$$Text
-
$$$Text
-
directText
-