An library to improve your english proficiency skills.
Project description
I created this project to address my declining English skills. First, this project scrapes through Project Gutenberg's books to get a-lot of text. Then, it uses a Markov Chain to generate random sentences, which will then be saved to a PDF file. Here's how to use my package:
from gutenberg_scraper import GutenbergScraper
from markov_chain_generator import MarkovChainGenerator
from pdf_generator import PDFGenerator
from asyncio import run
async def main() -> None:
scraper: GutenbergScraper = GutenbergScraper("data.txt")
await scraper.save_book_texts(amount=200, overwrite_file=True)
markov_chain_generator: MarkovChainGenerator = MarkovChainGenerator("data.txt", "generated.txt", 1000)
markov_chain_generator.generate_text(overwrite_file=True)
pdf_generator: PDFGenerator = PDFGenerator("generated.txt", "output.pdf")
pdf_generator.generate_pdf()
if __name__ == "__main__":
run(main())
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file english_improver-0.2.0.tar.gz.
File metadata
- Download URL: english_improver-0.2.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73091113453f8e9644a3327d6abf91c8f8e7ea3982cf990468a3629475f27be3
|
|
| MD5 |
229444d1920f115a43bd610f6c39bcff
|
|
| BLAKE2b-256 |
a69140efba6bcf31a380397d4e23f49748aa4104dca935bea5a2ee4842339e06
|
File details
Details for the file english_improver-0.2.0-py3-none-any.whl.
File metadata
- Download URL: english_improver-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8376bbefe8990b15db257f16a77050965ae9b19a4180f78e4da21f870d55da71
|
|
| MD5 |
2aafe6bd0275fbf8fd0c3c1248ee5072
|
|
| BLAKE2b-256 |
bcbedc536fdc585005da6d409cac909a1fd97716184ac3c571814998b1d4abfe
|