placeholderRoles top-level constant

Set<String> const placeholderRoles

Legal values for ArbPlaceholder.role.

count is the one that answers a plural — the value the message's grammar must agree with. identifier labels something ("Goal 3", "Room 12"); ordinal places it in a sequence ("3rd try") and carries its own agreement through selectordinal rather than plural. Both of the latter are quantities the sentence does not count.

Implementation

const Set<String> placeholderRoles = {'count', 'identifier', 'ordinal'};