View Source MyApp.Cldr.Rbnf.Spellout (Cldr Numbers v2.32.4)

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> MyApp.Cldr.Rbnf.Spellout.rule_sets("en")
...> |> Enum.sort()
[
  :spellout_cardinal,
  :spellout_cardinal_verbose,
  :spellout_numbering,
  :spellout_numbering_verbose,
  :spellout_numbering_year,
  :spellout_ordinal,
  :spellout_ordinal_verbose
]

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

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

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

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

Summary

Functions

Functions

Link to this function

aja(number, language_tag)

View Source
Link to this function

alt_ones(number, language_tag)

View Source
Link to this function

and_feminine(number, language_tag)

View Source
Link to this function

and_masculine(number, language_tag)

View Source
Link to this function

and_o(number, language_tag)

View Source
Link to this function

and_small(number, language_tag)

View Source
Link to this function

and_small_f(number, language_tag)

View Source
Link to this function

and_small_n(number, language_tag)

View Source
Link to this function

cardinal2(number, language_tag)

View Source
Link to this function

cardinal3(number, language_tag)

View Source
Link to this function

cardinal4(number, language_tag)

View Source
Link to this function

cardinal5(number, language_tag)

View Source
Link to this function

cardinal8(number, language_tag)

View Source
Link to this function

cardinal13(number, language_tag)

View Source
Link to this function

cardinal_alternate2_2(number, language_tag)

View Source
Link to this function

cardinal_alternate2_3(number, language_tag)

View Source
Link to this function

cardinal_alternate2_4(number, language_tag)

View Source
Link to this function

cardinal_alternate2_5(number, language_tag)

View Source
Link to this function

cardinal_alternate2_8(number, language_tag)

View Source
Link to this function

cardinal_alternate2_13(number, language_tag)

View Source
Link to this function

cents_f(number, language_tag)

View Source
Link to this function

cents_m(number, language_tag)

View Source
Link to this function

cents_o(number, language_tag)

View Source
Link to this function

commas(number, language_tag)

View Source
Link to this function

commas_o(number, language_tag)

View Source
Link to this function

et_un(number, language_tag)

View Source
Link to this function

et_une(number, language_tag)

View Source
Link to this function

et_unieme(number, language_tag)

View Source
Link to this function

fem_with_a(number, language_tag)

View Source
Link to this function

fem_with_i(number, language_tag)

View Source
Link to this function

fem_with_o(number, language_tag)

View Source
Link to this function

financialnumber2(number, language_tag)

View Source
Link to this function

financialnumber3(number, language_tag)

View Source
Link to this function

financialnumber4(number, language_tag)

View Source
Link to this function

financialnumber5(number, language_tag)

View Source
Link to this function

financialnumber8(number, language_tag)

View Source
Link to this function

financialnumber13(number, language_tag)

View Source
Link to this function

fractions_feminine(number, language_tag)

View Source
Link to this function

fractions_feminine_ablative(number, language_tag)

View Source
Link to this function

fractions_feminine_accusative(number, language_tag)

View Source
Link to this function

fractions_feminine_dative(number, language_tag)

View Source
Link to this function

fractions_feminine_genitive(number, language_tag)

View Source
Link to this function

fractions_feminine_locative(number, language_tag)

View Source
Link to this function

lenient_parse(number, language_tag)

View Source
Link to this function

mille_o(number, language_tag)

View Source
Link to this function

msc_no_final(number, language_tag)

View Source
Link to this function

msc_with_a(number, language_tag)

View Source
Link to this function

msc_with_a_nofinal(number, language_tag)

View Source
Link to this function

msc_with_i(number, language_tag)

View Source
Link to this function

msc_with_i_nofinal(number, language_tag)

View Source
Link to this function

msc_with_o(number, language_tag)

View Source
Link to this function

msc_with_o_nofinal(number, language_tag)

View Source
Link to this function

msco_with_a(number, language_tag)

View Source
Link to this function

msco_with_i(number, language_tag)

View Source
Link to this function

msco_with_o(number, language_tag)

View Source
Link to this function

number2(number, language_tag)

View Source
Link to this function

number3(number, language_tag)

View Source
Link to this function

number4(number, language_tag)

View Source
Link to this function

number5(number, language_tag)

View Source
Link to this function

number8(number, language_tag)

View Source
Link to this function

number13(number, language_tag)

View Source
Link to this function

