Classify goods for export control from a description (or HS code).
Bilingual (English / Russian, auto-detected) goods classifier. Returns the
best-matching HS code (with EN+RU descriptions), related ECCNs, control
reasons (NS, MT, NP, CB, AT...), an export-control level (high/medium/low/
none), a confidence score, and alternative matches for review.
This is destination-agnostic — it identifies WHAT the goods are and whether
they are controlled in principle. To get the license decision FOR A SPECIFIC
destination, pass the result into export_controls_screen.
IMPORTANT, the matcher is lexical, and confidence scores the strength of
the string match, not the correctness of the classification: "equipment"
returns semiconductor manufacturing equipment at confidence 1.0. Treat the
code as a suggestion for narrowing the question. When no hs_code was
supplied the result carries classification_basis and
classification_confidence_note; read them before quoting any code, and ask
the user for the HS code or ECCN on their shipping documentation.
Args:
description: Goods description, min 2 chars (e.g. "uranium centrifuge",
"центрифуга для урана"). Required.
hs_code: Optional known HS code (4 or 6 digits) for a direct lookup.
language: Optional hint — "en" or "ru" (auto-detected if omitted).
Examples:
goods_classify("uranium centrifuge") # → HS 840120, ECCN 0B001
goods_classify("центрифуга для обогащения урана") # Russian query, same result
goods_classify("semiconductor manufacturing equipment")
goods_classify("", hs_code="840120") # direct HS lookup
Use case: 'Is a semiconductor lithography machine export-controlled?'