Esperanto dictionary Telegram bot based on the Reta Vortaro project database.
- Search for words in the dictionary and display definition and usage examples in Esperanto.
- Accept words in different forms (plural, accusative, past/future tense) and automatically normalize them to the base form (singular noun or infinitive verb).
- Automatic input transformations for cx → ĉ, ux → ŭ, etc.
- Invert dictionary direction (From → To).
- Multilingual support.
- Download the latest
revoxdxf_YYYY-MM-DD.zipfrom revo-fonto and unpack it. - In
./tools/xdxf_parser.py, configure the following variables:
INPUT_XDXF = "/path/to/revo.xdxf" # path to unpacked .xdxf file
OUTPUT_DB = "tevo.db" # desired output database name
- Run the parser:
python3 xdxf_parser.py
The database will be created in ./data/ folder.
poetry:
git clone https://github.com/espero451/tevobot
cd tevobot
poetry install --no-root
poetry run python3 bot/bot.pyvenv:
git clone https://github.com/espero451/tevobot
cd tevobot
python3 -m venv ./venv
. ./venv/bin/activate
pip install -r requirements.txt
python3 -m tevobot- Create
./bot/TOKEN.pyfile and add variable with your bot token from BodFather:
TOKEN = "YOUR_TOKEN_HERE"TOKEN.py is already listed in .gitignore, so it will not be committed. Make sure never to share it publicly.
- Check
./bot/config.pyfile.
/starto : Check if the bot alive
/lingvo : Set the dictionary language
/statuso : Show current dictionary status (default: Esperanto → En)
/inversigi : Invert dictionary languages
