SCA2 question

Almea and the Incatena
Post Reply
User avatar
ratammer
Posts: 37
Joined: Tue May 21, 2019 12:52 pm

SCA2 question

Post by ratammer »

Sorry if this is the wrong place to ask this, but I'm just playing with SCA2 and I'm not sure why something isn't working the way I expect. It might just be me rather than a bug, though.

I have the categories V=aiou and C=ptkfshlmnyw, and the rule y//#(C)_V. I'm expecting this to cause:
pyara -> para
yara -> ara
because the C is indicated as optional. However, I'm getting:
pyara -> para
yara -> yara

Why isn't the rule affecting "yara"?
User avatar
Vilike
Posts: 159
Joined: Thu Jul 12, 2018 2:10 am
Location: Elsàss
Contact:

Re: SCA2 question

Post by Vilike »

Maybe the <y> is immediately taken to be the optional C (which unfortunately functions as a "greedy"?)
yyara gives yara, lending credence to this hypothesis.
Yaa unák thual na !
User avatar
ratammer
Posts: 37
Joined: Tue May 21, 2019 12:52 pm

Re: SCA2 question

Post by ratammer »

Ah, that would make sense. Thanks!
zompist
Site Admin
Posts: 2972
Joined: Sun Jul 08, 2018 5:46 am
Location: Right here, probably
Contact:

Re: SCA2 question

Post by zompist »

I haven't checked the code, but I'm sure vilike is right. SCA2 doesn't do any backtracking, so since y matches C it can't undo that decision.

One way around this is to define an "anything but y" category

K=ptkfshlmnw
y//#(K)_V
vegfarandi
Posts: 332
Joined: Tue Aug 14, 2018 9:52 am

Re: SCA2 question

Post by vegfarandi »

Or define the semivowels as category Y which may be helpful for other changes as well. Whichever one is more economical for the changes you have planned.
Duriac Threadhe/him
Post Reply