orthonym.validation.spelling.checks_amine_parent#
Note
Internal API. Names and behaviour may change between releases.
Spelling check of the parent of a secondary or tertiary amine (registered with
orthonym.validation.pin_spelling.register()).
A round trip proves the molecule, never the spelling: OPSIN reads ‘N-phenyl-1-(phenylsulfanyl)butan-2-amine’ back to the structure of the preferred ‘N-[1-(phenylsulfanyl)butan-2-yl]aniline’.
“Selection of the principal chain or senior ring system in secondary and tertiary amines” (the Blue Book): “When a choice for parent hydride is possible between a ring and a chain, the ring is preferred.” Its examples (:26288,:26292): ‘N-cyclohexylaniline (PIN)’, ‘N-butylcyclopropanamine (PIN)’ (not ‘N-cyclopropylbutan-1-amine’). An amine whose nitrogen is bonded to a ring atom and to a chain carbon is named on the ring, the chain a prefix of the nitrogen; a name that takes the chain as the parent is the general spelling.
The structure side is the one acyclic amine nitrogen of the molecule: neutral, three single bonds to carbon or hydrogen, no carbon of a carbonyl, thiocarbonyl or imine group next to it (an amide is another class), bonded to a ring atom and to an acyclic carbon. The name side is a word whose parent is an acyclic chain with the suffix ‘amine’ (a chain stem, with or without ‘an’/’en’/’yn’). A molecule with a second amine nitrogen is not judged: the suffix might be that nitrogen’s, and
(the maximum number of principal characteristic groups) decides before the ring does.
- orthonym.validation.spelling.checks_amine_parent.amine_ring_parent_check(mol, name)#
(:26247): the ring is the parent of an amine whose nitrogen is bonded to a ring and to a chain (‘N-[1-(phenylsulfanyl)butan-2-yl]aniline’, not ‘N-phenyl-1-(phenylsulfanyl)butan-2-amine’).