rudikershaw/whichx

A small, no dependencies, Naive Bayes Text Classifier for JavaScript

56
/ 100
Established

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.

JavaScript-development text-categorization data-labeling developer-tool client-side-logic
No Dependents
Maintenance 10 / 25
Adoption 7 / 25
Maturity 25 / 25
Community 14 / 25

How are scores calculated?

Stars

38

Forks

6

Language

JavaScript

License

MIT

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.