A command-line tool to simplify language in EPUB books
Project description
EPUB Simplifier
Description
EPUB Simplifier is a command-line tool designed to convert text within EPUB files into a simplified language at a selected proficiency level. This tool aims to make literature more accessible to language learners by simplifying complex language structures and vocabulary.
[!WARNING] It uses OpenAI API and requires an API key to work, which is not provided with the package. It can also be quite expensive to use, depending on the size of the book.
Motivation
The idea for this tool was inspired by the need to make literature more accessible to language learners. Many language learners struggle to read books in their target language due to the complexity of the language used in literature. This tool addresses this issue by simplifying the language used in books to make them more accessible to language learners at different proficiency levels.
In particular, for the Dutch language, there is a lack of literature in accessible language in electronic format. Having the text on an e-book allows using built-in dictionaries and other tools to help comprehensively understand the text.
Installation
To install EPUB Simplifier, follow these steps:
pip install epub-simplifier
Usage
After installation, you can use the EPUB Simplifier tool directly from your command line. The basic command structure is as follows:
export OPENAI_API_KEY=your_api_key
Optionally, set the organization ID if you have one:
export OPENAI_ORG_ID=your_org_id
Run the command:
epub-simplify --help
Example Command
epub-simplify original_book.epub simplified_book.epub Dutch B1
This command will read original_book.epub
, simplify its contents, and save the result as simplified_book.epub
.
Requirements
The dependencies will be installed automatically during the package installation process.
Feedback and Contributions
Your feedback and contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue on the GitHub repository or submit a pull request with your changes.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file epub_simplifier-0.0.5.tar.gz
.
File metadata
- Download URL: epub_simplifier-0.0.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3640e786e43a900c98a0df539cc442e461244ccdc33a326ac685e8dff7d49861 |
|
MD5 | 4f23999aa164d2cc90967ac7aaf7b0a6 |
|
BLAKE2b-256 | 77e8b93e34e44eec9ee8a4e5298455b0c9a4facbc2ffe4c5b3bbea7771c63954 |
File details
Details for the file epub_simplifier-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: epub_simplifier-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62e041e5851681c7a85b6233081b2370bf8722477309b4b9a37874975dd29c18 |
|
MD5 | 42ee91f06fdabde205713fc9fcad5f60 |
|
BLAKE2b-256 | cb83f1a51e8c3ca66a744e2a29dc3fecbb4eb52173c236ad71b87e379c71bb4f |