#16 homonym support broken with compound flags

closed
None
5
2007-01-21
2006-11-08
Bjoern Jacke
No

I have created a very minimal dictionary/affix file to
illustrate a problem where homony support seems broken.
In my opinion a word flagged with "ONLYINCOMPOUND"
should only have this one applied for exactly that
dictionary entry. However it seems to act like the
forbidden flag sometimes for non compound words.

See this aff file:

SET ISO8859-1

SFX N Y 1
SFX N 0 n .

SFX S Y 1
SFX S 0 s .

SFX P Y 1
SFX P 0 en .

SFX Q Y 2
SFX Q 0 e .
SFX Q 0 en .

COMPOUNDEND z
COMPOUNDPERMITFLAG c
ONLYINCOMPOUND o

and this dictionary file:

3
weg/Qoz
weg/P
wege

I would expect weg and all affix expansions of the Q
Flag ("wege" and "wegen") to be allowed at the end of
compound words while "weg", "wegen" (from weg/P) and
"wege" are also correct stand alone words. Hunspell
however says:

# echo "weg wege wegen" | hunspell
Hunspell 1.1.4
*
*
& wegen 1 9: wege

Hmm... this is kind of inconsistent. Either

"wegen" should be incorrect if both "wege" and "weg"
are incorrect, too - or:

"weg", "wege" and "wegen" should be considered to be
correct (which is the behaviour I would prefer and expect).

Discussion

    • assigned_to: nobody --> nemethl
     
  • Logged In: YES
    user_id=726595
    Originator: NO

    Hi Björn,

    Thanks for the report. It seems, I will fix it in the next release. Laci

     
  • Bjoern Jacke
    Bjoern Jacke
    2006-11-17

    Logged In: YES
    user_id=341344
    Originator: YES

    Hi Laci, that would be really cool! Let me know if you want me to test things. Thanks so much ... Bjoern

     
  • Logged In: YES
    user_id=726595
    Originator: NO

    Fixed in Hunspell 1.1.5

     
    • status: open --> closed