Skip to content

Linguistics morphological analysis for russian words in Telegram

License

Notifications You must be signed in to change notification settings

super16/telegram-pymorphy-bot

Repository files navigation

telegram-pymorphy-bot

Telegram Bot for linguistics morphology analysis. Reply with morphemes of sent words and can suggest morphemes for unknown words. Works only with russian language and reply with several variants of analysis if available. Using awesome pymorphy2 module with OpenCorpora corpus.

Development mode

Requires poetry.

Install dependencies

poetry install

Lint

poetry run flake8
poetry run mypy telegram_pymorphy_bot

Run

TOKEN=<Telegram Bot Token> INFO="Add info to bot /info command" poetry run python -m telegram_pymorphy_bot

Docker

Build

docker build --tag=pymorphy_bot .

Run

docker run -d -e TOKEN=<Telegram Bot Token> -e INFO="Add info to bot /info command" pymorphy_bot