From b88e696287a8b1cd9bee58a2c7a9470535058921 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Sat, 11 Sep 2021 19:51:56 -0700 Subject: [PATCH] Act word count percentages. --- README.md | 6 +++--- novel_stats/novel_stats.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2319445..612a669 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ chapter 3: 115 words chapter 4: 96 words chapter 5: 136 words (drafted) -act 1: 187 words -act 2: 212 words -act 3: 137 words +act 1: 187 words (~34%) +act 2: 212 words (~39%) +act 3: 137 words (~25%) drafted: 239 words dev edited: 83 words total: 539 words diff --git a/novel_stats/novel_stats.py b/novel_stats/novel_stats.py index 3e08f85..d1bbac3 100755 --- a/novel_stats/novel_stats.py +++ b/novel_stats/novel_stats.py @@ -86,7 +86,7 @@ def main(): if act_number is None: continue - print('act {}: {} words'.format(act_number, act_word_count)) + print('act {}: {} words (~{}%)'.format(act_number, act_word_count, act_word_count * 100 // total_word_count)) for status, status_word_count in word_count_by_status.items(): print('{}: {} words'.format(status, status_word_count))