orthonym.rules.group_diazonium#
Note
Internal API. Names and behaviour may change between releases.
The diazonium cation on a group the parent hydride does not carry: ‘[(4-methoxyphenyl)methylidene]azanediazonium’, ‘(hexyloxy)diazonium’, ‘(4-oxo-2-sulfanylidene-1,3-thiazolidin-3-yl)diazonium’.
“Diazonium ions” (the Blue Book): “Cations containing an -N2+ group attached to a parent hydride are
traditionally named according to the principles of substitutive nomenclature by using the suffix ‘diazonium’”
(:41609), ‘methanediazonium (PIN)’ (:41613). A -N2+ group on an oxygen, a sulfur or a ring heteroatom is on the parent
hydride of the group that holds it (oxidane, sulfane, the heteroring), which the substitutive path does not build for a
group that is no hydrocarbon: the group is named as a prefix, as for the diazonium ion on a nitrogen
(azanediazonium), and ‘diazonium’ ends the name. A group on a carbon is the parent hydride’s own
(‘naphthalene-1-diazonium’, charged_router._name_diazonium) and is left to it. The Blue Book gives no example, so
the name is recorded as not the PIN; it is read back to the full InChIKey of the molecule before it is returned.
- orthonym.rules.group_diazonium.name_group_diazonium(mol, cation_idx, proximal_n, terminal_n, attach_idx)#
‘<group>diazonium’ for the -N2+ group (
proximal_nbonded toattach_idx,terminal_nthe other nitrogen,cation_idxthe one that carries the charge in the drawing) on the group thatattach_idxheads, else ‘’. The group is named as a prefix by the namers ofgroup_prefixes(the first that reads back wins).