Idiom.PluralAST (idiom v0.6.8)

Preprocessor for language-specific pluralization rules.

Idiom uses Unicode CLDR plural rules, which they provide for download as a JSON file. This is stored in our priv directory. The Plural and PluralAST modules use these definitions to generate Elixir ASTs representing a cond statement for each language, which are then used at compile-time to generate functions.

This module builds on a lexer and parser inside the src/ directory to generate the ASTs.