Pluralization handling in Rust
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cldr_pluralrules_parser
intl_pluralrules
make_pluralrules
.gitignore
.travis.yml
Cargo.toml
README.md

README.md

CLDR Plural Rules Build Status Coverage Status

cldr_pluralrules is a collection of Rust crates for identifying the plural rule, according to CLDR, for a given number.

The crates perform the following functions:

intl_pluralrules crates.io

This library returns the plural rule given numeric input.

cldr_pluralrules_parser crates.io

This library creates an AST from plural rules, according to CLDR plural rule syntax.

make_pluralrules crates.io

This executable generates a Rust file with a public function representation of CLDR plural rules from a specified source.

Status

cldr_pluralrules_parser

The parser is fully compliant with UTS #35 version 33.

make_pluralrules

Generates all cardinal plural rules for Rust 1.27 and above, baed on CLDR 33.

intl_pluralrules

Currentl supports cardinal plural rules for all languages from CLDR 33.

Get Involved

cldr_pluralrules is open-source, licensed under the Apache License, Version 2.0. We encourage everyone to take a look at our code and we'll listen to your feedback.