export const usePrettify = string => {
  return (
    string
      .replace(/-/g, ` `)
      .replace(/_/g, `, `)
      .replace(/depoca/, `d'epoca`)
      // Capitalize every workd
      .split(" ")
      .map(s => s.charAt(0).toUpperCase() + s.substring(1))
      .join(" ")
      // Capitalize for apostrofo
      .split(`'`)
      .map(s => s.charAt(0).toUpperCase() + s.substring(1))
      .join(`'`)
      .replace(/D'/, `d'`)
  )
}
