Use case
Cuisine and category classification for menu catalogs
Merchants name dishes however they like. Latimal's /classify endpoint gives every item a cuisine label and a confidence score, so your filters, facets and reports run on clean data.
| Item | Cuisine | Confidence |
|---|---|---|
| Pad Thai | Thai | 0.91 |
| Margherita Pizza | Italian | 0.88 |
| Sushi Roll | Japanese | 0.92 |
| Butter Chicken | North Indian | 0.94 |
One label and one confidence per item, in the order you sent them.
The problem
Why catalog tags drift
- 비빔밥
- BIBIMBAP (VEG) LRG
- SOONDUBU JJIGAE!!
A merchant picks "Asian" for the whole restaurant. A POS export arrives with no cuisine field at all. One Korean kitchen writes 비빔밥 in Hangul, another types BIBIMBAP (VEG) LRG, and a third lists SOONDUBU JJIGAE!! in capitals with punctuation attached. Your Korean filter needs all three.
Keyword rules can't keep up with that, and hand-tagging doesn't scale past a few hundred restaurants. Item-level classification fixes it at the source: every dish gets its own label, whatever the restaurant called itself.
At a glance
One call, one label per item
- Labels
- 19
- Regional cuisines, plus Bakery, Beverages and Desserts as classes of their own.
- Batch size
- 512
- Items per request, up to 500 characters each. One request counts as one API call.
- Confidence
- 0 to 1
- A score on every label, so you decide what to auto-apply and what to review.
How it works
How /classify works
POST /classifySend item names as they appear
Native scripts, transliterations, promo tags and prices are all fine. Noise is stripped before classification, so you don't clean anything first.
Get a label and a confidence per item
Results come back in submission order, one per item, each with a confidence score, ready to zip onto your records.
Store the label and build on it
Classify on ingest and re-run only items whose names change. Filters, facets, restaurant tags and dashboards all read from the same field.
Batching, restaurant tags and mapping labels to your filters are in the cuisine tagging guide. The schema is in the /classify API reference.
Example
The call behind Fig. 01
{
"items": [
"Pad Thai",
"Margherita Pizza",
"Sushi Roll",
"Butter Chicken"
]
}{
"results": [
{
"text": "Pad Thai",
"cuisine": "Thai",
"confidence": 0.91
},
{
"text": "Margherita Pizza",
"cuisine": "Italian",
"confidence": 0.88
},
{
"text": "Sushi Roll",
"cuisine": "Japanese",
"confidence": 0.92
},
{
"text": "Butter Chicken",
"cuisine": "North Indian",
"confidence": 0.94
}
]
}Drinks, baked goods and desserts get classes of their own, so the same call gives you a quick split between mains, drinks, bakery and desserts.
Reference
Supported labels
Cuisines
- Italian
- Japanese
- Korean
- Chinese
- Thai
- Vietnamese
- SE Asian
- Mexican
- American
- Middle Eastern
- Mediterranean
- European
- Continental
- North Indian
- South Indian
- Mughlai
Categories
- Bakery
- Beverages
- Desserts
Outcomes
What teams build with it
Cuisine filters and browse rails
A "Korean near you" shelf that catches 비빔밥 and BIBIMBAP (VEG) LRG alike, because the label comes from the item itself.
Search facets
Store the label on each item and you have a facet field. Pair it with semantic search so a query and a cuisine filter narrow results together.
Restaurant-level tags
Roll item labels up to the restaurant. A kitchen that's mostly Thai with a few Vietnamese dishes gets tagged by what it actually sells.
Catalog analytics
Measure cuisine mix by city, zone or partner, and spot the gaps worth filling when you onboard new restaurants.
Classification sits alongside the rest of the API. Semantic search finds the dish, cross-restaurant matching lines it up for price comparison, and cart upsell suggests what goes with it. Menu health reports and dedup are on the same key, covered in menu operations.
Classify your own menu
Paste in items from your catalog and see the labels come back. The playground runs without a key.
To start a 14-day trial, send a short note to hello@latimal.com and we’ll set it up. You add a card before the trial starts.