orthonym.rules.fused_amide_suffix#
Note
Internal API. Names and behaviour may change between releases.
N-substituted carboxamides on a fused ring system (2026-11-20).
(the Blue Book: “The suffix ‘carboxamide’ is always used to name amides with the -CO-NH2 group
attached to a ring, ring system”) and (:32774, N-Substitution): an amide R-CO-NHR’ or R-CO-NR’R” on a
ring is named with the suffix ‘carboxamide’ and its nitrogen substituents cited as prefixes with the locant N
(‘N,N-dimethylbenzamide’). The fused-ring producer (rules.polycyclics) matched only -CONH2, so an N-substituted
amide on naphthalene, quinoline, indole or indazole got no PIN (‘N-methylnaphthalene-2-carboxamide’ was shipped as
‘N-methylbicyclo[4.4.0]deca-1(10),2,4,6,8-pentaene-3-carboxamide’). The rule here is the heterocycle producer’s
(rules.heterocycles: the same SMARTS, the hydrazide and hydroxamic shapes left out, and a fail-closed count of the
nitrogen’s branches against the names benzene._detect_n_substituents gives).
- orthonym.rules.fused_amide_suffix.n_substituted_carboxamide(mol, start_idx, core_atoms, chain_atoms, several=False)#
The suffix record of an N-substituted carboxamide whose carbon
start_idxis joined to the fused corecore_atoms:{'name': 'carboxamide',..., 'n_substituents': [...]}, or None (another shape, or a nitrogen branch the namer cannot name: the whole record declines rather than drop a substituent).several: the caller cites each amide’s N groups with its own N-locant (rules.benzene_polyamide.polycyclic_polyamide_prefixes), so two or more carboxamides of the core may carry N groups.
- orthonym.rules.fused_amide_suffix.cites_n_prefixes(suffix_groups)#
True when the italic-N prefixes of the name belong to its suffix: a promoted amine, or exactly one carboxamide or sulfonamide (two with N groups would need N and N’ locants, which this producer does not write).
- orthonym.rules.fused_amide_suffix.fused_heterocycle_n_amide(mol, start_idx, excluded, chain_atoms)#
n_substituted_carboxamide()in the record form ofrules.fused_rings(a ‘suffix’ branch whose N groups join the producer’s italic-N table).
- orthonym.rules.fused_amide_suffix.fused_n_sources(mol, substituents, atom_mapping)#
The italic-N prefix sources
('n', name, locants)ofrules.fused_rings._assemble_fused_heterocycle_name: a bare ‘N’ per group, or, for two or more ring carboxamides of which a nitrogen carries a group, the N-locant of each group’s own nitrogen, the Blue Book: ‘N1-methylbutanediamide (PIN)’). None (decline) when a symmetry of the ring system that keeps every other locant would give the nitrogens lower locants; the producer does not renumber for them).
- orthonym.rules.fused_amide_suffix.carbamoyl_prefix(n_substituents)#
The prefix form of the amide when the ring is itself a substituent (‘methylcarbamoyl’, ‘dimethylcarbamoyl’, ‘benzyl(methyl)carbamoyl’, ‘(propan-2-yl)carbamoyl’):, the N groups as prefixes of ‘carbamoyl’, the first cited bare unless compound and the next in parentheses; None for more than two groups.