Did you have a look at pChat? I think it got such a feature to rename the guilds to short forms.
But I also know pChat overwrites and changes a lot of chat stuff so better not "doing the totally same" :-)
Visit the devs here and ask the question, I bet someone is able to help:
https://gitter.im/esoui/esoui