4 releases (stable)

2.0.0 Nov 13, 2019
1.0.1 Jan 7, 2019
1.0.0 Jul 25, 2018
0.1.0 Jul 9, 2018

#10 in #intl

Used in make_pluralrules


260 lines

CLDR PluralRules Parser

cldr_pluralrules_parser is a parser library for CLDR PluralRules.

crates.io Build Status Coverage Status

The library closely follows LDML Language Plural Rules Syntax and is intended to be used at build time or runtime to construct operations necessary for calculating corret plural rules categories.


The parser is functionally complete and follows the current version of the syntax.

It is lenient and open to contributions in the area of conformance, testing, and rejecting invalid input.

Local Development

cargo build
cargo test

When submitting a PR please use cargo fmt.


~14K SLoC