labs.i18n.GenderInfo Extends
GenderInfo provides a method to determine the gender of a list/array of objects when one knows the gender of each item of the list. It does this in a locale sensitive manner. The constructor initializes the object based on the locale data from the current goog.labs.i18n.ListFormatSymbols. Similar to the ICU4J class com.icu.util.GenderInfo: http://icu-project.org/apiref/icu4j/com/ibm/icu/util/GenderInfo.html

Inheritance

Constructor

goog.labs.i18n.GenderInfo()

Instance Methods

Public Protected Private
getListGender(genders) goog.labs.i18n.GenderInfo.Gender
Determines the overal gender of a list based on the gender of all the list items, in a locale-aware way.
Arguments:
genders : !Array.<!goog.labs.i18n.GenderInfo.Gender>
An array of genders, will give the gender of the list.
Returns: goog.labs.i18n.GenderInfo.Gender  Get the gender of the list.
code »

Instance Properties

listGenderStyle_ :
Stores the language-aware mode of determining the gender of a list.
Code »

Enumerations

goog.labs.i18n.GenderInfo.Gender :
Enumeration for the possible gender values. Gender: OTHER means either the information is unavailable, or the person has declined to state MALE or FEMALE.
Constants:
FEMALE
No description.
MALE
No description.
OTHER
No description.
Code »
goog.labs.i18n.GenderInfo.ListGenderStyle_ :
Enumeration for the possible ways to generate list genders. Indicates the category for the locale. This only affects gender for lists more than one. For lists of 1 item, the gender of the list always equals the gender of that sole item. This is for internal use, matching ICU.
Constants:
MALE_TAINTS
No description.
MIXED_NEUTRAL
No description.
NEUTRAL
No description.
Code »

Package labs.i18n

Package Reference