Closed bigyihsuan closed 1 year ago
You should be able to use syllable-level features for this, something like:
Feature (syllable) +cvc
Diacritic ^ [+cvc]
# Rest of declarations
Syllables:
[C] [V] [C] => [+cvc]
[C]? [V] [C]? [C]?
insert-r-on-cvc:
* => r / [V +cvc] _ [C]
I am not sure if there is a way to do this, but here we go.
I want to be able to have a rule only apply on syllables of given structure.
For example, let's say I want only
CVC
syllables to gain an additionalr
(CVrC
) but ignore all other syllables (soCV.CV
should not work, butCVC.CV
will, for example).Writing this as rules:
In the current system I would need to do the following:
This is verbose and error prone since you have two conditions you need to worry about.
I propose the following syntax:
which says that this rule only applies on syllables with form
[C] [V] [C]
.The syntax feels ugly, perhaps a better syntax can be thought up.