orthonym.classify_parts#

Note

Internal API. Names and behaviour may change between releases.

The phases of Orthonym._classify (namer.py), moved here verbatim: the parent ring choice, the cyclic classification with its ring assembly, PAH, senior ring, heterocyclic and carbocyclic steps, and the chain parent. Each takes the namer (self) and the features it fills in; a phase that ends the classification returns True. _classify calls them in its order.

orthonym.classify_parts.ring_parent_choice(self, features)#

A cyclic molecule: the parent choice between its ring systems and a chain.

orthonym.classify_parts.cyclic_ring(self, features)#

The classification of a cyclic parent; True when it ends the classification.

orthonym.classify_parts.ring_systems_and_pah(self, features)#

(stop, the principal ring system): ring assemblies and polycyclic aromatic hydrocarbons first.

orthonym.classify_parts.senior_ring_and_type(self, features, _principal_ring_system, atom_rings)#

The senior ring system and its ring type.

orthonym.classify_parts.heterocyclic_ring(self, features)#

A heterocyclic principal ring: classify, detect substituents, and orient.

orthonym.classify_parts.carbocyclic_ring(self, features)#

A non-benzene, non-heterocyclic principal ring: substituents and orientation.

orthonym.classify_parts.chain_parent(self, features)#

The principal chain of an acyclic parent, or of a chain parent of a cyclic molecule.