#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1157
Task: ,</think>

Write a Python function that transforms a given paragraph into a sequence of syllables, where each syllable is represented as a tuple containing the vowel sound and the surrounding consonan
Generated: 2026-02-12T22:19:03.229695
"""

import re

def syllabify_paragraph(paragraph):
    # Simplified phonetic model: group vowels and surrounding consonants
    # Rule: A syllable is defined as a vowel sound and the consonants directly before and after it
    # We'll split the paragraph into words, then syllabify each word
    words = re.findall(r'\b\w+\b', paragraph)
    
    syllables = []
    
    for word in words:
        # Split word into syllables using a simple vowel grouping
        syllable_groups = re.findall(r'([bcdfgklmnpqrstvwxz]*[aeiouy]+[bcdfgklmnpqrstvwxz]*)', word)
        for group in syllable_groups:
            # Extract vowel sound and surrounding consonants
            vowel_pattern = re.search(r'[aeiouy]+', group)
            if vowel_pattern:
                vowel_sound = vowel_pattern.group()
                surrounding_consonants = re.sub(r'[aeiouy]', '', group)
                syllables.append((vowel_sound, surrounding_consonants))
    
    return syllables

if __name__ == '__main__':
    test_paragraph = "The quick brown fox jumps over the lazy dog"
    syllables = syllabify_paragraph(test_paragraph)
    for syllable in syllables:
        print(syllable)