Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

english_improver-0.2.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

english_improver-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for english_improver-0.2.0.tar.gz
Algorithm Hash digest
SHA256 73091113453f8e9644a3327d6abf91c8f8e7ea3982cf990468a3629475f27be3
MD5 229444d1920f115a43bd610f6c39bcff
BLAKE2b-256 a69140efba6bcf31a380397d4e23f49748aa4104dca935bea5a2ee4842339e06

See more details on using hashes here.

File details

Details for the file english_improver-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for english_improver-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8376bbefe8990b15db257f16a77050965ae9b19a4180f78e4da21f870d55da71
MD5 2aafe6bd0275fbf8fd0c3c1248ee5072
BLAKE2b-256 bcbedc536fdc585005da6d409cac909a1fd97716184ac3c571814998b1d4abfe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page