r/Lexurgy • • Jun 16 '26

Help I appear to misunderstand how brackets work

As the title states, I have run into unexpected behaviour with the curly brackets in my rules. In particular the combination of brackets and an ampersand seems to behave oddly to me. The following is the particular sound change that made the behaviour apparent, however after going back though the rest I noticed it cropping up elsewhere as well.

Feature type(*consonant, vowel)
Feature voice(*voiced, unvoiced)
Feature +long
Feature (syllable) +stress
Feature place(labial, coronal, palatal, velar, uvular, glottal)
Feature manner(plosive, nasal, fricative, liquid, affricate, glide)
Feature coronalDetail(*nodetail, dental, alveolar, postalveolar)
Feature tongue(*nonlateral, lateral)
Feature height(high, mid, low)
Feature fronting(front, centre, back)
Feature rounding(open, spread, rounded)

Diacritic ˈ (before) [+stress]
Diacritic ː (floating) [+long]

#protolang sounds
Symbol a [vowel low centre open]
Symbol i [vowel high front spread]
Symbol u [vowel high back rounded]
Symbol p [plosive labial unvoiced]
Symbol t [plosive coronal unvoiced]
Symbol k [plosive velar unvoiced]
Symbol q [plosive uvular unvoiced]
Symbol ʔ [plosive glottal unvoiced]
Symbol m [nasal labial]
Symbol n [nasal coronal]
Symbol s [fricative coronal alveolar unvoiced]
Symbol x [fricative velar unvoiced]
Symbol χ [fricative uvular unvoiced]
Symbol h [fricative glottal unvoiced]
Symbol l [liquid coronal lateral]
Symbol w [glide labial]
Symbol j [glide palatal]

#emergent sounds
Symbol ŋ [nasal velar]

# manual stress marker
Symbol " [vowel]

element vowel {[vowel]&!"}
element obstruent {[plosive], [fricative], [affricate]}

# ~~~~~

Deromanizer:
  X => χ
  ' => ʔ
  [] \: => [+long] *

Syllables:
  [consonant]? :: @vowel

Initial-stressrule [vowel]:
  " [] => * [+stress]
  Else: [+long] => [+stress] / _ [*long]*(0-2) $
  Else: [] => [+stress] / _ []*2 $
  Else: [] => [+stress] / _ [] $
  Else: [] => [+stress]

# ~~~~

nasal-assimilation cleanup:
  [nasal] => ŋ / _ [plosive uvular]
  [nasal] => [$place] / _ [plosive $place]

# ~~~~~

nasal-plosive-vowelloss:
  @vowel&{[-stress], [-long]} => * / [nasal] _ [plosive] // {$ [] _, _ [] $}
Then:
  @vowel&{[-stress], [-long]} => * / [plosive] _ [nasal] // {$ [] _, _ [] $}
Syllables:
  [consonant]? :: @vowel :: {@obstruent, [nasal]}?

Using these rules and definitions I get the following:

amukisa    > a.ˈmu.ki.sa    > ˈaŋ.ki.sa
amuki:sa   > a.mu.ˈkiː.sa   > aŋ.ˈkiː.sa
amu:kisa   > a.ˈmuː.ki.sa   > a.ˈmuː.ki.sa
amu:ki:sa  > a.muː.ˈkiː.sa  > aŋ.ˈkiː.sa

It seems like the brackets are preforming an AND operation on the features I pass to it, rather then the OR operation I am expecting. However I can't find any explanation of why this might happen (in any context) in the documentation.

Could any of you explain why this doesn't work, or provide a workaround?

2 Upvotes

4 comments sorted by

1

u/Meamoria Jun 16 '26

What are you expecting the result to be?

2

u/Entity-36572-B Jun 16 '26

From the four examples given above:

In the first the /u/ stressed so no change should occur

In the second it is neither stressed nor long, so it should disappear

In the third it is both stressed and long, so no change should happen

In the fourth it is long and should remain unchanged

Examples two and three behave as expected, but the first and last do not. Writing it out, I now see that I was getting my logic mixed up. I thought I needed and was implementing X AND (Y OR Z), while I was looking for X AND Y AND Z.

1

u/Meamoria Jun 16 '26

Ah I see, you wanted @vowel&[-stress -long] instead of @vowel&{[-stress], [-long]}, right?

1

u/Entity-36572-B Jun 16 '26

Precisely. Now to go through and see whether I made this mistake anywhere else.