Skip to content

🌐Book-Bot is a simple Python script that analyzes a text file. It counts the total number of words and the frequency of each character in the text.

Notifications You must be signed in to change notification settings

MaxonT/BookBot-A_Python_Script_to_Analyze_Text_Files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book-Bot

Book-Bot is a simple Python script that analyzes a text file. It counts the total number of words and the frequency of each character in the text.

How to Run

  1. Clone or download this repository.
  2. Make sure you have Python 3 installed on your machine.
  3. Open a terminal and navigate to the repository directory.
  4. Run the script with the path to the text file you want to analyze:
python3 main.py path/to/your/book.txt

The script will output the total word count and a breakdown of character frequencies for the given text file.

Files

File Description
main.py Entry‑point script that reads a text file, computes word and character counts, and prints a report.
stats.py Helper module with a function to sort the character count dictionary.
README.md Documentation and usage instructions.

License

MIT © 2025 Tiger Yang

Built by Tiger Yang — Vanderbilt University · CS + HOD double major.

About

🌐Book-Bot is a simple Python script that analyzes a text file. It counts the total number of words and the frequency of each character in the text.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages