I’d like to re-enforce the “Dual coding theory” for the article. In german, they have three articles for the noun which are der (masculin), die (feminine), das (neutral).
So instead of writing the answer in german:
der Hut
die Frau
das Fräulein
I’d like to have der Hut die Frau das Fräulein
To do this, I was going to use python. But I did not found any package that could read/modify/write a .apkg file.
Just use JavaScript in the Notes of the package. You can determine the gender, if you have a separate column or if you can parse the definite article from the beginning of the word. Then you can apply your emoji/icon and its colour.