Open a definition (.txt file) of the active object with a shortcut from the 3D view

In order to easily open the definition of anatomical structures represented in the open source atlas of anatomy ( z-anatomy.com ), I would like, with a customized shortcut, to automatically open, in the text editor, a .txt file whose name is the same(*) as the one of the active object.

(*)Most objects are instanced and their names are followed by ‘.r’/’.l’; this part should be ignored.

Is there a way to do it?