Module reference

Source
Expand description

Reference version of the Plural Rules parser, AST and serializer.

🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways, including in SemVer minor releases. In particular, the `DataProvider` implementations are only guaranteed to match with this version's `*_unstable` providers. Use with caution.

Modules§

ast
AST provides a set of Syntax Tree Nodes used to store the output of parse method that is used in test_condition method to evaluate whether a given PluralCategory should be used.

Functions§

serialize
Unicode Plural Rule serializer converts an AST to a String.