A suggestion, with evidence
A model can suggest.
A person decides.
Train a small text classifier. Inspect the words behind its suggestion. Check the results on requests it did not learn from.
01 / Keep the decision visible
From request to reviewed category.
Use a fictional example or write a generic request. Keep personal, employer and client information out of this public demonstration.
MODEL SUGGESTION
Review requiredReady for a fictional request.
A human chooses the final category in every case.
Relative model scores compare these four categories. They are not calibrated confidence and do not prove a request belongs to any of them.
What influenced the suggestion?
Positive contributions favour the leading category; negative contributions favour its nearest alternative. These are learned word associations, not an understanding of the request.
The person remains responsible
Choose the category you would use.
Inspect the request and suggestion, then make your own selection. Recording it only updates this page's temporary review list.
Your local review list
Up to six decisions in page memory. Refreshing clears them.
| Local ID / request | Model suggested | Human selected |
|---|
02 / Measure the behaviour
The evaluation stays in view.
The displayed results are calculated from a fixed held-out fictional set. Every example counts, including mistakes and requests flagged for closer review.
Confusion matrix
Rows: actual category. Columns: model's top category.
Per-category results
Precision, recall and F1 include all held-out records.
These hand-authored examples are not an independent benchmark or evidence of production accuracy. Shared vocabulary, small sample size and a single author limit what can be concluded. Zero-division metrics are shown as 0.
Inspect every held-out prediction
| Fictional request | Actual | Top category | Outcome / review policy |
|---|
Ambiguous and unfamiliar requests
These separate challenge examples are intended for review. The table shows where the simple gate flags them and where it misses them. No challenge record is used to train the model or counted in the held-out accuracy above.
| Fictional challenge | Top category | Gate behaviour | Reason for human review |
|---|
03 / Make the method inspectable
Small model. Clear boundaries.
This is supervised, classical machine learning implemented in JavaScript. It is not an LLM or generative-AI system.
Fit on training data only
Lowercase English tokens become word counts. Class priors and smoothed word likelihoods are learned from the training partition. Validation and held-out text do not enter the vocabulary or fitted counts.
log P(class) + Σ count(word) × log P(word | class)
Explain the association
The largest word contributions compare the leading class with the runner-up. Laplace smoothing uses α = 1. Unknown words are ignored by the classifier and remain visible in its coverage note.
Word order and meaning are not modelled. Negation, mixed topics, unfamiliar language and repeated words can mislead it.
Apply a separate review gate
The fixed heuristic flags fewer than two distinct known words, vocabulary coverage below 45%, or a leading log-score gap below 0.25 per recognised word. It is not a learned detector or a guarantee of correctness.
These thresholds were set before evaluating the bundled held-out set. Every decision still requires human selection.
Inspect the dataset and fitted model
Training vocabulary
Built from training records only. No stemming or stop-word removal.
Partition checks catch repeated IDs and identical tokenised text. They do not prove semantic independence or detect every near-paraphrase.
Data boundary: this page loads static assets from its host. Request text and review decisions are processed in page memory; the demo has no API calls, storage, accounts, telemetry or ticket integration. The demo does not save entered text or decisions; reinitialising the page clears its review list. Your browser may independently restore form text. Use fictional information.