orthonym.rules.lipids#
Note
Internal API. Names and behaviour may change between releases.
lipid backbone-aware Form-B assembler (a phase, -01).
Consumes the structured BackboneMatch from perception.lipids.detect_lipid_backbone
and builds the fully systematic substitutive / functional-class (Form B) name — the
empirically OPSIN-round-trip-verified target form (180-internal notes). Every gate
failure returns None so the molecule cascade-continues to the general pipeline
(/, fail-safe → zero non-lipid regression).
Acyl groups are named by the robust acid-fragment-reuse strategy: isolate the fatty
acid, name it with the proven acid pipeline (systematic + E/Z), then convert
-oic acid → -oate / -oyl. This handles saturated, unsaturated,
polyunsaturated, branched, and hydroxy acyls uniformly.
- orthonym.rules.lipids.name_lipid(mol, style='pin')#
Name a lipid on its detected backbone (Form B), or None (cascade-continue).