Skip to main content

Module chapter_map

Module chapter_map 

Source
Expand description

Maps detected functional groups to HS chapter / heading hints.

The mapping is intentionally approximate; predictions from this module carry confidence ≤ 0.70 and are tagged with PredictionSource::RuleEngine.

§Priority order

More specific functional groups take precedence (e.g. anhydride > carboxylic acid > alcohol). The first matching rule wins.

§HS structure used

  • Chapter 28 — inorganic chemicals (when organic_class is Inorganic)
  • Chapter 29 — organic chemicals (sub-headings by functional group)
  • Chapter 38 — misc. chemical preparations (default organic fallback)

Structs§

HeadingHint
HS chapter / heading hint derived from SMILES functional group analysis.

Functions§

map_to_heading
Derive an HS chapter / heading hint from functional group analysis.