Hi Jochen
...
You can define an ontology, Karl does this for the WikDict
dictionaries, example here (search for tagsDecl):
https://download.freedict.org/generated/fra-deu/fra-deu.tei
The corresponding ontology is here:
https://github.com/freedict/fd-dictionaries/blob/master/shared/FreeDict_ontology.xml
Pull requests are welcome!
Cheers
Sebastian