orthonym.validation.carveout_binding#

Note

Internal API. Names and behaviour may change between releases.

The carve-outs of the validity gate that ship a name OPSIN misreads, bound to the input they were built for (namer._final_opsin_validity_gate).

orthonym.validation.carveout_binding.polyacid_carveout_bound(name, smiles, opsin_smiles)#

The polyacid carve-out ships name only when its producer builds exactly this name for this input (inorganic_acids.name_polyacid_derivative, which reads the structure) and OPSIN’s reading, though wrong in its locants, is an isomer of the input (same molecular formula: no atom lost or added). A name that only matches the carve-out’s pattern proves nothing about the structure.