"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getTokenizer = void 0;
var tokenizer_en_1 = require("./en/tokenizer-en");
var tokenizer_es_1 = require("./es/tokenizer-es");
var TOKENIZERS = {
    en: new tokenizer_en_1.TokenizerEn(),
    es: new tokenizer_es_1.TokenizerEs(),
};
function getTokenizer(locale) {
    if (!(locale in TOKENIZERS)) {
        throw new Error("No Stemmer configured for locale '" + locale + "'");
    }
    return TOKENIZERS[locale];
}
exports.getTokenizer = getTokenizer;
//# sourceMappingURL=tokenizer.js.map