ru-accent-poet

A package for putting stress marks in russian poetic texts


License
MIT
Install
pip install ru-accent-poet==0.1.5

Documentation

ru_accent_poet

This is a tool for putting stress marks in russian poetic texts

Installation

pip install ru-accent-poet

Usage example

To put stress marks in text

>>> from ru_accent_poet import accent_line
>>> accent_line('Ýòî èíñòðóìåíò äëÿ ðàçìåòêè óäàðåíèé')
Ý'òî èíñòðóìå'íò äëÿ ðàçìå'òêè óäàðå'íèé

To put stress marks in files

>>> ru_accent_poet.write_file(['my_file_1.txt'])

This will return new file called "my_file.accented.txt" with the same text where stress marks are put