It would be nice, for the purposes of a more flexible form of indexing such that all text adorned with a role that had this property would, in addition to its standard role classes, receive a class of the form role<text> in it's class list. This would allow for easy dynamic HTML using CSS for any such text markup. In other words:
.. role:: keyword
If you remember :keyword:`apple` or :keyword:`pear`, you're almost there!
This would render similar to:
The output would be
If you remember
, you're almost there!
Where further CSS could highlight text of class roleapple or rolepear as necessary.