orthonym.validation.spelling.checks_amide_chains#

Note

Internal API. Names and behaviour may change between releases.

Spelling check: the parent chain of two amides on different chains (registered with orthonym.validation.pin_spelling.register()).

A molecule with two acyclic carboxamide groups of different kinds on two chains (a primary and an N-substituted one) is named by the producers on the chain of the amide that comes first in the order of the kinds (the primary amide), whichever chain makes the senior parent. (the Blue Book), “The preferred IUPAC name is based on the senior parent structure that has the maximum number of substituents cited as prefixes”, and (:21698), “… that has the lower locant or set of locants for substituents cited as prefixes”: the prefixes of a chain with an amide include the substituents of the amide nitrogen, at the locant ‘N’, which is lower than any number: ‘3-[5-(3-amino-2-methyl-3-oxopropyl)-2-methylphenyl]-N-methylpropanamide (PIN) [not 2-methyl-3-{4-methyl-3-[3- (methylamino)-3-oxopropyl]phenyl}propanamide; the locant set ‘N,3’ in the PIN is lower than ‘2,3’]’ (:21730). Before the prefixes, (:20916) “(b) has the greater number of skeletal atoms” decides by the length of the chain.

The structure decides, from the two chains alone: each chain is the longest path of carbon atoms from the carbonyl carbon outside rings, its prefixes are the other neighbours of its atoms (the oxygen and the nitrogen of the amide are its suffix) and the substituents of the amide nitrogen; the chain with the greater length, then the greater number of multiple bonds,:21033, “The senior ring, ring system or principal chain has the greater number of multiple bonds”;,:21016: it decides when to do not, so before, then the greater number of prefixes, then the lower set of locants (‘N’ first) is the parent. The name is a failure when the other chain wins (the check abstains on every shape it does not model). No naming code, no OPSIN.

orthonym.validation.spelling.checks_amide_chains.amide_chain_parent_check(mol, name)#

Two acyclic carboxamide groups of different kinds on two chains, the chain of the first kind not the senior parent by (length), (number of prefixes) and (their locants, ‘N’ lowest).