orthonym.rules.isotope_components#
Note
Internal API. Names and behaviour may change between releases.
An isotope-labelled mixture named part by part (IUPAC 2013, and.
The isotope decorator (rules.isotopes.decorate_isotopic_name) names the unlabelled skeleton and then writes the
nuclide descriptors into that name. For a mixture the skeleton name is an adduct name, and the search for the
descriptor places runs over the whole joined name: on the labelled PubChem mixtures that ran out of time it was the
whole cost (2026-11-17 study, .planning: a median 14,121 trial names at 120 s).
Each component of a mixture is a compound of its own whose name the mixture name cites: “Mixed organic -
inorganic adducts” (the Blue Book), “names are formed by citing the names of individual compounds, connected by
long (em) dashes”. A labelled component alone is named by the decorator, which inserts “the nuclide symbol(s)…
before the part of the compound that is isotopically substituted” “Isotopically substituted compounds”).
So this module names the mixture with the adduct producer, each labelled component named as a compound alone
(rules.adducts.LABELLED_PARTS_ALONE), and ships the name only when OPSIN reads it back to the labelled input.
At the best-effort tier it runs FIRST for a mixture of three or more parts that is no salt (takes_parts_first(),
user decision 2026-11-17), and the whole-mixture search only when it gives None; otherwise it runs after the decorator.
- orthonym.rules.isotope_components.takes_parts_first(original, namer)#
True when the labelled mixture
originalis named part by part before the decorator’s whole-mixture search: the best-effort tier, three or more fragments, a nuclide label, and not a salt (no fragment with a positive net charge beside one with a negative net charge). A salt keeps the decorator first: its name cites the cation and the anion (‘potassium (18F)fluoranide’, ‘sodium deuteride’,, where the adduct producer cites ions (‘sodium(1+)—deuteride (1/1)’). A mixture of two keeps it first too: its whole-mixture search is no longer than a part’s own, and naming the part alone cost more (2026-11-17 panel: every mixture named later was one of two, every one newly named one of three or more).
- orthonym.rules.isotope_components.parts_first(original, style, namer)#
The part-by-part name of
originalbefore the decorator searches the whole mixture, or None. Runs only whentakes_parts_first()holds, in a memo scope of its own, so a mixture it does not name is named after it with the caches the decorator would have had.
- orthonym.rules.isotope_components.parts_last(original, style, namer)#
The part-by-part name of
originalafter the decorator gave None, for a mixture:func:parts_first did not take (a salt), or None.
- orthonym.rules.isotope_components.labelled_parts_adduct_name(original, style, namer)#
The name of the labelled mixture
originalfrom the names of its components alone, or None.Only at the best-effort tier (
namer._general_fallback_unverified; the PIN, valid and complete tiers keep their names). The name ships when OPSIN reads it back with every label, every stereodescriptor and the full standard InChIKey (rules.isotopes._isotope_round_trips_once) and with every charge where it is drawn (rules.adducts._parse_reproduces_depiction). The labelled parts are named in an empty context, so their own non-PIN records do not reach this naming: the whole name is recorded as no PIN here. When every labelled part’s name is free of a non-PIN record in its own naming (rules.adducts.LABELLED_PARTS_ALONEcollects that) and the PIN tier names each labelled part alone as a PIN, the PIN tier is asked for the whole name (assembly.pin_first.note_pin_tier_asked), so a mixture the PIN tier names keeps its PIN.