def-gthill / lexurgy

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

Suggestion: Make it possible to define classes from features #39

Closed sievertst closed 1 year ago

sievertst commented 2 years ago

For example, I would like to define the following:

# (current produces an error saying that "[" makes no sense in this context)
Class sonorant {[vowel], [nasal], [lateral], [approximant]}

Or are there any other elegant ways to do this that I haven’t thought of?

def-gthill commented 2 years ago

As far as I know there isn't currently an elegant way to do this, but a few are on my to-do list. Thanks for requesting.

def-gthill commented 1 year ago

Finally got to this one! Sorry it took so long...

Classes are still the same as always, but there's a new type of declaration that's much more flexible, and allows things like what you requested.

Thanks again for the suggestion!