Expand description
Rule-based HS code classification engine.
The engine uses a static CAS → HS mapping table (static_table)
and a shape/purity matcher (matcher) to classify known compounds
without any LLM calls.
Chapter 38 (miscellaneous chemical preparations) is handled by
chapter38, which provides use-case-based classification for mixtures.
Modules§
- chapter38
- Chapter 38 — Miscellaneous chemical products.
- jp_
table - Japan Customs 統計品目番号 (statistical item code) lookup table.
- matcher
- Rule matching logic — selects the best
HsRulefor a given CAS number, physical form, and optional purity. - static_
table - Compile-time embedded CAS → HS code mapping table.
- types
- Types for the static HS rule table.