Counting Syllables
Craig Newman
craig at starfirelighting.com
Mon Mar 21 10:56:38 EDT 2022
I would think one would need a database that maps all words with the number of syllables in those words. I am sure some sort of algorithm would do a creditable job, but I bet it would not do a perfect job. For example, and embedded “eau” is usually one syllable, but a word such as “miaou” is two syllables
Craig
> On Mar 20, 2022, at 2:51 PM, Rick Harrison via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Hi Richmond,
>
> Yes, English. Sorry I forgot to be specific, I thought it was implied.
>
> Yes, I have been counting vowels, but there appear to be a lot of exceptions,
> so there must be a lot more rules.
>
> I need to know what all the rules are to make it work if possible.
>
> There are websites out there on the internet that will count
> syllables in whatever text given to them so it must be possible.
> How are they doing it? Is it an algorithm ,or are they comparing
> the words to a database table that has all the dictionary information?
>
> Thanks,
>
> Rick
>
>
>> On Mar 20, 2022, at 2:29 PM, Richmond via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Well, syllables are language dependent, so let's suppose for the moment that
>> you are ONLY working with English, the, presumably, you can set up vowels
>> as item-delimiters: although you might get a bit mixed up with words sucj
>> as 'beautiful' which, while having 5 vowels only has 3 syllables.
>>
>> Basically you have to work out how to detect V+C and open vowels at the
>> end of words.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list