Type design applications automatically generate features based on character suffixes. But sometimes it is necessary to write something custom like a lookup for a stylistic set, and I wrote an automation where you can insert a list of character names, set the suffix you need, and generate a substitution code, as well as wrap characters into classes, reverse the direction of substitution, capitalize or decapitalize, or just sort the list (alphabetically but logically grouped).
Suggestions for improvement are welcome.Suffix Automator
in action.Project page on GitHub
with feature explanation.