Martin Janiczek c827b40482 add CODEOWNERS
2020-04-29 22:10:09 +02:00
2020-04-24 15:34:48 +02:00
2020-04-24 14:54:43 +02:00
2020-04-24 13:21:42 +02:00
2020-04-29 22:10:09 +02:00
2020-04-24 15:38:27 +02:00
2020-04-24 12:58:54 +02:00
OCD
2020-04-24 15:37:09 +02:00

GlobalWebIndex/elm-plural-rules

An abstraction for working with pluralization rules.

Based largely on Unicode Language Plural Rules.

Screenshot of English
rules

Screenshot of Czech
rules

(For the description of what the v = 0 conditions in the above screenshots mean, look at the Plural Operand Meanings table or check the Plural Operands section of the PluralRules module!)


This library helps you arrive at an API like:

pluralize 1 "message" --> "message"
pluralize 5 "message" --> "messages"

pluralize 1 "man" --> "man"
pluralize 5 "man" --> "men"

pluralize 1 "query" --> "query"
pluralize 5 "query" --> "queries"

See the examples/ folder for how to get there!

There are also helpers for writing pluralization logic for languages not included in this package. Obviously, there's a lot of languages and each of those has its own rules for how it pluralizes. Check them here!

Description
No description provided
Readme BSD-3-Clause 361 KiB
Languages
Elm 100%