An open API service indexing awesome lists of open source software.

https://github.com/soheilrt/language-explainer

A tool for analyzing and defining hard words for language learners
https://github.com/soheilrt/language-explainer

Last synced: 3 months ago
JSON representation

A tool for analyzing and defining hard words for language learners

Awesome Lists containing this project

README

        

# language-explainer

A tool for defining/translating hard words for language learners.

This tool helps you find and extract hard words
(based on their [CEFR](https://www.coe.int/en/web/common-european-framework-reference-languages/level-descriptions) levels)
from a `TEXT` or `PDF` file (maybe `audio files` in future).
Ultimately, it would download words' definition from [Google](https://translate.google.com)/[FreeDictionaryAPI](https://dictionaryapi.dev/) and save it to file in either JSON or CSV format.

This tool is useful Especially when used with flashcards applications like [ANKI](https://apps.ankiweb.net/)

## How to install
1. Clone this project
``` bash
git clone [email protected]:soheilrt/language-explainer
```
2. Go to project path
``` bash
cd
```
3. Create new python virtual environment
```bash
virtualenv venv
```
Activate the virtual environment
```bash
source /bin/activate
```
4. Install requirements
```bash
pip install -r requirements.txt
```

5. Run
```bash
python explain.py --input-type (url|pdf|text) -input -output