BookBot is a text analysis tool that analyzes text files and provides word count and character frequency statistics.
- Count the total number of words in a text file
- Analyze character frequency (letters only)
- Sort characters by frequency in descending order
- Command-line interface for easy usage
Run the program by providing the path to the text file you want to analyze:
python main.py books/frankenstein.txtmain.py: Entry point of the applicationstats.py: Contains text analysis functions/books: Directory containing sample books for analysis
The repository includes several classic texts for analysis:
- Frankenstein
- Moby Dick
- Pride and Prejudice