Skip to main content

Module rules

Module rules 

Source
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 HsRule for 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.