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,,.
SCOPE (fails closed on everything else, never a per-molecule case)#
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.
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.``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^3locants.
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.