Debian Codegraph @

third_party/rust/intl_pluralrules/README.md

raw
1 # INTL Plural Rules
2
3 `intl_pluralrules` categorizes numbers by plural operands. See [Unicode Plural Rules](https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules)
4
5
6 [![crates.io](https://img.shields.io/crates/v/intl_pluralrules.svg)](https://crates.io/crates/intl_pluralrules)
7 [![Build Status](https://travis-ci.org/zbraniecki/pluralrules.svg?branch=master)](https://travis-ci.org/zbraniecki/pluralrules)
8 [![Coverage Status](https://coveralls.io/repos/github/zbraniecki/pluralrules/badge.svg?branch=master)](https://coveralls.io/github/zbraniecki/pluralrules?branch=master)
9
10 This library is intended to be used to find the plural category of numeric input.
11
12 Status
13 ------
14
15 Currently produces operands compliant with CLDR 36 into Rust 1.31 and above.
16
17 **Updating CLDR Data**
18
19 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:
20
21 cargo regenerate-data
22
23 You will need to replace the JSON files under `/cldr_data/` with your new CLDR JSON files.
24
25 Local Development
26 -----------------
27
28 cargo build
29 cargo test
30
31 When submitting a PR please use `cargo fmt`.
32
33 Contributors
34 ------------
35
36 * [manishearth](https://github.com/manishearth)
37
38 Thank you to all contributors!
39
40 [CLDR]: https://cldr.unicode.org/
41 [PluralRules]: https://cldr.unicode.org/index/cldr-spec/plural-rules
42 [LDML Language Plural Rules Syntax]: https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules