From 7d2b4938d0e15ab17c756c61ec6072ab8836cb59 Mon Sep 17 00:00:00 2001 From: Shane Date: Tue, 13 May 2025 20:21:33 +1000 Subject: [PATCH] improve insert link naturally with cursor --- foodie_utils.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/foodie_utils.py b/foodie_utils.py index 504fcbf..8af19a7 100644 --- a/foodie_utils.py +++ b/foodie_utils.py @@ -627,11 +627,10 @@ def insert_link_naturally(summary, source_name, source_url): logging.warning("No paragraph with multiple sentences found, using fallback.") return append_link_as_fallback(summary, source_name, source_url) - # Alternative phrases for variety + # Alternative phrases for variety (removed 'notes that' for natural flow) link_phrases = [ "according to {source}", - "as reported by {source}", - "{source} notes that" + "as reported by {source}" ] best_candidate = None