hunspell / hunspell

The most popular spellchecking library.

Home Page:http://hunspell.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

COMPOUNDRULE inside SFX

mtrevisan opened this issue · comments

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?

Using

COMPOUNDPERMITFLAG S
COMPOUNDBEGIN S
COMPOUNDEND E

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