@nlpjs-neo/builtin-duckling
v5.2.2
Published
Builtin Named Entity Recognition with Duckling
Maintainers
Readme

@nlpjs-neo/builtin-duckling
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/builtin-duckling extracts builtin ("golden") entities — dates, numbers,
durations, amounts of money and the rest — by forwarding the utterance to a running
Duckling server. It covers more languages than
@nlpjs-neo/builtin-microsoft, at the cost of running that server.
Installation
pnpm add @nlpjs-neo/builtin-ducklingExample of use
import { dockStart } from '@nlpjs-neo/basic';
const dock = await dockStart({
settings: {
'builtin-duckling': { ducklingUrl: 'http://localhost:8000/parse' },
},
use: ['Basic', 'BuiltinDuckling', 'LangEn'],
});
const builtin = dock.get('builtin-duckling');
const ner = dock.get('ner');
ner.container.register('extract-builtin-??', builtin, true);ducklingUrl defaults to the DUCKLING_URL environment variable, and to
http://localhost:8000/parse when that is unset. With node-nlp-neo it is enough to pass
ner: { ducklingUrl } or ner: { useDuckling: true } to the NlpManager constructor.
The full documentation, with the response of each entity type, is at Integration with Duckling.
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.
