We are having some problem combining two affix rule with a compound rule.
In Hunspell is it allowed to make a compound-rule with two affixes, like this:
Where the first affix-rule is a NEEDAFFIX-rule!
Simplified example whit Danish words:
hus huset (affix rule 1 = add "et")
stel stellet (affix rule 2 = add "l" and affix rule 1)
underhuset (compund + affix)
understellet (compund + affix + affix)
I know there is a workaround by making affix rule 2 more complex, so it includes all the rules from affix rule 1 too, but if can we avoid it we would prefer it.
Could you attach your aff and dic files? Thanks in advance.
I have a similar problem, where I am trying to make hunspell recognise compounds like these:
stem + clitic
stem + affix + clitic
stem + affix + affix + clitic
The .dic file looks like this:
# Word that needs an affix
# Word that can be standalone or take the suffixes in A
# These are clitics
# They are allowed to appear either alone, or as the last part
# of a compound, as specified in the compounding rule
The .aff file looks like this:
SFX A Y 2
SFX A 0 lin/HG . VI
SFX A 0 lit/D . VI
SFX B Y 1
SFX B 0 atta/EFA .
Accepted words are:
Words that are not accepted, that I thought these rules would allow:
Are there any obvious defects in my rules?
Another question: why isn't barggahattalinbarggahattalin a recognised as a valid compound, but bargalinbarggahattalin is?
Principally barggahattalin is the same type of word as bargalin, isn't it?