Would it make sense to make the diacritics dependent on the language? We could iterate through our word list and look for used diacritics for a given language.
But only if it would improve the performance.