Cldr v0.5.0 Cldr.Rbnf.Spellout View Source

Functions to implement the spellout rule-based-number-format rules of CLDR.

As CLDR notes, the data is incomplete or non-existent for many languages. It is considered complete for English however.

The standard public API for RBNF is via the Cldr.Number.to_string/2 function.

The functions on this module are defined at compile time based upon the RBNF rules defined in the Unicode CLDR data repository. Available rules are identified by:

iex(5)> Cldr.Rbnf.Spellout.rule_sets "en"
[:spellout_ordinal_verbose, :spellout_ordinal, :spellout_numbering_year,
  :spellout_numbering_verbose, :spellout_numbering, :spellout_cardinal_verbose,
  :spellout_cardinal]

A rule can then be invoked on an available rule_set. For example:

iex> Cldr.Rbnf.Spellout.spellout_ordinal 123, "en"
"one hundred twenty-third"

This call is equivalent to the call through the public API of:

iex> Cldr.Number.to_string 123, format: :spellout
{:ok, "one hundred twenty-three"}

Link to this section Summary

Functions

Link to this section Functions

Link to this function alt_ones(number, binary) View Source
Link to this function and_feminine(number, binary) View Source
Link to this function and_masculine(number, binary) View Source
Link to this function cardinal13(number, binary) View Source
Link to this function cardinal2(number, binary) View Source
Link to this function cardinal3(number, binary) View Source
Link to this function cardinal4(number, binary) View Source
Link to this function cardinal5(number, binary) View Source
Link to this function cardinal8(number, binary) View Source
Link to this function cardinal_alternate2_13(number, binary) View Source
Link to this function cardinal_alternate2_2(number, binary) View Source
Link to this function cardinal_alternate2_3(number, binary) View Source
Link to this function cardinal_alternate2_4(number, binary) View Source
Link to this function cardinal_alternate2_5(number, binary) View Source
Link to this function cardinal_alternate2_8(number, binary) View Source
Link to this function commas_o(number, binary) View Source
Link to this function et_unieme(number, binary) View Source
Link to this function financialnumber13(number, binary) View Source
Link to this function financialnumber2(number, binary) View Source
Link to this function financialnumber3(number, binary) View Source
Link to this function financialnumber4(number, binary) View Source
Link to this function financialnumber5(number, binary) View Source
Link to this function financialnumber8(number, binary) View Source
Link to this function fractions_feminine(number, binary) View Source
Link to this function fractions_feminine_ablative(number, binary) View Source
Link to this function fractions_feminine_accusative(number, binary) View Source
Link to this function fractions_feminine_dative(number, binary) View Source
Link to this function fractions_feminine_genitive(number, binary) View Source
Link to this function fractions_feminine_locative(number, binary) View Source
Link to this function lenient_parse(number, binary) View Source
Link to this function number13(number, binary) View Source
Link to this function numbering_days(number, binary) View Source
Link to this function spellout_cardinal(number, binary) View Source
Link to this function spellout_cardinal_alternate2(number, binary) View Source
Link to this function spellout_cardinal_feminine(number, binary) View Source
Link to this function spellout_cardinal_feminine_ablative(number, binary) View Source
Link to this function spellout_cardinal_feminine_accusative(number, binary) View Source
Link to this function spellout_cardinal_feminine_dative(number, binary) View Source
Link to this function spellout_cardinal_feminine_genitive(number, binary) View Source
Link to this function spellout_cardinal_feminine_instrumental(number, binary) View Source
Link to this function spellout_cardinal_feminine_locative(number, binary) View Source
Link to this function spellout_cardinal_feminine_ones(number, binary) View Source
Link to this function spellout_cardinal_financial(number, binary) View Source
Link to this function spellout_cardinal_genitive_tens(number, binary) View Source
Link to this function spellout_cardinal_masculine(number, binary) View Source
Link to this function spellout_cardinal_masculine_ablative(number, binary) View Source
Link to this function spellout_cardinal_masculine_accusative(number, binary) View Source
Link to this function spellout_cardinal_masculine_accusative_animate(number, binary) View Source
Link to this function spellout_cardinal_masculine_accusative_personal(number, binary) View Source
Link to this function spellout_cardinal_masculine_dative(number, binary) View Source
Link to this function spellout_cardinal_masculine_dative_ones(number, binary) View Source
Link to this function spellout_cardinal_masculine_genitive(number, binary) View Source
Link to this function spellout_cardinal_masculine_genitive_ones(number, binary) View Source
Link to this function spellout_cardinal_masculine_instrumental(number, binary) View Source
Link to this function spellout_cardinal_masculine_instrumental_ones(number, binary) View Source
Link to this function spellout_cardinal_masculine_locative(number, binary) View Source
Link to this function spellout_cardinal_masculine_locative_ones(number, binary) View Source
Link to this function spellout_cardinal_masculine_personal(number, binary) View Source
Link to this function spellout_cardinal_neuter(number, binary) View Source
Link to this function spellout_cardinal_neuter_ablative(number, binary) View Source
Link to this function spellout_cardinal_neuter_accusative(number, binary) View Source
Link to this function spellout_cardinal_neuter_dative(number, binary) View Source
Link to this function spellout_cardinal_neuter_genitive(number, binary) View Source
Link to this function spellout_cardinal_neuter_instrumental(number, binary) View Source
Link to this function spellout_cardinal_neuter_locative(number, binary) View Source
Link to this function spellout_cardinal_plural(number, binary) View Source
Link to this function spellout_cardinal_plural_ablative(number, binary) View Source
Link to this function spellout_cardinal_plural_accusative(number, binary) View Source
Link to this function spellout_cardinal_plural_dative(number, binary) View Source
Link to this function spellout_cardinal_plural_genitive(number, binary) View Source
Link to this function spellout_cardinal_plural_locative(number, binary) View Source
Link to this function spellout_cardinal_tens(number, binary) View Source
Link to this function spellout_cardinal_verbose(number, binary) View Source
Link to this function spellout_construct_feminine(number, binary) View Source
Link to this function spellout_construct_masculine(number, binary) View Source
Link to this function spellout_fraction(number, binary) View Source
Link to this function spellout_fraction_digits(number, binary) View Source
Link to this function spellout_leading(number, binary) View Source
Link to this function spellout_numbering(number, binary) View Source
Link to this function spellout_numbering_days(number, binary) View Source
Link to this function spellout_numbering_m(number, binary) View Source
Link to this function spellout_numbering_verbose(number, binary) View Source
Link to this function spellout_numbering_year(number, binary) View Source
Link to this function spellout_numbering_year_digits(number, binary) View Source
Link to this function spellout_ordinal(number, binary) View Source
Link to this function spellout_ordinal_feminine(number, binary) View Source
Link to this function spellout_ordinal_feminine_ablative(number, binary) View Source
Link to this function spellout_ordinal_feminine_accusative(number, binary) View Source
Link to this function spellout_ordinal_feminine_dative(number, binary) View Source
Link to this function spellout_ordinal_feminine_genitive(number, binary) View Source
Link to this function spellout_ordinal_feminine_locative(number, binary) View Source
Link to this function spellout_ordinal_feminine_plural(number, binary) View Source
Link to this function spellout_ordinal_masculine(number, binary) View Source
Link to this function spellout_ordinal_masculine_ablative(number, binary) View Source
Link to this function spellout_ordinal_masculine_accusative(number, binary) View Source
Link to this function spellout_ordinal_masculine_dative(number, binary) View Source
Link to this function spellout_ordinal_masculine_genitive(number, binary) View Source
Link to this function spellout_ordinal_masculine_locative(number, binary) View Source
Link to this function spellout_ordinal_masculine_plural(number, binary) View Source
Link to this function spellout_ordinal_neuter(number, binary) View Source
Link to this function spellout_ordinal_neuter_ablative(number, binary) View Source
Link to this function spellout_ordinal_neuter_accusative(number, binary) View Source
Link to this function spellout_ordinal_neuter_dative(number, binary) View Source
Link to this function spellout_ordinal_neuter_genitive(number, binary) View Source
Link to this function spellout_ordinal_neuter_locative(number, binary) View Source
Link to this function spellout_ordinal_plural(number, binary) View Source
Link to this function spellout_ordinal_plural_ablative(number, binary) View Source
Link to this function spellout_ordinal_plural_accusative(number, binary) View Source
Link to this function spellout_ordinal_plural_dative(number, binary) View Source
Link to this function spellout_ordinal_plural_genitive(number, binary) View Source
Link to this function spellout_ordinal_plural_locative(number, binary) View Source
Link to this function spellout_ordinal_verbose(number, binary) View Source
Link to this function subcents_f(number, binary) View Source
Link to this function subcents_m(number, binary) View Source
Link to this function subcents_o(number, binary) View Source
Link to this function thousands(number, binary) View Source
Link to this function thousandsprefixconjoined(number, binary) View Source
Link to this function thousandsprefixseparate(number, binary) View Source