orthonym.rules.metal_atoms#
Note
Internal API. Names and behaviour may change between releases.
Names of the lone atom, the monoatomic ions and the isotopes of every element, and of the hydride ion beside a metal.
One home for the element names of the metals. A metal atom takes its element name; a metal cation adds its charge number in parentheses, the notation of ‘pentaammine(ethanido)osmium(1+) chloride’ , the Blue Book); a nuclide goes in parentheses before the element name, “enclosed in parentheses… before the part of the compound that is isotopically substituted”, :43718). Two callers read the names:
the adduct of
rules/adducts.py, which cites a one-atom metal component by them at the best-effort tier (metal_atom_name): “preferred IUPAC names cannot be assigned to mixed adducts” (:4667), so such a name is never a PIN;the class
ELEMENT_ATOMof the dispatch table, for a molecule that is one atom without hydrogen of any element (lone_atom_name): a metal admitted to the mechanismELEMENTofdata/metal_scope.py, a metalloid, a non-metal or a noble gas, as an atom, an ion or an isotope. The name is a verified systematic name and no PIN: PREFERRED IUPAC NAMES (:2056) labels “the names of compounds whose parent hydride contains at least one of the following elements: B, Si,… At, and that also contain at least one carbon atom in their structure”, and a lone atom holds no such pair (rules/metal_labels.is_lone_atom_name_without_pinsets the label).
inorganic_anion_word gives the word of a one-atom or oxo anion in a salt: the table of retained
inorganic anions, and ‘hydride’ for the hydride ion beside metals admitted to CARBANION_SALTS.
ammine_component_names gives the one-atom component ‘ammonia’ of an adduct beside metals admitted
to AMMINE.
- orthonym.rules.metal_atoms.NONMETAL_ELEMENT_NAMES: Dict[str, str] = {'Ar': 'argon', 'At': 'astatine', 'Br': 'bromine', 'C': 'carbon', 'Cl': 'chlorine', 'F': 'fluorine', 'Fl': 'flerovium', 'H': 'hydrogen', 'He': 'helium', 'I': 'iodine', 'Kr': 'krypton', 'Lv': 'livermorium', 'Mc': 'moscovium', 'N': 'nitrogen', 'Ne': 'neon', 'Nh': 'nihonium', 'O': 'oxygen', 'Og': 'oganesson', 'P': 'phosphorus', 'Rn': 'radon', 'S': 'sulfur', 'Se': 'selenium', 'Ts': 'tennessine', 'Xe': 'xenon'}#
hydrogen, carbon, the non-metals of Groups 15-17, the noble gases and the superheavy elements. A lone atom of one of them takes its element name, as a metal does, unless it is the radical of a mononuclear parent hydride (
RADICAL_PARENT_HYDRIDES).- Type:
the elements that are not in
METAL_ELEMENT_NAMES
- orthonym.rules.metal_atoms.RADICAL_PARENT_HYDRIDES: Dict[str, tuple] = {'As': ('arsane', 3), 'B': ('borane', 3), 'Bi': ('bismuthane', 3), 'Br': ('bromane', 1), 'Cl': ('chlorane', 1), 'F': ('fluorane', 1), 'Ge': ('germane', 4), 'I': ('iodane', 1), 'N': ('azane', 3), 'O': ('oxidane', 2), 'P': ('phosphane', 3), 'Po': ('polane', 2), 'S': ('sulfane', 2), 'Sb': ('stibane', 3), 'Se': ('selane', 2), 'Si': ('silane', 4), 'Te': ('tellane', 2)}#
the mononuclear parent hydrides of Table 2.1, the Blue Book-7932) on which a bare atom or a bare monoatomic ion of the element is named, with the standard bonding number of the element. The neutral atom is the radical, (:40426) “named by adding the suffix ‘yl’ to the name of the parent hydride, eliding the final letter ‘e’”, ‘ylidene’ and ‘ylidyne’ for two and three hydrogen atoms (:40448): ‘chloranyl’, ‘oxidanylidene’, ‘azanylidyne’; an ion combines the cumulative suffixes ‘ide’, ‘ium’, ‘ylium’ and ‘yl’ Suffixes,:4777: “Cumulative suffixes are used to designate radicals, ions, radical ions… They can be combined with each other”): ‘phosphanetriide’, ‘azanidylidene’, ‘tellaniumylidyne’, ‘silyliumylidyne’. Silicon and germanium are here for their ions only (a neutral atom with four radical electrons takes the element name). Astatine is not here: OPSIN 2.9.0 reads no ‘astanyl’, so the atom takes the element name ‘astatine’. The metals of Groups 13 and 14 (alumane… plumbane) take the element name of the coordination nomenclature.
- orthonym.rules.metal_atoms.HYDROGEN_NAMES: Dict[tuple, str] = {(0, -1): 'hydride', (0, 0): 'hydrogen', (0, 1): 'hydron', (1, -1): 'protide', (1, 0): 'protium', (1, 1): 'proton', (2, -1): 'deuteride', (2, 0): 'deuterium', (2, 1): 'deuteron', (3, -1): 'tritide', (3, 0): 'tritium', (3, 1): 'triton'}#
Table 8.1 Names of the hydrogen atoms and ions, the Blue Book), by (mass number, charge); the mass number 0 is the natural composition
- orthonym.rules.metal_atoms.HYDRIDE_ION = '[H-]'#
the canonical SMILES of the hydride ion, the fragment
inorganic_anion_wordcites as ‘hydride’
- orthonym.rules.metal_atoms.AMMINE_COMPONENT_NAMES: Dict[str, str] = {'N': 'ammonia'}#
the neutral one-atom components that an adduct of an ammine complex cites besides the table of
rules/adducts.SINGLE_ATOM_COMPONENT_NAMES, by the canonical SMILES of the fragment. Retained names (the Blue Book): “The common names water, ammonia,… are used in these recommendations”; the table of the other components cites ‘water’ and ‘hydrogen chloride’ alike.
- orthonym.rules.metal_atoms.metal_atom_name(frag_mol)#
The name of a one-atom metal component, or None.
‘nickel’ for [Ni], ‘iron(2+)’ for [Fe+2], ‘(99Tc)technetium’ for [99Tc] (the nuclide descriptor of in front of the element name). None for a non-metal, a metal carrying hydrogen ([NaH] is a hydride, not a metal atom) or a negative metal ion (an ‘-ide’ of a metal is not built here).
- orthonym.rules.metal_atoms.admitted_metal_atom_name(mol)#
The name of
molwhen it is one atom of a metal admitted toELEMENTindata/metal_scope.py(‘zinc’, ‘zinc(2+)’, ‘(65Zn)zinc’), else None (the metal case oflone_atom_name).
- orthonym.rules.metal_atoms.lone_atom_name(mol)#
The name of a lone atom, ion or isotope (
lone_atom_name_and_basis), else None.
- orthonym.rules.metal_atoms.lone_atom_name_and_basis(mol)#
(name, on_parent_hydride): the name ofmolwhen it is one atom without hydrogen (an atom, a monoatomic ion or an isotope of either), else(None, False);on_parent_hydrideis True when the name is built on the mononuclear parent hydride of the element (‘chloranyl’, ‘phosphanetriide’) and False for an element name or a hydrogen name (‘neon’, ‘sodium(1+)’, ‘hydride’).a neutral atom of an element of
RADICAL_PARENT_HYDRIDESwhose radical electrons are the bonding number of the element: the radical of its parent hydride: ‘chloranyl’, ‘oxidanylidene’;hydrogen: Table 8.1: ‘hydrogen’, ‘deuteride’, ‘hydron’;
any other neutral atom: the element name (‘neon’, ‘thallium’, ‘carbon’);
an ion of an element of
RADICAL_PARENT_HYDRIDES: its name on the parent hydride when the charge and the radical electrons account for every hydrogen atom of the hydride (_hydride_ion_name): ‘phosphanetriide’, ‘oxidanidyl’, ‘chloraniumylidene’, ‘silanetetraylium’, ‘(36Cl)chloranide’;any other ion: the element name with the charge number (‘sodium(1+)’, ‘selenium(6+)’), the notation of ‘pentaammine(ethyl)osmium(1+)’, the Blue Book).
None for an ion of the table of retained cations whose name carries an oxidation number (‘iron(II)’: the class CATION_RETAINED, and the isotope decorator for ‘(59Fe)iron(II)’); a bare cation word of that table (‘sodium’, ‘silver’) is the word of a salt and names no free ion. None for a closed-shell anion of the table of retained anions or of a parent hydride (‘chloride’, ‘phosphanetriide’), which the anion classes name; its isotope (‘(36Cl)chloranide’) and its radical forms (‘oxidanidyl’) are named here.
An element of
data/metal_scope.py(every true metal is there) takes a name only when the table admits it toELEMENT; the metalloids and the non-metals are not in that table. The nuclide symbol goes in parentheses in front of the name, the Blue Book). The name is never a PIN: PREFERRED IUPAC NAMES (:2056) gives the label to names “that also contain at least one carbon atom”, and a lone atom is no salt (rules/metal_labels.is_lone_atom_name_without_pin). A pure function of the structure: the predicate and the handler of the dispatch classELEMENT_ATOMboth call it; the namer’s gate reads the name back.
- orthonym.rules.metal_atoms.inorganic_anion_word(smiles, cation_frags)#
The word of the anion fragment
smiles(canonical SMILES) in a salt, or None.The table of retained inorganic anions (
data/ion_retained_names.INORGANIC_ANIONS: chloride, sulfate,…), and ‘hydride’ for the hydride ion when every cation of the salt is one atom of a metal admitted toCARBANION_SALTS(‘zinc dihydride’): (the Blue Book), “binary names formed by citing the name of the cation followed by that of the anion”. A hydride beside any other cation has no word here, so the salts of the other metals keep their names.
- orthonym.rules.metal_atoms.ammine_component_names(mol)#
The one-atom components that
molmay cite beside its metals, besides the table ofrules/adducts.SINGLE_ATOM_COMPONENT_NAMES:AMMINE_COMPONENT_NAMESwhenmolholds a true metal and every true metal of it is admitted toAMMINEindata/metal_scope.py, else{}.A bare nitrogen is the ammonia of an ammine complex only beside a metal that the table admits; beside any other metal, and in an assembly with no metal, it stays a fragment that no producer names, as before. The guard reads the whole assembly: one metal outside the table keeps the rest of the assembly outside it.