Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

COMPOUNDRULE inside SFX #943

Open
mtrevisan opened this issue May 12, 2023 · 1 comment
Open

COMPOUNDRULE inside SFX #943

mtrevisan opened this issue May 12, 2023 · 1 comment

Comments

@mtrevisan
Copy link

mtrevisan commented May 12, 2023

Hi, I don't understand why my example doesn't work (maybe it's my mistake?)

I have this aff file

FULLSTRIP

COMPOUNDMIN 1

COMPOUNDRULE 1
COMPOUNDRULE AC

SFX B Y 1
SFX B a b/A a

This dic file

2
a/AB
c/C

And my tests are

ac
bc

The result by running analyze is

> ac
analyze(ac) =  pa:a st:a pa:c st:c
stem(ac) = ac
> bc
Unknown word.

While I expected bc to be recognized as analyze(bc) = pa:b st:b pa:c st:c, or something like that.
Where am I doing wrong?

@mtrevisan
Copy link
Author

Using

COMPOUNDPERMITFLAG S
COMPOUNDBEGIN S
COMPOUNDEND E

with S added to A, and E added to C seems to work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant