orthonym.rules.isotope_unit_slots#

Note

Internal API. Names and behaviour may change between releases.

The places of a name where a multiplied unit takes the descriptor of an isotopic modification.

Split out of rules.isotopes (the size budget of tests/unit/test_size_budget.py): the multiplying prefixes that can open a multiplied substituent, and the generator of the slots of a skeleton name that the per-unit search of isotopes._decorate_uniform_multiplier walks.

orthonym.rules.isotope_unit_slots.UNIT_MULTIPLIER_COUNT = {'bis': 2, 'deca': 10, 'di': 2, 'hepta': 7, 'hexa': 6, 'nona': 9, 'octa': 8, 'penta': 5, 'tetra': 4, 'tetrakis': 4, 'tri': 3, 'tris': 3}#

The multiplying prefixes that can open a multiplied substituent and the number of copies each states /: ‘di’, ‘tri’,… for a simple substituent, ‘bis’, ‘tris’,… for a compound one). Longest first, so ‘tetrakis’ is not read as ‘tetra’.

orthonym.rules.isotope_unit_slots.multiplied_unit_slots(skeleton)#

Every place of skeleton where a multiplying prefix opens a multiplied substituent, as (copies, head, base, tail, enclosed): the name up to and including the multiplier, the substituent word, and what follows it.

(the Blue Book): the descriptor is inserted “before the part of the

compound that is isotopically substituted”; for a multiplied substituent that is the substituent word, inside the multiplier’s marks:43770; the verbatim ‘1,2-di[(13C)methyl]benzene (PIN)’,:43734). The multiplier may lead the name (‘tetramethylsilane’, ‘dimethyl sulfate’), follow locants (‘1,2-diethylbenzene’, ‘N,N,N-trimethyl…’) or sit inside the marks of an outer group (’…-2,3-bis( hexadecanoyloxy)propoxy…’). A multiplied word is enclosed (‘bis(hexadecanoyloxy)’) or, for a simple prefix, bare (‘diethyl’); the multiplied anion that closes a functional class name (‘ethane-1,2-diyl diacetate’) is one unit, the whole anion word (‘di[(2-13C)acetate]’, counts the descriptor’s parentheses). A multiplier-like run inside a word (‘hexadecanoyl’, ‘dihydro’) is not offered, and a slot that reads no unit fails the caller’s round trip, so a surplus slot costs a parse, never a wrong name.