User:CWenger/unhyphenateFunction.js

function autoEdUnhyphenate(str) { str = str.replace(/(\bear)?(\bfami)?(\bf)?(\bIta)?(\bJu)?(\bnorther)?(\bon)?ly-/g,     function($0, $1, $2, $3, $4, $5, $6, $7)    {      for(var i = 1; i <= 7; i++)        if(arguments[i])          return arguments[0];

return 'ly '; } );  return str; }