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.

Modules§

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.