numbering_days(number, language_tag)

View Source
Link to this function

oe(number, language_tag)

View Source
Link to this function

ogo(number, language_tag)

View Source
Link to this function

oj(number, language_tag)

View Source
Link to this function

om(number, language_tag)

View Source
Link to this function

omu(number, language_tag)

View Source
Link to this function

ord_fem_de(number, language_tag)

View Source
Link to this function

ord_fem_nde(number, language_tag)

View Source
Link to this function

ord_fem_te(number, language_tag)

View Source
Link to this function

ord_fem_teer(number, language_tag)

View Source
Link to this function

ord_masc_de(number, language_tag)

View Source
Link to this function

ord_masc_nde(number, language_tag)

View Source
Link to this function

ord_masc_te(number, language_tag)

View Source
Link to this function

ord_masc_teer(number, language_tag)

View Source
Link to this function

ord_neut_de(number, language_tag)

View Source
Link to this function

ord_neut_nde(number, language_tag)

View Source
Link to this function

ord_neut_te(number, language_tag)

View Source
Link to this function

ord_neut_teer(number, language_tag)

View Source
Link to this function

ord_plural_de(number, language_tag)

View Source
Link to this function

ord_plural_nde(number, language_tag)

View Source
Link to this function

ord_plural_te(number, language_tag)

View Source
Link to this function

ord_plural_teer(number, language_tag)

View Source
Link to this function

ordinal_esima(number, language_tag)

View Source
Link to this function

ordinal_esima_with_a(number, language_tag)

View Source
Link to this function

ordinal_esima_with_i(number, language_tag)

View Source
Link to this function

ordinal_esima_with_o(number, language_tag)

View Source
Link to this function

ordinal_esime(number, language_tag)

View Source
Link to this function

ordinal_esime_with_a(number, language_tag)

View Source
Link to this function

ordinal_esime_with_i(number, language_tag)

View Source
Link to this function

ordinal_esime_with_o(number, language_tag)

View Source
Link to this function

ordinal_esimi(number, language_tag)

View Source
Link to this function

ordinal_esimi_with_a(number, language_tag)

View Source
Link to this function

ordinal_esimi_with_i(number, language_tag)

View Source
Link to this function

ordinal_esimi_with_o(number, language_tag)

View Source
Link to this function

ordinal_esimo(number, language_tag)

View Source
Link to this function

ordinal_esimo_with_a(number, language_tag)

View Source
Link to this function

ordinal_esimo_with_i(number, language_tag)

View Source
Link to this function

ordinal_esimo_with_o(number, language_tag)

View Source
Link to this function

r2d_year(number, language_tag)

View Source
Link to this function

rule_sets(rbnf_locale_name)

View Source
Link to this function

spellout_cardinal(number, locale)

View Source
Link to this function

spellout_cardinal_alternate2(number, locale)

View Source
Link to this function

