orthonym.assembly.n_acyl_amido#

Note

Internal API. Names and behaviour may change between releases.

The amido-type prefixes of an acylated nitrogen, on any attachment: ‘2-chloro-N-methylacetamido’, ‘N,2-dimethylpropanamido’, ‘N-methylmethanesulfonamido’, ‘(methylcarbamoyl)amino’.

Substituents of the types -NH-CO-R and -NH-SO2-R (the Blue Book): “When a group having preference

for citation as a principal characteristic group is present, the group R-CO-NH-, or R-SO2-NH-… of an N-substituted amide is named in two ways: (1) substitutively, by using a prefix formed by changing the final letter ‘e’ in the complete name of the amide to ‘o’… Method (1) generates preferred IUPAC names.” (:32995-32998); the book’s examples are ‘2-(N-methylpropanamido)benzene-1-sulfonic acid (PIN)’ (:33040) and ‘(N-cyclopropylmethanesulfonamido)acetic acid’ (:33029). The amide of the group -N(R’)-CO-R is the amide R-CO-NH-R’, named as a whole: the prefixes of the acyl and the N-substituent R’ are cited together in the order of (‘2-chloro-N-methylacetamide’, ‘N,2-dimethylpropanamide’), so no string of the acyl name and the N block is joined here. A urea group -N(R’)-CO-NR2 is the amino prefix that carries the carbamoyl prefix of the other nitrogen,:33338; ‘2-[(methylcarbamoyl)amino]naphthalene-1-carboxylic acid (PIN)’,:33354).

assembly.substituent_naming.n_substituted_acyl_amido_prefix builds the prefix of a plain acyl from the acyl and the N-substituent; a decorated acyl (a ring, a halogen, a branch, a second group) comes here, where the amide of the group is named by the engine and read back against the fragment. The producers of this module serve every attachment of the group: a ring (acylated_n_group, the hook of rules.benzene), a parent chain (n_substituted_sulfonamido_prefix, substituent_enumerator._name_amino_branch) and a carbon of a chain substituent (chain_acylated_n_prefix, the pass of chain_amide_prefixes).

orthonym.assembly.n_acyl_amido.decorated_n_acyl_amido_prefix(mol, sub_atoms)#

The method-(1) prefix of the group sub_atoms (the acyl nitrogen, its acyl and its one other substituent) from the complete name of the amide it stands for: the group capped at the nitrogen with a hydrogen is named as a whole (‘2-chloro-N-methylacetamide’) and its final ‘e’ changed to ‘o’ (‘2-chloro-N-methylacetamido’). Returns the bare prefix, or None (the caller keeps its fall-through) unless every one of these holds:

  • no atom of the group is charged, radical or labelled, so the prefix cannot lose a label or a charge;

  • the group holds one acylated nitrogen, the attachment one (_ACYLATED_N): with a second the amide name could be the name of the other amide, and its ‘amido’ would attach the group at the wrong nitrogen;

  • the name is the complete name of one amide, a single word that ends in ‘amide’ (‘N-methylacetamide’, not an acid, an ester or a ‘diamide’);

  • OPSIN reads the name back to the capped group on the full InChIKey (constitution and stereo): an atom the namer dropped is not a prefix. Fails closed when OPSIN cannot be consulted.

The PIN status of the amide name is carried to the prefix, so a name that cites it ships as a PIN only where the amide name is the PIN.

orthonym.assembly.n_acyl_amido.sulfonyl_neighbour(mol, n_idx, among)#

The sulfur of the one neighbour of the nitrogen n_idx (of the atoms among) that is a clean sulfonyl group -SO2-R of a sulfonamide: uncharged, unlabelled, two terminal =O and one carbon, the nitrogen the fourth neighbour. None for any other neighbour set (a sulfinyl, a sulfonimidoyl, a second sulfonyl, no sulfur).

orthonym.assembly.n_acyl_amido.acylated_n_group(mol, n_idx, ring_atoms)#

The substituent group of a benzene ring’s nitrogen n_idx when it is an acylated nitrogen that takes a prefix of its own: a tertiary -N(R’)-CO-R or -N(R’)-SO2-R, the N-substituted amido prefix of (the Blue Book; ‘2-(N-methylpropanamido)benzene-1-sulfonic acid (PIN)’,:33040, ‘(N-cyclopropylmethanesulfonamido)acetic acid’, :33029), or a urea -NH-CO-NR2 / -N(R’)-CO-NR2, the amino prefix that carries a carbamoyl prefix, :33338: ‘2-[(methylcarbamoyl)amino]naphthalene-1-carboxylic acid (PIN)’,:33354), as {'name', 'atoms', 'is_complex'} (the shape _identify_nitrogen_group returns). None for any other nitrogen, and for one with a heteroatom on it: -N(NHR)-CO-R is the hydrazin-1-yl unit of (‘4-(1-acetyl-2-ethylhydrazin-1- yl)benzoic acid’), cited by its own prefix. The group is cited as a prefix only where a group senior to it is present, which the parent selection has decided before a group is asked for.

