Skip to main content
100%

Gist d117b3d6bcfdf1722bd5

✓ Published0🌍 Public
TTylerKirby
Last edited Mar 8, 2016
Created on Mar 8, 2016

This example analyzes the prosody of Latin prose by counting occurrences of specific metrical patterns, called clausulae, in a string of syllable stress marks. The Clausulae class uses Python’s `str.count` method to tally matches for eighteen named rhythm patterns, such as “cretic + trochee” and “double spondee,” against a concatenated prosody input. It returns a dictionary mapping each pattern name to its frequency, providing a quantitative breakdown of rhythmic endings. The code is plain Python with no external visualization libraries, focusing solely on the text-analysis computation.

AI-generated description

Similar vizzes