Hunspell's compound flags are a great improvement over former spell checker versions. However, when constructing a German scientific compound dictionary, I encountered one problem.
German compounds fall into the word class (verb, noun, adjective etc.) of their last element. Thus the case of the compound is set by the case of the last element, irrespective of the nature of the first elements. Nouns are uppercase, all other classes are lowercase.
noun+noun=noun: Gras + Halm = Grashalm (blade of grass)
noun+adj=adj: Gras+grün=grasgrün (green as grass)
adj+adj=adj: gelb+grün=gelbgrün (yellowish green)
adj+noun=noun: gelb+Fieber=Gelbfieber (yellow feever)
Therefore, there is no point in storing case information with the word itself since any type of word may result in compulsary upper or lower case spelling depending on the (unknown) rest of the compound. Rather, the program ought to know that case here generally depends on the end of the compound.
So far I have not found any way of including this in the dictionary, or did I overlook anything?
Otherwise, I would suggest introducing a flag stating that for the entire dictionary, compounds behave the way described above (suggested name: CASEOFREARELEMENT.