A simple Python CLI tool to analyze a text file—counting words, and generating a report.
- Reads a specified text file (e.g.,
frankenstein.txt) - Computes:
- Total word count
- Frequency of each letter (case-insensitive, sorted descending)
- Outputs a clean, formatted report to the console
- Python 3.7 or higher
- Clone the repository
git clone https://github.com/Floppymnt/bookbot.git
cd bookbot- Add your book/text file
- Create a
books/directory (or similar) - Place
.txtfiles inside, (e.g., frankenstein.txt):
Run the script from the project root:
python3 main.py PATH/TO/frankenstein.txt- Analyze multiple files in a folder
- Filter only
.txtfiles or add support for.md,.pdf, etc. - Add flags for tweaked analysis
Pull requests, suggestions, and bug reports are welcome!
Follow the standard GitHub flow:
- Fork → 2. Create a branch → 3. Commit → 4. Submit a PR
Distributed under the MIT License. See LICENSE for details.
- @wagslane - Idea from Lane's incredible Backend Developer Bootcamp (https://github.com/bootdotdev)
- References (https://boot.dev)
This is my first git project made while following the boot.dev curriculum!