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
- Host: GitHub
- URL: https://github.com/soheilrt/language-explainer
- Owner: soheilrt
- Created: 2021-12-08T22:19:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-14T17:15:30.000Z (over 3 years ago)
- Last Synced: 2025-02-01T04:31:49.201Z (4 months ago)
- Language: Python
- Homepage:
- Size: 4.67 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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