function remove_accents(text) {
    return text.replace(/\p{M}/gu, '');
}
Helper function to remove accents from a string.
@param {string} text The text to remove accents from.
@returns {string} The text with accents removed.