Skip to main content

Number to text - Inflector for Ukrainian numerals

Project description

Ukrainian Numbers Spellout

This library allows to convert the numbers into numerals

Supported Features

  • Number spellout – converting numbers into text (numerals)
  • Numeral inflection - modifying grammatical form of numerals to match required grammatical characteristics
  • Agreement - setting grammatical forms of compound numerals to produce grammatically and syntactically correct text
  • Stress
  • Cardinal numbers in range [0...1×1027)1, 2
  • Ordinal numbers in range [0...1×1027)1
  • Fractional numbers with whole, each element in range [0...1×1027)
  • Decimal numbers in range (0...1×1027) with precision up to 1×10-27 3

1 Numbers outside of the range will be spelled out digit-wise and inflected only last digit

2 1×1027 is 1 000 000 000 000 000 000 000 000 000

3 1×10-27 is 0.000 000 000 000 000 000 000 000 001

Future Features

  • Negative numbers
  • Contracted ordinal numbers (e.g. "1-й", "1000-на")
  • Scientific notation of exponential numbers (e.g. "1e5")

Supported Grammatical Attributes

  • cases: nominative, genitive, dative, accusative, instrumental, locative, vocative
  • gender: masculine, feminine, neuter
  • number: singular, plural
  • animacy: inanimate, animate

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yar_numerals-1.0.0.tar.gz (30.0 kB view hashes)

Uploaded Source

Built Distribution

yar_numerals-1.0.0-py3-none-any.whl (36.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page