<!-- .slide: class="igalia-text-medium" -->
# Notation support for `PluralRules`
#### Ujjwal Sharma (Igalia x Google)
#### TC39 April 2025
---
<!-- .slide: class="igalia-align-left" -->
**PROBLEM**
`Intl.PluralRules` doesn't take the notation into account.
---
# History
---
May 2018: [Unified NumberFormat added notations to `NumberFormat`](https://github.com/tc39/proposal-unified-intl-numberformat/issues/5)

---
Jan 2020: [We wanted to support them in `PluralRules` too](https://github.com/tc39/ecma402/issues/399)

---

---
<!-- .slide: class="igalia-align-left" -->
**SOLUTION**
If we set a `[[Notation]]` slot in `PluralRules`, we can pass it into `ResolvePlural`.
---
April 2025: [A minimal solution](https://github.com/tc39/ecma402/pull/989) ๐ ๏ธ
```diff
- 1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, *"standard"*).
+ 1. Let _notation_ be ? GetOption(_options_, *"notation"*, ~string~, ยซ ... ยป, *"standard"*).
+ 1. Set _pluralRules_.[[Notation]] to _notation_.
+ 1. Perform ? SetNumberFormatDigitOptions(_pluralRules_, _options_, 0, 3, _notation_).
```
---
April 2025: TG2 Approval ๐งโโ๏ธ
---
Consensus?
---
# Thank you! ๐
---
### Proposed conclusion for the notes
Normative PR [ecma402#989](https://github.com/tc39/ecma402/pull/989) was presented to the committee for consensus, this PR adds support for a notation option in the `PluralRules` constructor for handling different non-standard notations.
{"title":"Notation support for PluralRules","type":"slide","slideOptions":{"transition":"slide","theme":"igalia","controlsLayout":"edges","slideNumber":"c/t"}}