orthonym.rules.isotope_letters#
Note
Internal API. Names and behaviour may change between releases.
When an isotopic descriptor may cite a bare element letter.
An italic letter locant (‘O’, ‘N’) names a heteroatom that integer locants do not number: the hydroxyl oxygen of a carboxylic acid, the nitrogen of an amine or an amide. The Blue Book prints it bare where the parent holds one such atom, ‘(N-2H1)acetamide (PIN)’ NAMES,, the Blue Book) and ‘(O-2H, 18O)acetic acid (PIN)’,:44294, “the ‘18O’ is an isotopic descriptor and the ‘O’ is a locant”,:44296); its comparative table (:44506) prints a bare letter beside numerals, ‘(O,2,2,2-2H4)ethan-1-ol’, for a parent with one oxygen.
LOCANTS, Omission of locants, (:44180): “In preferred IUPAC names, locants
are omitted if no locants are necessary in unmodified names. However, if isotopic modification requires a locant to specify its position, then all locants must be specified and none are omitted.”
(:44202): “Locants are not omitted when there is a possibility of isomers”. Letter and/or numeral locants (:44208): “When locants are needed for defining the structure of
the parent structure or of a unit of structure as defined by its appropriate enclosing marks, then all locants must be cited for the parent structure or that structural unit.”
So a bare letter is cited only where it leaves no possibility of isomers: every atom of that element
the letter could denote is the same position, one symmetry class of the structure. The class is judged
on the structure without the labels the letter itself denotes (the isotopes of those atoms and of their
hydrogens) and with every other label kept: the two hydroxyl oxygens of butanedioic acid are one class
(‘(O-2H)butanedioic acid’), and so are they when only they carry labels; a 13C in the chain tells them
apart, and then the letter is cited with the number of the atom it is borne by, ‘(2-13C,O1-18O)
pentanedioic acid’ (‘O5’ is the other isomer). OPSIN 2.9.0 reads a bare letter as the first such atom,
so the read-back cannot decide this; the rule does. One predicate for the decorator (rules.isotopes)
and the scope composer (rules.isotope_scopes).
- orthonym.rules.isotope_letters.acid_hydroxyl_takes_letter(heavy, skeleton)#
Whether the labelled hydroxyl hydrogen on the oxygen bonded to
heavyis cited by the italic locantO, the Blue Book, ‘(O-2H, 18O)acetic acid’):heavyis a carbon, or the boron or phosphorus (that bears a carbon of its own) of a boronic or a phosphonic acid that is the PARENT of the skeleton (‘phenyl(O-2H)boronic acid’, ‘methyl(O-2H)phosphonic acid’; OPSIN reads the letter on them). The ‘borono’ and ‘phosphono’ of a prefix and the phosphorus of an ester are no parent: their hydroxyls are not oxygens of the parent, and the letter is not the book’s spelling there.
- orthonym.rules.isotope_letters.hydrazine_nitrogen_letters(skeleton)#
The letter locants of the nitrogens of a hydrazide or hydrazine parent, or None for any other skeleton.
A hydrazide cites its nitrogens N (bonded to the acyl carbon) and N’, ‘N’-methylacetohydrazide’); never the numbers N1, N2 of the di- and polyamides, the Blue Book). The parent hydride hydrazine “is numbered by numerical locants, 1 and 2, not N and N’”,:38507), so a hydrazinecarboxylic acid takes no letter at all (): the numerals of the integer sweep place its labels (‘2-methyl(1-2H)hydrazine-1-carboxylic acid’).
- orthonym.rules.isotope_letters.nitrogen_letter_offer(skeleton, numbered, bare_n, n_pos, offered)#
The letter locants offered for a labelled hydrogen on a non-ring nitrogen, those not in
offeredyet.A hydrazide or hydrazine parent takes its own locants (
hydrazine_nitrogen_letters()). Otherwise: several nitrogens, or one the bare letter may not cite, take the numbered locant, every numeral the parent could assign (1..n_pos) ascending so the lowest round-tripping one wins;: a single nitrogen keeps the bare italicN(last where numbered).
- orthonym.rules.isotope_letters.geminal_nitrogen_letters(skeleton, offered)#
The letter locants
N,N',N''a skeleton with a geminal nitrogen suffix cites its nitrogens by, for a caller that offers letters already (offered): those of them it does not offer yet. Offered after every other locant, so no name that reads back with one of them changes.under ‘ PRIMES’ (the Blue Book, sentence:7739): the numbers of the parent differentiate “the
nitrogen atoms of di- and polyamines, di- and polyimines, di- and polyamides, except for geminal amines, imines, and amides”; the nitrogens of those are told apart by primes, N and N’ (‘methanediamine’).
- orthonym.rules.isotope_letters.letter_ranks(original, element)#
Symmetry class of every atom of
original(index oforiginal-> class) in the structure without hydrogen atoms, without the isotopes of the atomselement’s letter can denote and of their hydrogens, and with every other isotope kept: a labelled hydroxyl oxygen, whose hydrogen is an explicit atom oforiginal, ranks as the unlabelled hydroxyl oxygen it is, and a 13C elsewhere still tells the two ends of a diacid apart.
- orthonym.rules.isotope_letters.denotable_atoms(original, element)#
The atoms of
originalan italicelementletter can denote: for ‘O’ the hydroxyl oxygens (single-bonded, one carbon neighbour; the carbonyl oxygen is the other oxygen of the acid), for ‘N’ the nitrogens that are not ring members, not aromatic and bear a hydrogen (an amine or an amide).
- orthonym.rules.isotope_letters.distinct_classes(original, element, atoms=None)#
The number of symmetry classes among
atoms(default: every atomelement’s letter can denote;letter_ranks), the quantity: more than one means citing the letter alone leaves a possibility of isomers.atomsindexoriginal.
- orthonym.rules.isotope_letters.bare_letter_allowed(original, element, atoms=None)#
Whether
element’s italic letter may be cited without its number: the atoms it could denote (the default, the whole structure;atoms, those of one unit) are one symmetry class.
- orthonym.rules.isotope_letters.heavy_oxygen_on_carboxyl_carbonyl(mol)#
True when every isotopically modified oxygen of
molis the =O of a carboxy group and the carboxy groups are alike (one, or several the structure cannot tell apart), so the nuclide has one place. (the Blue Book) cites it without a locant and the other oxygen by the italic letter: ‘CH3-C18O-O2H (O-2H,18O)acetic acid (PIN)’.
- orthonym.rules.isotope_letters.mixed_carboxyl_candidate(skel, keys, original)#
‘(O-2H,18O)acetic acid’ for the acid
skelwhen the molecule’s nuclides are one hydrogen nuclide on the hydroxy oxygen and one oxygen nuclide on the =O of its one carboxy group, the Blue Book, ‘CH3-C18O-O2H (O-2H,18O)acetic acid (PIN)’: the italic letter for the hydrogen, no locant for the oxygen nuclide); None for any other set of nuclides (the shared-locant search stays the answer).