rudikershaw/whichx
A small, no dependencies, Naive Bayes Text Classifier for JavaScript
This is a tool for developers who need to categorize short text descriptions into predefined labels using a simple machine learning model. You input examples of text with their correct categories (e.g., "fluffy and purrs" as "cat"), and the tool learns from these. Then, when you provide new, uncategorized text, it predicts the most likely category.
Available on npm.
Use this if you are a JavaScript developer building an application that needs to quickly sort short textual inputs, like product reviews, support tickets, or user comments, into established categories without external dependencies.
Not ideal if you need to classify long documents, handle complex language nuances, or require a solution that automatically discovers categories rather than using predefined ones.
Stars
38
Forks
6
Language
JavaScript
License
MIT
Category
Last pushed
Feb 03, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/nlp/rudikershaw/whichx"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
n3integration/classifier
A general purpose text classifier
winkjs/wink-naive-bayes-text-classifier
Naive Bayes Text Classifier
wolny/complement-naive-bayes
Implementation of Complement Naive Bayes text classifier used for automatic categorisation of...
cache117/cs453-text-doc-classification
Text Document Classification Using a Multinomial Naive Bayes Model
Carla-de-Beer/naive-bayes-text-classifier
A Naive Bayes Text Classifier that classifies input text into one of two categories: either a...