I hope I'll be forgiven this slightly OT question... it is more related to Linguistics than Perl, actually.

I am looking for a good solution to split up German text into its syllables. I found Tex::Hyphen, which can deal with German texts, but it doesn't mention the new German spelling. Does that module seem to give reasonable results, or are there better solutions out there?

Also, I'm trying to attach a "length" to these syllables (e.g. "Maß" is longer than "Hass"). I'm not a linguist, so I just thought I might try to look for certain patterns and attach weights to them. E.g. a syllable with "ie" will be counted "long", a syllable with "ss" will be counted short (using the new German spelling). Does anybody know a comprehensive list of German syllables with such "weights", or a better approach for this problem? (The "weights" don't need to be 100% accurate; I want to use them for music generation.)


In reply to Splitting text into syllables by crenz

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.