LDA.js

github.com/primaryobjects/lda Developer Tools Open-source projectOpen source

This Node.js library implements Latent Dirichlet Allocation topic modeling in JavaScript.

github.com/primaryobjects/lda
LDA.js homepage screenshot

About LDA.js

LDA.js is a Node.js library that implements Latent Dirichlet Allocation to extract topics and related keywords from a collection of documents. The caller provides documents as an array and specifies the number of topics and terms per topic to return.

It returns topics as arrays of term and probability objects, filters common words using stop-words lists, and supports language selection and a fixed random seed for repeatable output.

Key features

  • Extracts topics and related keywords from document collections
  • Returns topics as arrays of term and probability objects
  • Lets users specify number of topics and terms
  • Filters common terms using English stop-words by default
  • Supports other stop-words lists via language ID arrays
  • Allows fixed random seed for repeatable results
Best for: Node.js developers who need to add topic modeling to JavaScript text processing.
Good for
  • Installs via npm and runs with a single function call
  • Includes support for multiple stop-words languages and custom lists
  • Offers a random seed option for consistent output across runs

LDA.js at a glance

Type
Open-source project
Pricing
Not confirmed. Check the site
Open source
Yes · Source code
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

LDA.js alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

LDA.js FAQ

What format does LDA.js output?
It returns an array of topics, each containing an array of objects with term and probability fields.
How do I use stop-words for another language?
Pass an array of language IDs, such as ['de'] or ['en', 'de']. Custom lists can be added as lib/stopwords_XX.js files following the existing format.
How can I get the same results on repeated runs?
Specify a random seed in the function call, for example lda(documents, 2, 5, null, null, null, 123).
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing