Thread:User talk:Rua/Northern Sámi IPA module/reply (2)

I'm not sure I understand your suggestion. Could you give some examples?

In any case, stress is more or less predictable when the foot boundaries are known (i.e. first syllable of every foot is stressed), but I don't think there is a way for an algorithm to accurately determine where those boundaries are, even for ones with four syllables. Take for instance buotveagalaš "all-mighty", which has four syllables, but whose syllable-per-foot count is divided 1-3 rather than 2-2.

Loan words like studeanta offer additional complications, i.e. having two feet instead of the expected one.

I think the best solution is just to allow the user to input how many syllables there are per foot (e.g. inputting something like 1,3 in the template for buotveagalaš or 1,2 for studeanta). Template:fi-pronunciation uses dashes for compounds to indicate where the stresses are (so something like spelling out buot-veagalaš with the template).

Maybe extra inspiration can be found in other templates (though I haven't looked through all of them myself)