If you are OK with the link being written out in plain text into the same element that you are typing into, this might do the trick for you.
http://jsfiddle.net/paulinfrancis/XFA4e/
var $thetext = $('#the-text');
var typedText = '';
var replaceText = '<a title="best programming help" href="https://www.stackoverflow.com/">programming</a>';
var programmingRegex = /programming$/gi;
$thetext.on('keyup', function(data){
typedText = $thetext.val();
var matches = typedText.match(programmingRegex);
if(matches){
typedText = typedText.replace(programmingRegex, replaceText);
$thetext.val(typedText);
}
});