def-gthill / lexurgy

A high-powered sound change applier
GNU General Public License v3.0
46 stars 5 forks source link

Word Boundaries in Syllabification Rules #42

Closed neta-elad closed 2 years ago

neta-elad commented 2 years ago

Is there any way to define syllabification rules that are sensitive to word boundaries? E.g.,

Syllables: # Only allow nasal codas in word-final position
  [consonant]? [vowel]
  [consonant]? [vowel] [nasal]? $
def-gthill commented 2 years ago

You can put conditions on syllable patterns just like ordinary rules:

Syllables: # Only allow nasal codas in word-final position
  [consonant]? [vowel]
  [consonant]? [vowel] [nasal]? / _ $

(You need to put $ in the condition, not in the main pattern, because the word boundary isn't actually part of the syllable)

Hope that helps!

neta-elad commented 2 years ago

Thanks a lot!