#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1200
Task: , and the answer is:

</think>

Write a Python function that converts a given paragraph of text into a sequence of syllables, where each syllable is represented as a tuple containing the vowel count a
Generated: 2026-02-12T23:54:45.472572
"""

import re

def count_syllables(text):
    # Split the text into words
    words = re.findall(r'\b\w+\b', text)
    syllables = []

    for word in words:
        syllable = ''
        vowel_count = 0
        consonant_count = 0
        for char in word:
            if re.match(r'[aeiouy]', char, re.IGNORECASE):
                vowel_count += 1
                syllable += char
                # End of syllable after vowel
                syllables.append((vowel_count, consonant_count))
                vowel_count = 0
                consonant_count = 0
            else:
                consonant_count += 1
                syllable += char
        # Handle the last syllable if word ends with consonants
        if vowel_count > 0 or consonant_count > 0:
            syllables.append((vowel_count, consonant_count))
    return syllables

if __name__ == '__main__':
    paragraph = "The quick brown fox jumps over the lazy dog"
    syllables = count_syllables(paragraph)
    for i, (vowels, consonants) in enumerate(syllables):
        print(f"Syllable {i+1}: vowels={vowels}, consonants={consonants}")