Rand Stats

The uploading author of github:alabamenhu does not match the META author of git:alabamenhu.

Intl::Number::Plural

github:alabamenhu

IntlNumberPlural

A number to determine the plural count category of a number for use in localization contexts

Warning: The name may change in the near-ish future (mid 2021) to be cohesive with other modules. If it changes, I will continue to provide under the current name for at least one year.

To use:

use Intl::Number::Plural

                 # English  Arabic  Russian
plural-count 0;  # other    zero    many
plural-count 1;  # one      one     one
plural-count 2;  # other    two     few
plural-count 3;  # other    few     few
plural-count 6;  # other    few     many

There are six strings that can be returned by the function: zero, one, two, few, many, and other. Other is the default and is used for all values in languages that do not have grammatical number. Note that (as evidenced by the above table), the labels don't always correspond to what one might intuitively think. Consequently, this is a module generally oriented towards makes of localization frameworks, and less so towards end-users.

The plural-count sub currently takes one or two positional arguments:

There are two optional named parameters

Dependencies

Todo

Version History

© 2020-2021 Matthew Stephen Stuckwisch. Licensed under the Artistic License 2.0.