0401-every-ion-spelled-one-way met
- Issue
- #401
- Stated in
- expectations/0401-every-ion-spelled-one-way.json
- Graded against
- Statuses are those of the build recorded on 2026-11-24 07:55 UTC (run 20261124T0755302069730000, merging ecoinvent-3.13, ecoinvent-3.12, ecoinvent-3.8, bafu-2026-v1, stepwise-2006-1.09, agribalyse-3.2).
Why this file exists
On the five-list build of main at 43403ac (run 20261019T0759116033000000) the 51 ion substances published under six spellings: IUPAC charge numbers (Lead(2+)), the American element with a charge number (Cesium(1+)), a Roman numeral (Chromium IV), the bare anion (Chloride), and the generic ion as Copper, Ion and as Titanium, ion. The spellings inventories use were synonyms only by accident: ecoinvent 3.12's Lead II was not one of lead(2+)'s, and Chromium, Ion had no synonyms at all. #401 is the standard, in domain/ion_names.py: a cation is Lead(2+) and answers to Lead(II) and Lead II; an anion is Chloride(1-) and answers to Chloride, Chloride(-I) and Chloride -I; an ion of unstated charge is Copper, ion and answers to Copper, Ion and Copper Ion; the element is spelled as IUPAC spells it, and every form is repeated in the American spelling where that differs. pipeline/ion_names.py applies it last of the substance-name writers, and to the substances the merge mints. Selected by substance id where the label is what changes, because a label selector would find nothing on one side. label and alt_label compare without regard to case, so a respelling that only lowers Ion to ion is claimed through its synonyms.
Expectations
9| What should be true | State | About |
|---|---|---|
ecoinvent's Lead II is a synonym of Lead(2+)
0401-lead-ii-finds-lead-2plus
The example the issue opens with. On the build of |
met |
substance
label: Lead(2+)
|
|
Caesium(1+) is published in IUPAC's spelling and answers to the American one
0401-caesium-is-spelled-as-iupac-spells-it
|
met |
substance
id: fo-8383ed05703d1d9a
|
Chloride is published as Chloride(1-) and answers to Chloride and Chloride -I
0401-chloride-states-its-charge
One of the five monatomic anions, published as the bare anion name on the build of |
met |
substance
id: fo-01f183b10feaf811
|
Sulfide is published as Sulfide(2-)
0401-sulfide-states-its-charge
The anion with two charges, so the numeral is |
met |
substance
id: fo-1ee126fd64965f89
|
Chromium IV is published as Chromium(4+), though it is typed a mixture
0401-chromium-iv-is-a-charge-number
Typed |
met |
substance
id: fo-14c58fbff9ee611d
|
Chromium, ion answers to Chromium, Ion and Chromium Ion
0401-chromium-ion-answers-to-its-capitalised-spellings
Minted by the merge from a vendor's |
met |
substance
id: fo-391cc4d48a157376
|
Copper, ion keeps Copper, Ion as a synonym
0401-copper-ion-answers-to-copper-comma-ion
Published as |
met |
substance
id: fo-436304b385710fab
|
Titanium, ion keeps its unstated charge and gains its capitalised spellings
0401-titanium-ion-stays-generic
The leave-alone half. PubChem gives the payload Ti+4, and #143 ruled that the name still says no charge; the standard spells names and does not decide charges, so the label is unchanged and only the synonyms are new. |
met |
substance
id: fo-bb650b137c697bce
|
Methylmercury(1+) gains no Roman-numeral synonym
0401-methylmercury-takes-no-numeral
The other leave-alone half. A numeral states an oxidation number, which is the charge only for one atom: methylmercury's mercury is mercury(II), so |
met |
substance
label: Methylmercury(1+)
|