@nlpjs-neo/lang-eu
v5.1.2
Published
Basque language support for NLP.js Neo
Maintainers
Readme

@nlpjs-neo/lang-eu
Part of NLP.js Neo, a refreshed and maintained fork of axa-group/nlp.js. The packages are ESM only, written in TypeScript, and require Node.js 22.12 or later.
Introduction
@nlpjs-neo/lang-eu is the Basque language plugin of NLP.js Neo. It bundles the tokenizer, the
stemmer, the stopwords, the normalizer and, where the language has one, the sentiment
dictionary, and registers them in the container for the eu locale.
Installation
pnpm add @nlpjs-neo/lang-euExample of use
import { containerBootstrap } from '@nlpjs-neo/core';
import { Nlp } from '@nlpjs-neo/nlp';
import { LangEu } from '@nlpjs-neo/lang-eu';
const container = await containerBootstrap();
container.use(Nlp);
container.use(LangEu);
const nlp = container.get('nlp');
nlp.settings.autoSave = false;
nlp.addLanguage('eu');
// add your documents and answers, then train
await nlp.train();From a conf.json, name the plugin in the use list:
{
"use": ["Basic", "LangEu"]
}The classes can also be used on their own:
import { StopwordsEu } from '@nlpjs-neo/lang-eu';What it exports
| Export | What it is |
| ------ | ---------- |
| LangEu | the plugin that registers everything below in a container |
| StemmerEu | reduces a token to its stem |
| StopwordsEu | removes the words that carry no meaning for the classification |
| TokenizerEu | splits a text into tokens |
| NormalizerEu | lowercases the text and strips accents |
| SentimentEu | the sentiment dictionary of the language |
node-nlp-neo and @nlpjs-neo/lang-all already include this package, so install it
directly only when you assemble the container yourself.
See Language support for what each locale supports.
Contributing
You can read the guide of how to contribute at Contributing.
Code of Conduct
You can read the Code of Conduct at Code of Conduct.
Who is behind it
NLP.js was created and developed by AXA Group Operations Spain S.A., with Jesus Seijas as its main author; AXA Group is no longer involved in maintaining it. nlpjs-neo is a fork of that project, currently maintained by Igor Savin and the contributors to the fork.
License
Copyright (c) AXA Group Operations Spain S.A.
Copyright (c) 2026 Igor Savin
Released under the MIT License.
