library/normalization.js
function applyReplacementRules(rulesset, content) {
  return rulesset.reduce((a,b) => {
    return a.replace(b[0], b[1]);
  }, content);
}
function applyReplacementRules(rulesset, content) {
  return rulesset.reduce((a,b) => {
    return a.replace(b[0], b[1]);
  }, content);
}
function applyReplacementRules ( rulesset , content ) { return rulesset . reduce ( ( a , b ) => { return a . replace ( b [ 0 ] , b [ 1 ] ) ; } , content ) ; }
Apply replecement rules
Apply replecement rules