How to use the @nlpjs/core-loader.BaseStemmer function in @nlpjs/core-loader

To help you get started, we’ve selected a few @nlpjs/core-loader examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github axa-group / nlp.js / packages / node-nlp / src / nlp / nlp-util.js View on Github external
static getStemmer(locale) {
    if (!locale) {
      return new BaseStemmer();
    const name = `Stemmer${locale.slice(0, 1).toUpperCase()}${locale.slice(1)}`;
    const Stemmer = LangAll[name];
    return Stemmer ? new Stemmer() : new BaseStemmer();



Latest version published 8 months ago

Package Health Score

81 / 100
Full package analysis

Similar packages