spellout_cardinal_feminine(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_ablative(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_accusative(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_dative(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_genitive(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_instrumental(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_locative(number, locale)

View Source
Link to this function

spellout_cardinal_feminine_ones(number, language_tag)

View Source
Link to this function

spellout_cardinal_feminine_standalone(number, locale)

View Source
Link to this function

spellout_cardinal_financial(number, locale)

View Source
Link to this function

spellout_cardinal_genitive_tens(number, language_tag)

View Source
Link to this function

spellout_cardinal_m(number, locale)

View Source
Link to this function

spellout_cardinal_masculine(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_ablative(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_accusative(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_accusative_animate(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_accusative_personal(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_dative(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_dative_ones(number, language_tag)

View Source
Link to this function

spellout_cardinal_masculine_genitive(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_genitive_ones(number, language_tag)

View Source
Link to this function

spellout_cardinal_masculine_instrumental(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_instrumental_ones(number, language_tag)

View Source
Link to this function

spellout_cardinal_masculine_locative(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_locative_ones(number, language_tag)

View Source
Link to this function

spellout_cardinal_masculine_personal(number, locale)

View Source
Link to this function

spellout_cardinal_masculine_standalone(number, locale)

View Source
Link to this function

spellout_cardinal_n(number, locale)

View Source
Link to this function

spellout_cardinal_neuter(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_ablative(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_accusative(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_dative(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_genitive(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_instrumental(number, locale)

View Source
Link to this function

spellout_cardinal_neuter_locative(number, locale)

View Source
Link to this function

spellout_cardinal_plural(number, locale)

View Source
Link to this function

spellout_cardinal_plural_ablative(number, locale)

View Source
Link to this function

spellout_cardinal_plural_accusative(number, locale)

View Source
Link to this function

spellout_cardinal_plural_dative(number, locale)

View Source
Link to this function

spellout_cardinal_plural_genitive(number, locale)

View Source
Link to this function

spellout_cardinal_plural_locative(number, locale)

View Source
Link to this function

spellout_cardinal_r(number, locale)

View Source
Link to this function

spellout_cardinal_reale(number, language_tag)

View Source
Link to this function

spellout_cardinal_s(number, locale)

View Source
Link to this function

spellout_cardinal_tens(number, language_tag)

View Source
Link to this function

spellout_cardinal_verbose(number, locale)

View Source
Link to this function

spellout_construct_feminine(number, locale)

View Source
Link to this function

spellout_construct_masculine(number, locale)

View Source
Link to this function

spellout_fraction(number, language_tag)

View Source
Link to this function

spellout_fraction_digits(number, language_tag)

View Source
Link to this function

spellout_leading(number, language_tag)

View Source
Link to this function

spellout_numbering(number, locale)

View Source
Link to this function

spellout_numbering_days(number, locale)

View Source
Link to this function

spellout_numbering_m(number, language_tag)

View Source
Link to this function

spellout_numbering_verbose(number, locale)

View Source
Link to this function

spellout_numbering_year(number, locale)

View Source
Link to this function

spellout_numbering_year_digits(number, language_tag)

View Source
Link to this function

spellout_ordinal(number, locale)

View Source
Link to this function

spellout_ordinal_base(number, language_tag)

View Source
Link to this function

spellout_ordinal_feminine(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_ablative(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_accusative(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_dative(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_genitive(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_locative(number, locale)

View Source
Link to this function

spellout_ordinal_feminine_plural(number, locale)

View Source
Link to this function

spellout_ordinal_m(number, locale)

View Source
Link to this function

spellout_ordinal_masculine(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_ablative(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_accusative(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_adjective(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_dative(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_genitive(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_locative(number, locale)

View Source
Link to this function

spellout_ordinal_masculine_plural(number, locale)

View Source
Link to this function

spellout_ordinal_n(number, locale)

View Source
Link to this function

spellout_ordinal_neuter(number, locale)

View Source
Link to this function

spellout_ordinal_neuter_ablative(number, locale)

View Source
Link to this function

spellout_ordinal_neuter_accusative(number, locale)

View Source
Link to this function

spellout_ordinal_neuter_dative(number, locale)

View Source
Link to this function

spellout_ordinal_neuter_genitive(number, locale)

View Source
Link to this function

spellout_ordinal_neuter_locative(number, locale)

View Source
Link to this function

spellout_ordinal_plural(number, locale)

View Source
Link to this function

spellout_ordinal_plural_ablative(number, locale)

View Source
Link to this function

spellout_ordinal_plural_accusative(number, locale)

View Source
Link to this function

spellout_ordinal_plural_dative(number, locale)

View Source
Link to this function

spellout_ordinal_plural_genitive(number, locale)

View Source
Link to this function

spellout_ordinal_plural_locative(number, locale)

View Source
Link to this function

spellout_ordinal_r(number, locale)

View Source
Link to this function

spellout_ordinal_s(number, locale)

View Source
Link to this function

spellout_ordinal_verbose(number, locale)

View Source
Link to this function

ste2(number, language_tag)

View Source
Link to this function

ste(number, language_tag)

View Source
Link to this function

subcents_f(number, language_tag)

View Source
Link to this function

subcents_m(number, language_tag)

View Source
Link to this function

subcents_o(number, language_tag)

View Source
Link to this function

th(number, language_tag)

View Source
Link to this function

thousands(number, language_tag)

View Source
Link to this function

thousandsprefixconjoined(number, language_tag)

View Source
Link to this function

thousandsprefixseparate(number, language_tag)

View Source
Link to this function

tieth(number, language_tag)

View Source
Link to this function

uju(number, language_tag)

View Source
Link to this function

ye(number, language_tag)

View Source
Link to this function

yh(number, language_tag)

View Source
Link to this function

yj(number, language_tag)

View Source
Link to this function

ym(number, language_tag)

View Source
Link to this function

ymi(number, language_tag)

View Source