#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1119
Task: .loc

</think>

Write a Python function that converts a given paragraph of text into a sequence of syllables using a heuristic based on vowel groups and consonant clusters, and returns the count of sy
Generated: 2026-02-12T21:02:07.143929
"""

import re

def count_syllables_per_sentence(paragraph):
    # Split paragraph into sentences
    sentences = re.split(r'[.!?]', paragraph)
    syllable_counts = []

    for sentence in sentences:
        if not sentence.strip():
            syllable_counts.append(0)
            continue

        # Split into words
        words = re.findall(r'\b\w+\b', sentence)
        count = 0

        for word in words:
            # Count vowel groups (syllables)
            vowels = re.findall(r'[aeiouy]+', word.lower())
            count += len(vowels)

        syllable_counts.append(count)

    return syllable_counts

if __name__ == '__main__':
    test_paragraph = "The quick brown fox jumps over the lazy dog. A journey through the forest was filled with wonder."
    counts = count_syllables_per_sentence(test_paragraph)
    for i, count in enumerate(counts):
        print(f"Sentence {i+1} syllable count: {count}")