orthonym.rules.ring_nitrogen_yl#

Note

Internal API. Names and behaviour may change between releases.

The nitrogen of a ring that is a substituent of a ring parent.

A nitrogen bonded to the parent ring and to two carbons of a ring of its own is the free valence of that ring: ‘piperidin-1-yl’ “General methodology for naming substituent groups”, the heteromonocyclic parent hydride with the free valence at its nitrogen, locant 1), ‘1H-pyrrol-1-yl’, ‘9H-carbazol-9-yl’. It is no amino group whose two substituents are chains: the carbons around such a ring are all-carbon and walk as an ‘alkyl’ group of the carbons of the ring (-N1CCCCC1 read as ‘dipentylamino’, -n1cccc1 as ‘dibutylamino’), so the name described another molecule and the round trip refused it.

orthonym.rules.ring_nitrogen_yl.n_in_substituent_ring(mol, n_idx, parent_atoms)#

True when the atom n_idx is a member of a ring that shares no atom with parent_atoms (the ring system of the parent): the atom is the attachment atom of a ring substituent.

orthonym.rules.ring_nitrogen_yl.MAX_RING_YL_SYSTEM = 40#

the largest ring system, and the largest ring in it, whose substituent the benzene writers offer to the substituent namer whatever the size of the rest of the fragment: the fused and spiro hydrocarbons and heterocycles of the retained, fusion and spiro names (pyrene 16, spirobi[fluorene] 25). A macrocycle (the 16-membered ring of porphyrin) or a larger system is a von Baeyer name when it is a prefix, not a ring-yl of the writers below.

orthonym.rules.ring_nitrogen_yl.ring_yl_in_scope(mol, atom_idx, fragment_atoms)#

True when atom_idx is a ring atom of a ring system (ring-bond-connected: fused, spiro and bridged rings count, a bond to another ring does not) of at most MAX_RING_YL_SYSTEM atoms whose rings have at most MAX_RING_YL_RING members, and the whole fragment bonded to the parent has at most that many atoms: a larger fragment is several ring systems joined by bonds (a branched polyphenylene), which the writers of the ring-yl names do not take.

orthonym.rules.ring_nitrogen_yl.ring_yl_branch_in_scope(mol, fragment_atoms, parent_atoms)#

ring_yl_in_scope for a fragment bonded to the parent through a chain: the fragment holds a ring, every ring system in it is within the bounds, the whole fragment has at most MAX_RING_YL_SYSTEM atoms, and the parent ring system bears at least as many principal characteristic groups as every other ring system : ‘2-[(decahydronaphthalen-1-yl)methyl]benzene-1,3-diol’). A tie is accepted here: the criteria after

are not applied, and the name still goes through the read-back and the spelling checks. The size limit

of the writers guards against naming a ring as the parent of a molecule whose parent is another ring; the groups tell which ring that is.

orthonym.rules.ring_nitrogen_yl.large_substituent_in_scope(mol, start_idx, sub_atoms, ring_atoms)#

A substituent of more than ten atoms that the benzene collector still names: a ring-nitrogen ‘-yl’ group (ring_nitrogen_yl), an ‘a’ chain (‘4-(2,5,8,11-tetraoxatridecan-13-yl)benzoic acid’, or a group without a ring atom: a chain on a ring is a substituent of the ring whatever its length, (the Blue Book) “Names of cyclic hydrocarbons substituted by chains are formed by substituting chains, saturated or unsaturated, into rings… This rule must be strictly applied in the context of preferred IUPAC names” (‘5-[(11E)-heptadec-11-en-1-yl]benzene-1,3-diol’). A chain with a double bond to oxygen (the ester, acyl or acid group of carbon, phosphorus or sulfur) is left to the routes that name it as such: the substituent namer cites it as ‘oxobutoxy’ and the like, a worse name than the ester name another route gives.