- Hide quoted text -- Show quoted text -
>> Basically if you install the CMU dictionary, and
>> enable ActiveX controls (the "FileSystemObject"
>> is such a control that I need to access the dictionary)
>> ..then the scan will /work/.
>> This is what it does..
>> 1) Breaks the words up into lines.
>> 2) Loops on the words in each line...
>> ..each new line initializes the <iambic beat> variable
>> which is updated by each syllable.
>> 3) Looks up the word
>> ..each lookup could involve multiple variants.
>> ..the first variant whose leading syllable stress
>> matches the <iambic beat> is chosen.
>> ..at this point there are several special cases:
>> A) a monosyllable word that /wants/ stress
>> is demoted to unstressed to satisfy
>> the <iambic beat> (shown as ~)
>> B) secondary stresses (as marked in the dict)
>> are demoted to satisfy the <iambic beat>
>> (shown as: +)
>> ..if the word cannot be coerced to iambic the line is
>> marked red from that point on.
>> Clearly it must be easy to enter words into the dictionary,
>> so that it is easily expanded. (future)
>> ..in cases of variants, the author should be able to specify
>> what variant they wish chosen, and have it remember. (future)