Skip to content

dfisiuk/grammar_be

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Скланенне колькасных і парадкавых лічэбнікаў.

tag='<род><скланненне><лік>', options='<options>'

род: 'M' - мужчынскі, 'F' - жаночы, 'N' - ніякі, 'P' - адсутны;
case (склон): 'N' - Назоўны,'G' - Родны, 'D' - Давальны, 'A' - Вінавальны, 'I' - Творны, 'L' - Месны;
number (лік): 'S' - адзіночны, 'P' - множны;
options: 'anim' - адуш., 'inanim' - неадуш.

How to run:

python3
Python 3.6.15 (default, Jul  6 2022, 17:29:00)
[GCC Apple LLVM 13.0.0 (clang-1300.0.27.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from grammar_be.num2t4be import num2text_ordinal
>>> num2text_ordinal(1121)
'тысяча сто дваццаць першы'
```

# Run unit tests
```bash
PYTHONPATH=. python3 grammar_be/tests.py
```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages