intl_pluralrules

Crates.iointl_pluralrules
lib.rsintl_pluralrules
version7.0.2
sourcesrc
created_at2018-07-30 15:54:32.724692
updated_at2022-10-19 23:13:31.230844
descriptionUnicode Plural Rules categorizer for numeric input.
homepage
repositoryhttps://github.com/zbraniecki/pluralrules
max_upload_size
id76665
size108,475
Manish Goregaokar (Manishearth)

documentation

README

INTL Plural Rules

intl_pluralrules categorizes numbers by plural operands. See Unicode Plural Rules

crates.io Build Status Coverage Status

This library is intended to be used to find the plural category of numeric input.

Status

Currently produces operands compliant with CLDR 36 into Rust 1.31 and above.

Updating CLDR Data

If you would like to update rules.rs with plural rules that are not the specified version above (e.g. future versions of CLDR or external CLDR-compliant rules), you can regenerate the logic in rules.rs with the command:

cargo regenerate-data

You will need to replace the JSON files under /cldr_data/ with your new CLDR JSON files.

Local Development

cargo build
cargo test

When submitting a PR please use cargo fmt.

Contributors

Thank you to all contributors!

Commit count: 205

cargo fmt