orthonym.assembly.chain_amide_prefixes#
Note
Internal API. Names and behaviour may change between releases.
Detachable amide-type prefixes of an acyclic chain substituent (lane/l17 item 12).
assembly.substituent_naming names a chain substituent from its bonds: it enumerates the groups on the chain,
numbers the chain from the free valence and cites each group as a prefix,. Two of its passes for a
pendant amide-type group live here, each a function of the molecule and the atoms handed in:
- *
consume_acylated_nitrogen()– a pendant acylated nitrogen -N(R’)-CO-R or -N(R’)-SO2-R on a chain carbon is the method-(1) amido prefix of (the Blue Book), like the same group on a ring or a parent chain;
*consume_sulfamoyl() – a sulfonamide -SO2-NR2 on a chain carbon, moved from the producer unchanged.
- orthonym.assembly.chain_amide_prefixes.consume_acylated_nitrogen(mol, sub_set, attach_idx, consumed, add_prefix)#
Consume every pendant acylated nitrogen of the chain substituent
sub_setas an amido prefix on its host carbon (n_acyl_amido.chain_acylated_n_prefix): the group’s atoms joinconsumedand the prefix, enclosed when it is compound, the Blue Book; marks escalate by,:7444: ‘(N-methylacetamido)’, but the simple ‘acetamido’ bare, ‘(acetamidomethyl)’), is handed toadd_prefix(host, prefix). None is consumed in a molecule with a dipeptide unit, nor in a fragment the engine cut from one (n_acyl_amido.in_peptide, which says what the scoping is and what it was measured to change).
- orthonym.assembly.chain_amide_prefixes.consume_sulfamoyl(mol, sub_set, attach_idx, consumed, _add_prefix, _ring_info_pf, carbon_free_valence_prefix, composed_prefix_organyl_name)#
Moved unchanged from
substituent_naming._name_polyfunctional_acyclic_substituent_impl(its pass 1f); the producer’s own helpers are handed in, so this module imports nothing from it.Pass 1f (a phase E2c, /, WRONG-MOLECULE RISK): a sulfonamide -S(=O)(=O)-NH2/-NHR/-NR2 hanging off a backbone carbon is the retained ‘sulfamoyl’ prefix, or its N-substituted ‘(R-sulfamoyl)’/’(dialkylsulfamoyl)’ form – ‘(methylsulfamoyl)methyl’ for -CH2-SO2-NHCH3. Consumed HERE so it can never reach the generic recursive Tier-4 path + parent_to_prefix’s ‘-amide’ string transform, which reads ‘methanesulfonamide’ as if it ended in the CARBOXAMIDE suffix and COLLAPSES THE SULFONYL TO ‘carbamoyl’ – a WRONG CONSTITUTION (measured: ‘-CH2-SO2-NHCH3’ -> the wrong ‘carbamoylmethyl’, a different molecule must catch). Reuses rules.benzene._build_n_substituted_sulfamoyl_prefix (the ring-side ‘{N-subs}sulfamoyl’ builder) rather than re-deriving it, for the CHAIN-side attachment. Fail-closed (skip this S) for: a ring-borne sulfonyl, a charged/hypervalent/isotope-labelled S, a ring amide N, DISTINCT N,N-disubstituents (the shared builder’s own conservative envelope – nested ‘ethyl(methyl)sulfamoyl’ is not built), or any shape outside the plain sulfonamide envelope (a bridging N, a branch this project’s organyl namer cannot express).