Let's say there is a form field in a user's profile where they can add the username of their significant other... and then have the name of their significant other show up in their profile, with a hyperlink to their page...
I brought up the authorbot mod because it recognized the username and automatically hyperlinked it, so I didn't know if it could be slightly modded to do this.