JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="tags" />

JavaScript

$('#tags').keyup(function(e){
    var code = e.which ? e.which : e.keyCode;
    var input = this.value;
    if (input.indexOf('tel') != -1) {
       this.value = this.value.replace(/\btel\b/gi,'telephone');
    
    }
    
});