What you want can be achieved through a custom Rendering Transformarion. See for example existing transformations such as the wikiword transformation or the icon transformation. Actually I guess we could implement a generic transformation for finding and replacing full words, configured with a pattern and a replacement pattern.
If you want to write a transformation you’ll need to code in java.
Open question: is that a feature you’d be interested in implementing yourself and contribute it to the XWiki project? If you’re not a java dev, is that a feature you’d be interested in sponsoring?