orthonym.rules.isotope_alternative#

Note

Internal API. Names and behaviour may change between releases.

The second skeleton the isotope decorator is given when the first one takes no descriptor.

The decorator names the label-free skeleton of a labelled molecule and splices the isotopic descriptor into that name; every candidate is read back with the labels (rules.isotopes._isotope_round_trips). Two producers give skeleton names that no candidate can pass, although another producer names the same skeleton in a way that can:

  • a member of a hydrocarbon series whose rings OPSIN draws in the other Kekule set than the input (tetraphenylene: OPSIN puts the double bonds in the eight-membered ring), which the read-back refuses for a labelled name (_kekule_forms_of_one_compound, a 4n circuit is two compounds);

  • a senior mononuclear hub, bis[...]di(phenyl)silane) whose like substituents the labels make unlike, so that no multiplied spelling can carry the descriptor;

  • a polyester of one alcoholic component named by its multivalent organyl group of identical arms (‘1,2-phenylenebis(methylene) diacetate’, rules.multiplicative_general.name_ester_organyl_group), whose arms the labels make unlike (‘{2-[(acetyloxy)(13C)methyl]phenyl}methyl acetate’: names a polyester of unlike arms by substitutive nomenclature);

  • a multiplicative name, ‘4,4’-(propane-2,2-diyl)diphenol’, rules.multiplicative.name_multiplicative) whose identical units the labels make unlike: “Isotopically modified atoms or groups that are not identically modified in equivalent positions are expressed separately”, the Blue Book), so the units are named apart by the next producer (‘4-[2-(4-hydroxyphenyl)propan-2-yl](2-2H)phenol’);

  • an ester of one multivalent group and several identical acids (‘dibutylstannanediyl diacetate’, ‘ethane-1,2-diyl diacetate’,: one labelled anion among the others makes them unlike, and the Blue Book then cites the anions apart (method (1) of, ‘ethane-1,2-diyl 1-acetate 2-propanoate’), a form OPSIN 2.9.0 does not read, so no candidate of it can be checked. The next producer names the groups as acyloxy prefixes (method (2), “acceptable in general nomenclature”), which the decorator labels;

  • an acyl halide on a ring named from its acid (‘4-carbonochloridoylbenzoyl fluoride’, rules.acyl_halide_from_acid): a label on the halogen of the class word (‘benzoyl (18F)fluoride’) is a form OPSIN 2.9.0 does not read, so the next producer names the group as a prefix (‘1-(18F)carbonofluoridoyl-4-[chloro(oxo)methyl]benzene’).

The namer then runs the decorator once more inside alternative_skeleton, where those producers make no offer and the skeleton gets the name the next producer gives. Outside that block nothing changes.

orthonym.rules.isotope_alternative.alternative_skeleton()#

Name the skeleton without the series, senior-hub, multiplicative, multiplied-anion ester and ring acyl halide producers while this block runs.

orthonym.rules.isotope_alternative.has_alternative(mol)#

True when mol (the label-free skeleton) has a producer this scope withholds: a series member, a senior mononuclear hub, a polyester of identical arms, two identical acyloxy groups or a multiplicative name. Otherwise the second pass would give the skeleton the name it had.

orthonym.rules.isotope_alternative.alternative_skeleton_active()#

True inside:func:alternative_skeleton (the memo keys its caches apart on it).

orthonym.rules.isotope_alternative.decorate_alternative(stripped, decorate)#

decorate inside:func:alternative_skeleton: the name the decorator finds on the second skeleton of the label-free stripped molecule, or None. A polyester that has a multivalent organyl group of identical arms is named on its second skeleton by substitutive nomenclature, because the labels make its arms unlike, the Blue Book), and “One or more isotopically modified atoms” (:21473) makes the principal chain that has the modified atoms the senior parent, which the descriptor spliced into the skeleton name does not decide: the name is recorded as no PIN. The same holds for the units of a multiplicative name named apart: “The senior parent structure contains the greater number of isotopically modified atoms or groups”,:21477).