"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getNormalizer = void 0;
var normalizer_en_1 = require("./en/normalizer-en");
var normalizer_es_1 = require("./es/normalizer-es");
var NORMALIZERS = {
    en: new normalizer_en_1.NormalizerEn(),
    es: new normalizer_es_1.NormalizerEs(),
};
function getNormalizer(locale) {
    if (!(locale in NORMALIZERS)) {
        throw new Error("No Stemmer configured for locale '" + locale + "'");
    }
    return NORMALIZERS[locale];
}
exports.getNormalizer = getNormalizer;
//# sourceMappingURL=normalizer.js.map