Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2010
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Division of words

    Hi

    Someone know any script for division of words into syllables?

    Regards

    stickers

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,825
    Thanks
    78
    Thanked 4,413 Times in 4,378 Posts
    To do this absolutely correctly, you'd need a dictionary.

    If you are willing to "come close", you could probably figure out some algorithm. But good luck finding an algorithm that can correctly parse "algorithm". (Well, maybe you could...the ending "thm" is unusual enough that you could probably special case it.)

    Interesting that there aren't tons of hits from doing
    http://www.google.com/#hl=en&source=...ding+syllables
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,825
    Thanks
    78
    Thanked 4,413 Times in 4,378 Posts
    This thread is interesting:
    http://bytes.com/topic/c/answers/222...ning-syllables

    It basically says there isn't any good answer. And after remembering about "Wocestershire" and "Gloucester" ("woo-ster" and "glah-ster", respectively!!) I think I have to agree.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #4
    New Coder
    Join Date
    Aug 2010
    Posts
    16
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Yes, it is a hard task. Differently of Latin languages the english have particular rules very hard to put them in code.

    Accorgin to the: http://www.wordscount.info/hw/syllable.jsp

    the Syllable Counter uses a dictionary to look up the syllable length of words. Because of this it counts syllables more accurately than any other program extant.

    stickers

  • #5
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,825
    Thanks
    78
    Thanked 4,413 Times in 4,378 Posts
    Sure would be easy to do in Japanese. <grin/>
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •