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.1.tar.gz
(33.0 kB
view hashes)
Built Distribution
Close
Hashes for yar_numerals-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6f8e1ffda90b179076913f996cd10e0714abe01f694133d999903b366ddb78b |
|
MD5 | 2726f2478f8a97beb56159b8b696d2be |
|
BLAKE2b-256 | e86623743333880bf67ceb256d7ae45c9a199b39319b202f0850c2a47e042580 |