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)
Built Distribution
Close
Hashes for yar_numerals-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36689f45c5061a6be9ba00fa916172a97fe5e0e1a54e64e638686ba4196621f3 |
|
MD5 | 99f72f98ed0670cffd9b39710e55f147 |
|
BLAKE2b-256 | fa017dadf20edecf424cbbece6d98e790a44e7b9b333b476b2a9f2bda2a6ef81 |