From ca0fc97a68820f269578bbaee352854ef2b2fef4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Nov 2026 03:47:45 +0000 Subject: [PATCH 1/2] Count words with one split --- src/tally/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tally/__init__.py b/src/tally/__init__.py index 37248b7..378f468 100644 --- a/src/tally/__init__.py +++ b/src/tally/__init__.py @@ -16,7 +16,7 @@ def word_count(text): """ if not text: return 0 - return len(text.split(" ")) + return len(text.replace("-", " ").split()) def character_count(text, include_spaces=True): From 50d832ddc40ad233ec0ecc0fde23848afb7f2664 Mon Sep 17 00:00:00 2001 From: Jeff Bishop Date: Sat, 7 Nov 2026 20:50:09 -0700 Subject: [PATCH 2/2] Run the checks