module.exports = function() {
    String.prototype.normalizeResponse = function() {
        return this.toString().trim().toLocaleLowerCase()
            .replace(/à|á|ä|â/g, 'a')
            .replace(/è|é|ê/g, 'e')
            .replace(/ù|ú|ü|û/g, 'u')
            .replace(/ò|ó|ö|ô/g, 'o')
            .replace(/ì|í|î/g, 'i')
        ;
    };
}

module.exports = function() {
    String.prototype.normalizeResponse = function() {
        return this.toString().toLocaleLowerCase()
            .replace(/à|á|ä|â|å|ã|ā|ă|ą/g, 'a')
            .replace(/è|é|ê|ë|ē|ė|ę|ě/g, 'e')
            .replace(/ù|ú|ü|û/g, 'u')
            .replace(/ò|ó|ö|ô|õ/g, 'o')
            .replace(/ì|í|î|ï|ĩ|ī|ĭ/g, 'i')
            .replace(/[^a-z0-9]/g, ' ')
            .trim()
        ;
    };
}

Support more special characters in normalization
Support more special characters in normalization

