code: function sanitizeWord (token, word, rules, uncountables) {
    let sanitized = word
    // Empty string or doesn't need fixing.
    if (!token.length || uncountables.hasOwnProperty(token)) {
      return sanitized
    }
  
    for (const rule of [ ...rules, ].reverse()) {
      if (rule[0].test(word)) {
        sanitized = replace(word, rule)
        break
      }
    }
  
    return sanitized
  }
docs: Sanitize a word by passing in the word and sanitization rules.
  
  @param  {string}   token
  @param  {string}   word
  @param  {Array}    rules
  @return {string}