The method returns a String indicating which plural rule to use for locale-aware formatting.


pluralCategory =


The number to get a plural rule for.

Return value

A string representing the pluralization category of the number, can be one of "zero", "one", "two", "few", "many" or "other".


This function selects a pluralization category according to the locale and formatting options of a PluralRules object.


Using select

 new Intl.PluralRules('ar-EG').select(0); 
// → 'zero' 

new Intl.PluralRules('ar-EG').select(1); 
// → 'one'

new Intl.PluralRules('ar-EG').select(2); 
// → 'two'

new Intl.PluralRules('ar-EG').select(6); 
// → 'few'

new Intl.PluralRules('ar-EG').select(18); 
// → 'many'


Specification Status Comment
Intl Plural Rules Draft Draft Initial definition

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
selectChrome Full support 63Edge Full support 18Firefox Full support 58IE No support NoOpera Full support 50Safari No support NoWebView Android Full support 63Chrome Android Full support 63Firefox Android Full support 58Opera Android Full support 46Safari iOS No support NoSamsung Internet Android Full support 8.0nodejs Full support 10.0.0


Full support  
Full support
No support  
No support

See also