orthonym.rules.isotope_unnumbered#

Note

Internal API. Names and behaviour may change between releases.

The decorator on a skeleton whose retained names are spelled systematically where they number no label.

‘Location of nuclides on positions not normally denoted by locants’ (the Blue Book),:

“When the nuclide is located at a position in a retained name that is not numbered a systematic name that identifies separately the relevant atom is used for the IUPAC preferred name.” (‘benzene(13C)carbonitrile (PIN)’,:44253; the retained ‘benzonitrile’ numbers no position of its nitrile carbon.)

The decorator of rules.isotopes names the isotope-STRIPPED molecule, so a label on the carbonyl carbon of a substituted ‘benzaldehyde’, or on a methyl of ‘L-valinate’, has no place in the name it gets. Inside assembly.locant_omission.systematic_names_for_unnumbered_labels the producers of those retained names spell the systematic name where a label sits on a position they do not number (rules.benzene_unnumbered, rules.esters.get_ring_acid_name, rules.esters._name_amino_acid_ester), and the strategies of the decorator run again on that skeleton (decorate_with_systematic_unnumbered_parents()), the scope composer included at the tier that runs it.

orthonym.rules.isotope_unnumbered.label_may_sit_on_an_unnumbered_position(original)#

False when no producer of a retained name can find a label of original on a position its name does not number, so the scope has nothing to spell: a cheap superset of the places the producers ask about (rules.benzene_unnumbered.label_on_unnumbered_group, rules.esters._carbonyl_of_ring_acid_is_labelled and _unnumbered_side_chain_atoms, prefix_derivation.retained_benzyl). A labelled atom, or the heavy atom of a labelled hydrogen, that is (i) an acyclic carbon bonded to an aromatic ring carbon (the carbon of a group of a benzene, a benzylic methylene), (ii) a terminal oxygen on such a carbon, or (iii) an acyclic carbon of an amino acid ester.

orthonym.rules.isotope_unnumbered.decorate_with_systematic_unnumbered_parents(smiles, style, namer, original, stripped, label_map, sink, composer=False)#

The decoration of original on a skeleton named with the systematic spelling of every retained name whose numbering does not reach a labelled position, when the skeleton with the retained names could not carry the labels; None when the skeleton is spelled the same way or nothing reads back.

sink is what the strategies of the decorator left when they declined (skeleton, the spelling they ended on). It is made only after every strategy on the retained spelling declined (rules.isotopes. _decorate_labelled calls it last), so no name built on that spelling changes, in a fresh memo scope and fragment cache (the names of the first run were made without the scope, as for the forced-locant run of gate_retry.name_with_forced_locants). The skeleton is named once in the scope and compared with the one the strategies ended on: a molecule none of whose retained names has an unnumbered labelled position costs that one naming and no more. composer runs the scope composer on the new skeleton, as the caller does for the skeleton of the retained spelling.

orthonym.rules.isotope_unnumbered.skeleton_in_unnumbered_scope(namer, stripped)#

The isotope-stripped skeleton as namer names it inside the scope of, where a retained name that numbers no labelled position is spelled systematically (rules.isotopes._scoped_parent: the pre-emptive spelling of a labelled benzylic methylene or of the group of a benzene, which the retained name would carry as an unlocanted descriptor that reads back). Made once per decorator pass (_scoped_name()) and the provenance the caller had is restored: the name carries that of the skeleton it replaces.