orthonym.assembly.handlers.imidic_ester#

Note

Internal API. Names and behaviour may change between releases.

Esters of imidic acids that the =NH oxygen-ester handler (imidate) does not own.

IUPAC cite: “Esters of acids modified by functional replacement nomenclature”,

(the Blue Book-31999): ‘methyl ethanimidate (PIN)’, ‘ethyl propanehydrazonate

(PIN)’, ‘methyl benzenecarboximidothioate (PIN)’, ‘ethyl N-sulfanylbenzenecarboximidothioate (PIN)’;

‘ethyl N,N-dimethylcarbamimidothioate (PIN)’. (the Blue Book):

imidic and hydrazonic acids follow the carboxylic acids in class 7a, so their esters are class 9, senior to every group that is not an acid, an anhydride or an ester.

What owned these molecules before: ester_family (the sulfur ester came out as ‘1-(methylsulfanyl)ethan-1-imine’), the imine handler (an N-substituted ester came out as ‘1-ethoxy-N-methylethan-1-imine’) and the hydrazone handler (‘(1-ethoxypropylidene)hydrazine’), each shipped as pin_verified. A name for the same structure that puts the ester oxygen or sulfur on the imine carbon as a prefix is a systematic name, not the PIN.

Scope (anything else returns None and the old path runs unchanged, so no row loses a name): one acyclic R-C(=N-X)-Y-R' group, Y = O or S, no other principal group, a neutral molecule whose stereo elements (if any) all lie in the organyl group R’ (it cites them, ‘N-… (2S)-2-chloropropyl cyclohexanecarboximidothioate’); R = H, an acyclic carbon chain whose first carbon is saturated (its unsaturation is cited by ‘ene’/’yne’; the chain is the longest,, an unsubstituted benzene ring, or any other ring, whose stem is the name of its acid with ‘-ic acid’ turned into ‘-ate’ (‘methyl cyclohexane- carboximidothioate’, ‘ethyl 4-chlorobenzene-1-carboximidothioate’; _stem_from_acid), or, where the engine has no name for that acid (a heteroaromatic or fused ring), the name of the carboxylic acid with the same ring and group position, whose ‘-carboxylic acid’ becomes the suffix of the ester (‘methyl pyridine-4- carboximidothioate’; _stem_from_carboxylic_acid) (R = N gives the S-ester of carbamimidic acid); X = H, a carbon group, an alkoxy group (OR, cited as ‘N-methoxy’ like the ‘N-sulfanyl’ of the book’s example), NH2 (the O-ester hydrazonate), or OH “Carbohydroximic acids”: ‘N-hydroxyethanimidic acid (PIN)’, so ‘methyl N-hydroxyethanimidate’). The =NH O-esters and the O-carbamimidates stay with imidate (priority 2900). Registered at priority 90, ahead of oxime (100), hydrazone (200) and every handler listed above.

PURE per: predicate and builder only read mol.

orthonym.assembly.handlers.imidic_ester.name_imidic_ester(features, mol=None, style='pin')#

Handler: the imidic ester PIN, or None (gate-fail, -04) so the next handler runs.

orthonym.assembly.handlers.imidic_ester.build_imidic_ester_name(mol)#

The PIN of one imidic ester group, or None when this builder does not own the molecule.

orthonym.assembly.handlers.imidic_ester.imidic_ester_parent_expected(features)#

True when the PIN of the molecule is the ester of an imidic or hydrazonic acid: one acyclic R-C(=N-X)-Y-R' group and no group senior to it, the Blue Book, class 9; the amides, nitriles, aldehydes, ketones, alcohols, amines and imines are junior to it). A name of such a molecule that cites the group as an imine (‘1-(methylsulfanyl)-1- (pyridin-4-yl)methanimine’) is correct and is not the PIN,:31983).