Ren'Py Text Analyzer is an extension that provides statistics about Ren'Py scripts, helping you track your writing progress.
Originally, I created this script for personal use but decided to share it. While it should function correctly in most cases, some edge-case scenarios related to dialogue filtering may not be accounted for, potentially leading to minor inaccuracies.
Key Features
1. Word and Dialogue Counts
Total & Selection Counts: Displays the total number of words and dialogue lines in your script, as well as the counts for any selected text.
Real-time Updates: Statistics update automatically as you type or change your selection.
Status Bar Display: Shows the word count directly in the VS Code status bar for quick reference.
2. Character Analysis
Per-Character Breakdown: Calculates and displays dialogue counts, word counts, and sentiment scores for each character in your script.
Accurate Character Identification: Identifies characters based on various dialogue formats used in Ren'Py.
Sentiment Analysis: Analyzes the emotional tone of each character's dialogue, providing a sentiment score.
Note: Sentiment scores are not limited to a -1 to +1 range and can extend beyond these values.
Dialogues are cleaned of markup and other non-dialogue elements before analysis.
3. Tree View Visualization
Organized Display: Presents all statistics in a clear, organized tree view within the VS Code sidebar.
Collapsible Sections: Allows easy navigation through character-specific data.
File Overview: Displays the name of the currently active Ren'Py file.
4. Dynamic and Automatic
Automatic Updates: The tree view and status bar automatically refresh as your script changes, ensuring you always have the latest information.
No Configuration Required: The extension works out-of-the-box without needing any setup.
Usage
Open a Ren'Py script file (.rpy) in VS Code.
View detailed statistics in the "Ren'Py Analyzer" sidebar or basic data on the status bar.
Select text to see selection-specific counts.
Expand the "Characters" section to view detailed character information.
Donations
This project is developed and maintained by me in my spare time. If you find it useful and would like to show your support, any donations would be greatly appreciated.