orthonym.rules.nitramide#

Note

Internal API. Names and behaviour may change between releases.

Amides of the mononuclear nitrogen and halogen oxoacids: nitramides, nitrous amides and the amides of the halogen acids,,.

BLUE BOOK AUTHORITY#

“SENIORITY ORDER FOR CLASSES” (the Blue Book) ranks the amides (class 11) above the

amines (class 19), so a nitrogen that carries a nitro, nitroso or halogen group is the nitrogen of an amide of the acid that group belongs to, and its substituents are cited as prefixes.

“N-SUBSTITUTION OF AMINES AND IMINES BY HETEROATOMS” (:26588-:26610): “This is a change. In

accordance with the seniority of classes (see, compounds such as R-NH-Cl, R-NH-NO, and R-NH-NO2 are now named as derivatives of amides (see.” Its examples (PIN): ‘ethylhypochlorous amide’ (:26604), ‘methylnitrous amide’ (:26606), ‘methyl(nitro)nitramide’ (:26608), ‘methylbromous amide’ (:26610).

“Amides and hydrazides of nitric and nitrous acids” (:35866): “Preferred IUPAC names

for amides and hydrazides of nitric and nitrous acids are now systematically based on nitric or nitrous amide and hydrazide, in accordance with the seniority order of classes rather than as nitro and nitroso amines” – ‘dipropylnitrous amide’, ‘butyl(ethyl)nitrous amide’ (:35882, :35884), ‘(chloromethyl)(methyl)nitramide’ (:35886).

“Amides of halogen acids” (:39700): “The seniority order of classes is applied to

give preferred IUPAC names for amides of halogen acids.” – ‘methylbromic amide’ (:39704), ‘ethylhypochlorous amide’ (:39706); (:25880) ‘methylhypochlorous amide’.

The acids are those of “CLASS 7e. OTHER MONOBASIC ‘OXO’ ACIDS USED AS FUNCTIONAL PARENTS” (:18453): nitric, nitrous, perfluoric… hypofluorous, perchloric… hypochlorous, perbromic… hypobromous, periodic… hypoiodous. Their seniority is “(a) the central atom first in the list N > F > Cl > Br > I; (b) highest oxidation number for the central atom”, which chooses the parent when the nitrogen carries two such groups (‘methyl(nitro)nitramide’: one nitro group is the amide, the other a prefix).

The amide nitrogen is the ONLY substitutable position of the amide, so its prefixes are cited without the locant N in the (:7272) form of a mononuclear parent: ‘methyl(nitro)nitramide’, ‘butyl(ethyl)nitrous amide’, ‘methylbromic amide’.

SCOPE (fails closed on everything else, never a per-molecule case)#

  1. One acyclic amide nitrogen with 1-2 acid groups (nitro, nitroso, a halogen with 0-3 oxygen atoms) and 0-2 carbon substituents, the rest of the molecule being exactly those substituents (so that every atom is accounted for). A nitrogen in a ring is a heterocycle N-substituted by the group (‘1-chloropiperidine’), which the book’s cyclic-amide rule (class 11, “cyclic amides are named as heterocycles”) leaves to the ring names.

  2. Nothing in the molecule senior to this amide:18162: the ions, classes 4-6, the acids, anhydrides, esters, acid halides and the amides of the senior acids, classes 7 to 11 – a carboxylic or sulfonic amide, a urea, carbamate, amidine, hydroxamic acid). The check fails closed: the molecule is named here only when every group in it is on the explicit JUNIOR list (_JUNIOR_GROUPS: hydrazides, nitriles, aldehydes, ketones, hydroxy compounds, amines, ethers, sulfides, the prefix-only groups…), the structure has no charge but the nitro and azido groups of a carbon, and no carbonyl carbon with a heteroatom neighbour but the hydrazide’s. Where it fails, that group is the principal one and the groups of this module are N-prefixes of its name (‘N-methyl-N-nitrosourea (PIN)’,:25965): rules/n_hetero_amines.py. The nitramide is held to the same check: ‘acetylnitramide’ and ‘(carboxymethyl)nitramide’ are not names of the amide of nitric acid when the acetamide or the acid is the class.

  3. ``N,N’-dinitromethanediamine``: exactly two nitro-bearing amide nitrogens, each with NO other substituent, both attached to the SAME bridging methylene (the one shape with a real witness); a numeric-locant diamine would need superscripted N^1/N^3 locants.

Plain nitramide (H2N-NO2) stays with the retained-name table; the other bare amides (‘nitrous amide’, ‘hypochlorous amide’…) are named here, “Amides and hydrazides” (:35760): “Amides and hydrazides are named by functional class nomenclature by replacing the term ‘acid’ in the name of the corresponding acid by ‘amide’”.

orthonym.rules.nitramide.name_substituted_nitramide(mol, style='pin')#

Return the PIN of an amide of a mononuclear nitrogen or halogen oxoacid, else None.

(hydroxymethyl)nitramide, bis(hydroxymethyl)nitramide, dipropylnitrous amide, methyl(nitro)nitramide, ethylhypochlorous amide, methylbromic amide, N,N'-dinitromethanediamine. Fails closed on every shape outside the three documented in this module’s docstring.