From cfb6055a4d61338736e7612e3c602eb9ff5f7938 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 4 Apr 2025 22:15:58 +0100 Subject: [PATCH] refactor: remove determine_content_type function in favor of plugin system --- src/watch_voice_memos.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/watch_voice_memos.py b/src/watch_voice_memos.py index 722b8e4..9e2006b 100755 --- a/src/watch_voice_memos.py +++ b/src/watch_voice_memos.py @@ -24,16 +24,6 @@ logging.basicConfig( logger = logging.getLogger('voice_memo_watcher') -def determine_content_type(transcript_text: str) -> str: - """Determine the type of content in the transcript.""" - text = transcript_text.lower() - - if re.search(r'\bblog post\b', text) or re.search(r'\bdraft\b', text): - return "blog_post" - elif re.search(r'\bidea\b', text) and re.search(r'\bapp\b', text): - return "idea_app" - return "default" - def count_words(text: str) -> int: """Count the number of words in a text string.""" return len(text.split())