Creating Highlightable text with definition when pressed

I want to be able to procedurally generate text, and then have some keywords that can clicked on for a definition if the user doesn’t know what the word means.

Here are my obstacles:
I am procedurally generating this text from the backend, so I can’t hard code hit-boxes/buttons for this text. Otherwise, I would just but an invisible hitbox to do this for me.
I also need to be able to make the keyword distinguishable.

Any insight or advice would be appreciated :slight_smile: