Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 871 Bytes

File metadata and controls

44 lines (30 loc) · 871 Bytes

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 uv.

Install dependencies

uv sync

Lint

uv run mypy telegram_pymorphy_bot
uv run ruff check telegram_pymorphy_bot --fix

Run

TOKEN=<Telegram Bot Token> INFO="Add info to bot /info command" uv 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