orthonym.assembly.n_acyl_amido.parent_amide_is_senior(mol, acyl_c, group_atoms)#

False when a carboxamide outside group_atoms (the amido group a caller would cite as a prefix, whose amide has its carbonyl carbon at acyl_c) that the group’s amide ties or outranks is a candidate parent: the amides are one class, and the senior parent among them is chosen by rules.amide_parent.amide_parent_key (a ring, the longer chain, the multiple bonds, “Maximum number of substituent groups cited as prefixes”, the Blue Book, : the group with the senior amide is the parent, not a prefix, ‘2-(N,2-dimethylpropanamido)-N-methylpropanamide’ is not the PIN of ‘CC(C)C(=O)N(C)C(C)C(=O)NC’, which is ‘N,2-dimethyl-N-[1-(methylamino)-1-oxopropan-2-yl]propanamide’. The group is cited only where an amide parent outside it is strictly senior. True where the molecule’s principal group is not a carboxamide (an acid, an ester, a sulfonate); False where the principal amide lies in the group itself (a group that holds the principal group is no prefix of a parent outside it), where no other amide exists, and where it is not decidable.

orthonym.assembly.n_acyl_amido.parent_sulfonamide_is_senior(mol, group_atoms)#

False when the molecule’s principal group is a sulfonamide outside group_atoms (the sulfonamido group a caller would cite as a prefix): two sulfonamides tie, and “Maximum number of substituent groups cited as prefixes” (the Blue Book) then decides, as it does for two carboxamides (parent_amide_is_senior). True where the principal group is any other class (class 16 carboxamides are senior to class 19 sulfonamides, SENIORITY ORDER FOR CLASSES, the Blue Book) or lies inside the group itself, and False where it is not decidable.

orthonym.assembly.n_acyl_amido.in_peptide(mol)#

True when mol, or the molecule the caller asked name about (the engine names fragments it cuts from it, whose cut amide bonds no longer show a dipeptide unit), holds a dipeptide unit.

The chain-substituent amido pass (chain_amide_prefixes.consume_acylated_nitrogen) is kept out of such a molecule. That is a scoping of the pass, not a consequence of: “INTRODUCTION” (the Blue Book) says “Preferred IUPAC names (PINs) are not identified for the compounds in this Chapter”, which keeps the names the peptide handler builds from residues (‘alanylaspartylglutamic acid’) below the PIN, while the systematic substitutive name of a dipeptide is the expected PIN of the project “Systematic substitutive names”,:54247; the E-AA ruling of 2026-10-31) and is built by the other amido routes: ‘(2-acetamidoacetamido)acetic acid’ is pin_verified. Measured on 110 corpus rows with a dipeptide unit, with and without the gate: 109 rows have the same name and label at the PIN and best-effort tiers, and one (a glutathione disulfide, best-effort) keeps the method (2) ‘[(2S)-2-amino-4-carboxy-1- oxobutyl]amino’ where the pass would cite ‘2-amino-4-carboxybutanamido’ and label it pin_unverified.

orthonym.assembly.n_acyl_amido.urea_carbonyl(mol, c_idx, n_p)#

(oxo, distal_n) when the carbon c_idx bonded to the nitrogen n_p is the carbonyl of a urea unit -N-CO-N<: one terminal =O and a second acyclic, uncharged, unlabelled nitrogen on single bonds, both uncharged and unlabelled; else None.

orthonym.assembly.n_acyl_amido.urea_prefix(mol, n_idx, group, host)#

The prefix of the pendant urea group -N(R’)-CO-NR2 whose proximal nitrogen is n_idx (one bond to host, the group the atoms group): the amino prefix that carries the carbamoyl prefix of the distal nitrogen, ‘(methylcarbamoyl)amino’, ‘[methyl(phenylcarbamoyl)amino]’.

(the Blue Book): “The prefixes for appropriate substituent groups derived from urea are formed

systematically. The prefixes ‘ureido’ and ‘ureylene’ are not recommended.” (:33340: ‘carbamoylamino’… recommended for preferred IUPAC names); ‘2-[(methylcarbamoyl)amino]naphthalene-1-carboxylic acid (PIN)’ (:33354). The distal nitrogen’s own substituents are cited on ‘carbamoyl’, the proximal nitrogen’s on ‘amino’, both through the one amino-prefix assembler. Returns the bare prefix core, or None unless every atom of the group is accounted for by the unit, the substituents on the two nitrogens and nothing else.

orthonym.assembly.n_acyl_amido.n_substituted_sulfonamido_prefix(mol, n_idx, sub_atoms, parent_atoms)#

The method-(1) prefix of an N-substituted sulfonamido branch -N(R’)-SO2-R whose one bond into the parent is the nitrogen’s: the complete name of the sulfonamide with its final ‘e’ changed to ‘o’ (‘N-cyclopropylmethanesulfonamido’).

(the Blue Book): “R-SO2-NH-… of an N-substituted amide is named… (1) substitutively, by using

