orthonym.assembly.acyl_prefix#
Note
Internal API. Names and behaviour may change between releases.
The acyl prefix of a saturated chain substituent that is a carbonyl group and carries another detachable group: ‘2-hydroxypropanoyl’, not ‘2-hydroxy-1-oxopropyl’.
substituent_naming._name_polyfunctional_acyclic_substituent_impl numbers a chain from its free
valence and cites every group on it as a detachable prefix, the oxo on the free-valence carbon
included (‘1-oxo’). That spelling is the name of the group by substitution on a -yl prefix; the
Blue Book gives the acyl group the name of the acid and puts the other groups on it.
Acyl groups derived from carboxylic acids with names retained only for general
nomenclature, (the Blue Book): “substitution on acyl groups is identical to that of acids… Preferred IUPAC names are systematic substitutive names”, with ‘propanoyl (preferred prefix)’, ‘1-oxopropyl’ the alternative that is not preferred (:30562). Substituted acyl prefixes the book prints as preferred: ‘3-chloropropanoyl’ (N-acetyl-N-(3-chloropropanoyl)benzamide (PIN),:33117), ‘2-methylidenebutanoyl’ ([2,3-dichloro-4-(2-methylidenebutanoyl)phenoxy]acetic acid (PIN),:31400), ‘oxoacetyl’ (:30516) and, for the two-carbon acyl, ‘chloroacetyl’ ((chloroacetyl)oxyl (PIN),:40694); the locant of the one position a substituent can take on an acetyl group is omitted, (:3031) “All locants are omitted for parent compounds when all substitutable hydrogen atoms have the same locant”.
- orthonym.assembly.acyl_prefix.is_acyl_prefix(name)#
True when
nameis an acyl nameacyl_prefix_textspells (‘2-oxopropanoyl’, ‘chloroacetyl’), not the ‘1-oxopropyl’ form that cites the oxo of the free-valence carbon as a prefix.
- orthonym.assembly.acyl_prefix.acyl_prefix_text(mol, attach_idx, sub_atoms, prefix_on, groups, backbone)#
The acyl name of a linear saturated chain (
backbone, numbered fromattach_idx) whose free-valence carbon carries an oxo and nothing else, with the other groups ofgroups(prefix -> locants counted from the free valence) on it; None when the chain is not such a group. A two-carbon acyl takes one kind of prefix (acetyl has one position and the locant is omitted); two different prefixes on the one carbon need the enclosing marks of, and the caller keeps its spelling. An acyl group on a nitrogen is the acylamino prefix of an amide: Substituents of the types -NH-CO-R and -NH-SO2-R (the Blue Book) names it by the ‘amido’ prefix (method (1), ‘(4-acetamido-3-methylphenyl)arsonic acid (PIN)’,:33010) or by ‘acylamino’ (method (2)); that choice is not made here and the caller keeps its spelling.
- orthonym.assembly.acyl_prefix.is_acylsulfanyl(mol, sub_atoms, attach_idx)#
True for a thioester group -S-CO-R attached at its sulfur, R hydrogen or a carbon-only group: (the Blue Book) “an ester group is indicated by preferred prefixes […] such as ‘acylsulfanyl’ for the group -S-CO-R”, ‘1-[(acetylsulfanyl)peroxy]propan-1-one (PIN)’ (:39499). The fragment holds the sulfur, one oxo oxygen and carbon atoms only, with no charge and no radical.
- orthonym.assembly.acyl_prefix.is_carbamate_amino_branch(mol, sub_atoms, attach_idx)#
True for a chain branch attached at an acyclic carbon (or at the nitrogen of the group itself) whose only heteroatoms are one carbamate ester group -NH-CO-O-R on it (Boc, Cbz, Fmoc, alkoxycarbonyl): the ‘[(alkoxycarbonyl)amino]’ prefix of (the Blue Book), ‘(benzyloxy)carbonyl (preferred prefix)’ (:18116), on an alkyl chain (‘2-[(tert-butoxycarbonyl)amino]ethyl’). The chain and the nitrogen are acyclic; R may hold rings. No charge, radical or isotope.
- orthonym.assembly.acyl_prefix.is_alkoxycarbonyl_branch(mol, sub_atoms, attach_idx)#
True for an ester group -CO-O-R (or -CO-S-R) attached at its carbonyl carbon to a ring atom, R a group of carbon atoms only: the ‘alkoxycarbonyl’ (‘(alkylsulfanyl)carbonyl’,:18128) prefix of (the Blue Book), ‘2-chloro-6-(ethoxycarbonyl)benzoic acid (PIN)’ ,:31935). No charge, radical or isotope.
- orthonym.assembly.acyl_prefix.is_pin_fg_branch(mol, sub_atoms, attach_idx)#
The branches the PIN-tier functional-group namer of
substituent_namingtakes besides a chain carboxamide: ‘acylsulfanyl’, ‘[(alkoxycarbonyl)amino]’, ‘alkoxycarbonyl’ and ‘alkoxy…oxo’, the Blue Book).
- orthonym.assembly.acyl_prefix.is_carboacyl_head(mol, frag_atoms, attach_idx)#
True when the attachment atom is the carbonyl carbon of a chain carboacyl branch R-CO- (R an acyclic carbon): a carbon outside every ring that carries one terminal =O and exactly one other carbon of the fragment, which is not a ring atom. A ring carbon there is an aroyl or cycloalkanecarbonyl head, which the located-FG writer already spells as the acyl name (‘benzoyl’, ‘cyclohexanecarbonyl’).
- orthonym.assembly.acyl_prefix.tier_fg_engages(mol, sub_atoms, attach_idx, best_effort, pin)#
Whether Tier FG (the located FG assembly) names the fragment: best-effort or the PIN carve-outs, from an attachment atom of the fragment. A ring-bearing chain carboacyl branch is not assembled as ‘2-R-1-oxoethyl’: the cascade declines it and the caller spells the acyl group “Definitions and name formation”, the Blue Book: “Compound substitutive names for acyclic acyl groups, such as ‘1-oxopropyl’… are included for use in general nomenclature”; the acyl name is the preferred prefix, “CH3-CO– acetyl (preferred prefix) ethanoyl 1-oxoethyl”,:30442). The head of an acyl on a nitrogen is not declined: that group is the amido prefix of (
n_acyl_amido), which is built before this one is asked; where it cannot name the group (the PIN tier’s amide handler names no amide of a three-carbon N-substituent beside a ring-bearing acyl) nothing spells the acyl, and it floats as ‘N-<acyl>’ on a parent that has no nitrogen suffix Position of locants, the Blue Book), so the general ‘[1-oxo-2-R-ethyl](R’)amino’ name stands.
- orthonym.assembly.acyl_prefix.one_carbon_acyl_prefix(mol, attach_idx, sub_set)#
Roadmap N5e: a one-carbon chain carrying =O and one more group is an acyl group (2), the Blue Book) – ‘carbamoyl’, ‘(R)carbamoyl’, ‘<ring>-1-carbonyl’, ‘methoxycarbonyl’, ‘benzoyl’ – never ‘{[R]amino}(oxo)methyl’: (:32920) “method (2) [‘carbamoyl’] for rings and ring systems” ,:32922-:32928). The book’s prefix (
book_prefixes.acyl_group_prefix), or None.
- orthonym.assembly.acyl_prefix.oxamoyl_prefix(mol, attach_idx, sub_set)#
‘oxamoyl’ for the group -CO-CO-NH2 (
sub_set, attached at the carbonyl carbonattach_idx) on a ring atom, else None. (the Blue Book) “the group -CO-CO-NH2 is named using the prefixes ‘amino’ and ‘oxo’ as in method (1)…; by using the name ‘oxamoyl’ as in method (2)”, and (:32928) “method (1) is preferred for chains and method (2) for rings and ring systems, heterogeneous chains, and on nonterminal atoms of carbon chains” (rings only here): ‘2-oxamoylpyridine-3-carboxylic acid (PIN)’ (:32967), not ‘2-(2-amino-1,2-dioxoethyl)pyridine-3-carboxylic acid’.
- orthonym.assembly.acyl_prefix.ring_acyl_branch_prefix(mol, sub_atoms, attach_idx)#
The acyl prefix of a branch whose head is an acyclic carbon bearing =O (‘benzoyl’, ‘3-(trifluoromethyl)benzoyl’, ‘phenylcarbamoyl’;
strict_ring_prefix.acyl_branch_head), through:func:one_carbon_acyl_prefix, ; None for any other branch.
- orthonym.assembly.acyl_prefix.book_acyl_name(mol, sub_atoms, attach_idx)#
The ring chokepoint’s acyl prefix of a branch whose carbonyl carries a ring directly or through one N or O (‘benzoyl’, ‘2,3-dihydro-1H-indole-1-carbonyl’, ‘phenylcarbamoyl’, ‘phenoxycarbonyl’), by
ring_acyl_branch_prefix(); None for any other branch (a chain acyl group keeps the chokepoint’s own name) and for the writer’s general form ‘R(oxo)methyl’. PIN tier only (at_pin_tier): at the wider tiers the chokepoint’s own name stands, as the parent and spelling choices that follow are tuned to it (the writer’s name there moved ten best-effort names, some to worse spellings, on the eval sets).
- orthonym.assembly.acyl_prefix.demoted_n_carbamoyl(suffix_name, locants, n_substituents, n_hydroxy, prefix_forms)#
The prefix of a demoted ring carboxamide whose nitrogen carries substituents (or the N-hydroxy of a hydroxamic acid), as the benzene handler builds it: (the Blue Book) ‘carbamoyl’ for rings, the N-substituents without the italic N (‘5-methyl-2-[methyl(phenyl)carbamoyl]benzoic acid (PIN)’,:32957). One group only; None for any other N-substituted suffix (the caller declines); a group whose nitrogen carries nothing takes its plain prefix form from
prefix_forms.