Thanks to visit codestin.com
Credit goes to github.com

Skip to content

lmgveerhoek/kindle-anki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kindle Vocab Context Tool

This is a simple tool to help you learn new words from your Kindle vocabulary.

How to use

Place the vocab.txt file from your Kindle in the root directory of this project. Then run the following command:

python main.py

This will generate a new file called vocab_with_definitions.csv which will contain the words from your Kindle vocabulary along with their definitions.

How it works

The script reads the vocab.db file from your Kindle and extracts the words along with the sentences in which they were used. These words are then passed to the OpenAI API to generate definitions for them.

An example .env file is provided in the repository. You will need to create an account on the OpenAI website and get an API key to use this tool. Change .env.example to .env and replace the placeholder with your API key.

Future improvements

  • Automatically fetch the vocab.db file from your Kindle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published