a prefix formed by changing the final letter ‘e’ in the complete name of the amide to ‘o’, thus changing the suffixes … ‘sulfonamide’ to ‘sulfonamido’”; “Method (1) generates preferred IUPAC names”: ‘(N-cyclopropylmethanesulfonamido) acetic acid’ (:33029). The unsubstituted -NH-SO2-R is substituent_naming.sulfonamido_prefix_from_n_branch. None unless the nitrogen has exactly one parent bond and one other branch beside the sulfonyl, and the molecule’s principal group is not a sulfonamide the group ties (parent_sulfonamide_is_senior).

orthonym.assembly.n_acyl_amido.group_is_principal(mol, group)#

True when the group group (a set of atoms) is the molecule’s principal characteristic group: every match of the principal class lies in it, so it is the suffix of the parent and never a prefix, the Blue Book;. A match outside the group is a second group of the class, which parent_amide_is_senior and parent_sulfonamide_is_senior rank. An acyclic ester of a phosphorus or sulfur oxoacid outranks the amides classes 9 and 11), and rules.seniority.get_principal_group ranks it when its functional-class name can be built; while that name is being built (its organyl groups cite the amido prefix) the ester is the principal group asked of (rules.seniority.offered_principal_group). False for an ion, which the perception does not rank and which outranks the amides (_ION). True when the perception cannot tell.

orthonym.assembly.n_acyl_amido.chain_sulfonamido_prefix(mol, n_idx, sub_atoms, chain_set)#

The ‘(…sulfonamido)’ prefix of the branch sub_atoms of an acyclic parent whose nitrogen n_idx is on the chain chain_set and bears a sulfonyl (-SO2-R), ‘’ when it bears one the prefix cannot spell, None when it bears none (composer._check_for_acylamino).

(the Blue Book), “Method (1) generates preferred IUPAC names”: ‘3-(methanesulfonamido)propanoic acid’

(:33019), ‘(N-cyclopropylmethanesulfonamido)acetic acid’ (:33029). The -NH-SO2-R of a linear alkyl or an isolated benzene (heavy degree 2: chain and S) is spelled here, the N-substituted -N(R’)-SO2-R by n_substituted_sulfonamido_prefix; the alkylamino fallback of the caller counts the carbon branches of the nitrogen and has no place for the sulfonyl.

orthonym.assembly.n_acyl_amido.sulfonamido_prefix(mol, n_idx, sub_atoms, parent_atoms)#

The method-(1) prefix of the sulfonamido branch sub_atoms on the nitrogen n_idx, the Blue Book): ‘{R}sulfonamido’ of -NH-SO2-R (substituent_naming.sulfonamido_prefix_from_n_branch) and ‘N-{R’}{R}sulfonamido’ of -N(R’)-SO2-R (n_substituted_sulfonamido_prefix); None for any other branch.

orthonym.assembly.n_acyl_amido.sulfonamido_or_urea_prefix(mol, n_idx, sub_atoms, parent_atoms)#

The prefix of the branch sub_atoms on the nitrogen n_idx when it is a sulfonamido (sulfonamido_prefix) or a urea group -N(R’)-CO-NR2, the amino prefix that holds the carbamoyl prefix of the distal nitrogen and R’, the Blue Book; ‘carbamoyl(methyl)amino’,:33354), through the one bond into the parent; else None.

orthonym.assembly.n_acyl_amido.chain_acylated_n_prefix(mol, sub_set, attach_idx, n_idx, consumed)#

(prefix, group_atoms, host) when the nitrogen n_idx of the chain substituent sub_set (free valence at attach_idx) is a pendant acylated nitrogen -N(R’)-CO-R or -N(R’)-SO2-R on a chain carbon, with the method-(1) amido prefix of the whole group; else None.

Substituents of the types -NH-CO-R and -NH-SO2-R (the Blue Book): “When a group having preference

for citation as a principal characteristic group is present, the group R-CO-NH-, or R-SO2-NH-… of an N-substituted amide is named… (1) substitutively, by using a prefix formed by changing the final letter ‘e’ in the complete name of the amide to ‘o’… Method (1) generates preferred IUPAC names.” (‘4-(N-phenylacetamido)benzoic acid’ is the ring-attached form; this is the same group on a chain carbon: ‘4-[(N-phenylacetamido)methyl]benzoic acid’.) The group is the nitrogen, the acyl side and the one other substituent R’, all one pendant group of the chain: its prefix is built by the builders every other attachment of the group uses, so the chain, a ring and a parent chain name it the same way, and the host carbon cites it like any other prefix of the chain,.

The nitrogen must be acyclic, uncharged, unlabelled, all bonds single and not the attachment; its neighbours are the host (an acyclic sp3 carbon on the free-valence side) and one or two branches that do not lead back to the chain, exactly one of them the acyl (a carboxamide carbon, substituent_naming._is_amide_acyl_carbon, or a sulfonyl, with the senior-amide checks of parent_amide_is_senior / parent_sulfonamide_is_senior).