Menu

#267 Hunspell analyse shows sometimes analyzes which are not correct following the defines rules in the dictionary/affix file

v1.0 (example)
open
nobody
None
5
2015-04-26
2015-04-26
No

Consider this situation:

Affix file:

SET ISO8859-1

SFX S Y 1
SFX S 0 s .

COMPOUNDEND z

ONLYINCOMPOUND o

Dictionary file:

1
fundament/Soz tt:test2

If you run the Hunspell 1.3.3 analyze for the word “Fundaments” then you get correctly the output:

Unknown word.

That means the the rule

fundament/Soz tt:test2
does not apply on “Fundaments”.

Now modify the dictionary file:

2
fundament/Soz tt:test2
Fundament/S tt:test3

You get the following result:

analyze(Fundaments) = st:fundament tt:test2 fl:S
analyze(Fundaments) = st:Fundament tt:test3 fl:S

This is wrong. As only the second rule in the dictionary applies, the correct output would be:

analyze(Fundaments) = st:Fundament tt:test3 fl:S

Discussion