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