orthonym.rules.cage_substituents#
Note
Internal API. Names and behaviour may change between releases.
Names for the non-ring branches of a von Baeyer cage (large-polycycle plan, Task 3a).
polycyclic.get_polycyclic_substituents spells the branches of a tricyclo-and-larger cage on
the PIN path. A branch that holds a heteroatom (a halogen, a nitro group, a haloalkyl, an
alkylsulfanyl) is not an alkyl group, and naming it by its carbon count describes a different
molecule (‘1-methyl…’ for a bromomethyl branch, a bare parent for a bromo branch). The cage
collector therefore names such a branch through the shared substituent cascade, or declines the
cage, and never skips or approximates it.
Only a branch whose heteroatoms are all in groups that are NEVER the principal characteristic group is built here: halogens, nitro, ether oxygen and thioether sulfur. A branch with a group that can be expressed as a suffix (an acid, ester, amide, nitrile, aldehyde, ketone, alcohol, hydroperoxide, amine or imine: classes 1 through 20 of “SENIORITY ORDER FOR CLASSES”, the Blue Book, Table 4.1) is left to the producers that choose the principal group. A prefix form of such a group on a cage that has no senior group (a ‘carbamoyl’ branch on a parent hydride) is not the preferred name, so for those branches the collector declines the cage, as before.
(the Blue Book, section “ HALOGEN COMPOUNDS”): “named in two ways: (1) by
- substitutive nomenclature, using the prefixes ‘bromo’, ‘chloro’, ‘fluoro’, and ‘iodo’…”.
(:25935, section “ NITRO AND NITROSO COMPOUNDS”): “Compounds containing the -NO2
or -NO group are named by means of the prefixes ‘nitro’ and ‘nitroso’…”.
- orthonym.rules.cage_substituents.DECLINE = <object object>#
the cage is declined
- Type:
returned by:func:cage_branch_token for a branch with no honest name
- orthonym.rules.cage_substituents.cage_branch_token(mol, nbr_idx, sub_atoms)#
The prefix of a heteroatom-bearing non-ring branch of a cage, from the shared cascade.
nbr_idxis the branch atom bonded to the cage,sub_atomsevery atom of the branch. Returns the token;Nonewhen the collector’s own paths decide the branch (it holds no heteroatom, it is a plain alkoxy group, or it holds a group that can be the principal characteristic group, which those paths decline); or:data:DECLINE when the cascade cannot name a branch of prefix-only groups, so that the cage is declined.An O-attached acyloxy or peroxy branch (the macrocycle F3 route) is named through the cascade at the best-effort tier only: at the PIN tier a substituent-prefix form of an ester is not the PIN.