orthonym.assembly.sulfur_acid_ester_prefixes#
Note
Internal API. Names and behaviour may change between releases.
The ester of a sulfonic or sulfinic acid cited as a prefix “Esters cited as prefixes”).
the Blue Book: “When, in an ester with the general structure R-CO-O-R′ or R-S(O)x-O-R′, another group is present
that has priority for citation as the principal group… an ester group is indicated by prefixes as ‘acyloxy’ for the
group R-CO-O–, and ‘alkoxy…oxo’, ‘(alkyloxy)…oxo’…”. The acyl group of a sulfonic acid is its acid-stem prefix,
‘benzenesulfonyl (preferred prefix)’,:31266), enclosed in parentheses,:1754): R-SO2-O- on a
parent is ‘(methanesulfonyl)oxy’, R-O-SO2- is ‘(methoxysulfonyl)’ (‘[2-(methoxysulfonyl)phenyl]phosphonic acid (PIN)’,
:36540). One home for the group, read by the FG prefix dispatcher (substituent_prefix_forms), the branch namers
(substituent_enumerator), the fragment walk (substituent_naming) and the benzene handler (rules.benzene).
Kept out of those files so they stay within their size budget.
- orthonym.assembly.sulfur_acid_ester_prefixes.get_sulfur_acid_ester_prefix(mol, atoms, principal_chain=None, oxide_kind='sulfonyl')#
The prefix of an ester of a sulfonic or sulfinic acid that is not the principal group “Esters cited as prefixes”, the Blue Book: “an ester group is indicated by prefixes as ‘acyloxy’ for the group R-CO-O–, and ‘alkoxy…oxo’, ‘(alkyloxy)…oxo’… “, for R-CO-O-R′ and R-S(O)x-O-R′ alike).
atomsis the match(S, O, [O,] O_ester, C)ofsulfonic_ester/sulfinic_ester. When the carbon on the ester oxygen is on the parent, the prefix is the acyloxy form, the acyl group of the acid in parentheses , ‘:31266 C6H5-SO2– benzenesulfonyl (preferred prefix)’;,:1754 “Names such as cyclohexanecarbonyl and benzenesulfonyl are enclosed in parentheses”): ‘(methanesulfonyl)oxy’, ‘(4-methylbenzene-1-sulfonyl)oxy’. When the carbon on the sulfur is on the parent, it is the ‘(alkyloxy)sulfonyl’ form, as ‘methyl 4-(phenoxysulfinothioyl)naphthalene-1-carboxylate (PIN)’ (:31719): ‘methoxysulfonyl’. None when neither side, or both, is onprincipal_chainor a side cannot be named.
- orthonym.assembly.sulfur_acid_ester_prefixes.sulfur_acid_ester_sulfur_prefix(mol, s_idx, parent_idx, frag_atoms)#
The ‘(alkoxysulfonyl)’ / ‘(alkoxysulfinyl)’ prefix (
get_sulfur_acid_ester_prefix()) of the branchfrag_atomsthat hangs from the carbonparent_idxby its sulfurs_idx: -S(=O)x-O-R with R a carbon (‘[2-(methoxysulfonyl)phenyl]phosphonic acid (PIN)’, the Blue Book). None for any other shape.
- orthonym.assembly.sulfur_acid_ester_prefixes.sulfur_acid_oxy_prefix(mol, o_idx, parent_idx, frag_atoms)#
The ‘(R-sulfonyl)oxy’ / ‘(R-sulfinyl)oxy’ prefix (
get_sulfur_acid_ester_prefix()) of the branchfrag_atomsthat hangs fromparent_idxby its ester oxygeno_idx: R-S(=O)(=O)-O- or R-S(=O)-O- with one carbon R on the sulfur, nothing else on it, every atom but the parent in the branch. None for any other shape.
- orthonym.assembly.sulfur_acid_ester_prefixes.consume_sulfur_acid_oxy(mol, sub_set, consumed, add_prefix)#
The interior sibling of:func:sulfur_acid_oxy_prefix in a substituent fragment: an ester oxygen between a carbon of the fragment’s skeleton and the sulfur of R-S(=O)x- is the prefix ‘(methanesulfonyl)oxy’ on that carbon (‘{[(methanesulfonyl)oxy]methyl}’,,:31696). Adds each prefix with
add_prefix(host, token)and marks the ester O and the whole acid sideconsumed. False when one token would repeat (the caller cannot spell ‘bis’), so the fragment declines.
- orthonym.assembly.sulfur_acid_ester_prefixes.sulfur_acid_branch_prefix(mol, frag_atoms, attach_idx)#
The prefix of the branch
frag_atomsjoined to its parent byattach_idxwhen it is the ester of a sulfonic or sulfinic acid: the ester O (‘(methanesulfonyl)oxy’) or the S (‘(methoxysulfonyl)’) bonded to one parent atom; and of nitric or nitrous acid (‘nitrooxy’, ‘nitrosooxy’:nitrogen_acid_oxy_prefix()).
- orthonym.assembly.sulfur_acid_ester_prefixes.ring_sulfur_acid_oxy(mol, o_idx, ring_atoms, sub_atoms)#
The benzene handler’s group record of the ester oxygen
o_idxon a ring atom ofring_atomsthat joins the sulfur of R-S(=O)x- (‘[(methanesulfonyl)oxy]’), or None. The bare ‘sulfonyloxy’ has no R group: another molecule.
- orthonym.assembly.sulfur_acid_ester_prefixes.is_sulfur_acid_ester_centre(mol, idx)#
True when the atom
idxis the sulfur of an ester of a sulfonic or sulfinic acid, R-S(=O)x-O-R’ with R and R’ carbons, R’ no acyl carbon (an anhydride is not this group): the group this module names, which the generic oxoacid-group rules leave to it.
- orthonym.assembly.sulfur_acid_ester_prefixes.nitrogen_acid_oxy_prefix(mol, frag_atoms, attach_idx)#
‘nitrooxy’ for a branch that is exactly -O-NO2 (drawn N+(=O)O-), ‘nitrosooxy’ for exactly -O-N=O, joined to one parent atom by its O; None for any other shape. Substituent groups derived from esters of nitric acid and nitrous acid (the Blue Book): they “are named by concatenation by adding the acyl groups ‘nitro’ for -NO2 and ‘nitroso’ for -NO to the prefix ‘oxy’”; ‘-O-NO2 nitrooxy (preselected prefix)’ (:36405).