orthonym.opsin_capabilities#

Note

Internal API. Names and behaviour may change between releases.

What the OPSIN in use can read.

OPSIN 2.9.0 reads no phane names, no halogen “-uide” anions with substituents (diphenyliodanuide) and no ring assembly names with composite locants (1^1,2^1:2^4,3^1-terphenyl); OPSIN’s main branch reads all three. A name of such a form can be checked by a round trip only when the OPSIN in use reads it, so a producer of such names asks here before it offers one (phane_enabled, composite_assembly_enabled).

The release jar (the pinned, checksummed 2.9.0) is known to read neither and is not probed. Any other jar – built from OPSIN’s main branch (ORTHONYM_OPSIN) or given by ORTHONYM_OPSIN_JAR – is probed once with two names through the in-process OPSIN, the entry point of the validity gate, and the answer is kept per jar (and, for a built jar, in its .json file). A probe that cannot be answered (no in-process OPSIN, a busy JVM) reads as “cannot” for that call only and is not kept, so one failed call never switches a capability off for the rest of the process.

orthonym.opsin_capabilities.MAX_READABLE_COUNT = 50#

a name with a larger count word has no reading (rules.hydrocarbon_series, rules.replacement_chain_prefix, validation.long_count_read_back)

Type:

OPSIN 2.9.0 has a numerical term up to 50 (‘pentaconta’) and none above

orthonym.opsin_capabilities.opsin_capabilities()#

{"phane": bool, "halogen_uide": bool, "composite_assembly": bool, "radical_adduct": bool, "axial": bool, "aminiumyl": bool, "polyester": bool, "bridged_pyrrolizine": bool} for the OPSIN this process uses.

orthonym.opsin_capabilities.phane_names_withheld()#

Scope of naming a skeleton that a later step writes into: inside it phane_enabled is False, so no phane producer offers a name. The isotope decorator, rules.isotopes) inserts descriptors into the name of the isotope-stripped skeleton; the phane producers cite no isotopic modification, so a phane skeleton name cannot be labelled and the molecule would be left without a name, where the substitutive name of the same skeleton takes the descriptors. The functional class names of the sulfur, selenium and tellurium oxoacid halides (‘sulfurous dichloride’, rules.chalcogen_acid_halides) are withheld in the same scope (label_free_names_withheld()): OPSIN reads no descriptor on their oxygen or class words.

orthonym.opsin_capabilities.label_free_names_withheld()#

True inside:func:phane_names_withheld: the producers whose names take no isotopic descriptor offer none.

orthonym.opsin_capabilities.phane_enabled()#

True when the OPSIN in use reads phane names (and no scope withholds the phane producers).

orthonym.opsin_capabilities.composite_assembly_enabled()#

True when the OPSIN in use reads ring assembly names with composite locants. A capability set without the entry (a test that stands in for OPSIN 2.9.0) reads as “cannot”.

orthonym.opsin_capabilities.bridged_pyrrolizine_reads_right()#

True when the OPSIN in use reads locant 8 of a bridged pyrrolizine name on the first bridge atom, as OPSIN 2.9.0 and OPSIN main from a2f1a995 do; False for a main build of the window in which it read 8 as the fusion carbon (and when a build cannot be probed). True in reduced mode (no jar): no read-back runs there, so nothing is offered on the strength of this answer.

orthonym.opsin_capabilities.aminiumyl_enabled()#

True when the OPSIN in use reads an ‘-aminiumyl’ prefix (‘(N,N-dimethylmethanaminiumyl)acetate’). A capability set without the entry (an older sidecar, a test that stands in for OPSIN 2.9.0) reads as “cannot”.

orthonym.opsin_capabilities.polyester_enabled()#

True when the OPSIN in use reads the functional-class name of a polyol ester of different acids (‘propane-1,2,3-triyl 1,2-diacetate 3-propanoate’). A capability set without the entry (an older sidecar, a test that stands in for OPSIN 2.9.0) reads as “cannot”.

orthonym.opsin_capabilities.radical_adduct_enabled()#

True when the OPSIN in use reads an adduct name with a radical component (‘ethane—boranylidyne (1/1)’). A capability set without the entry (an older sidecar, a test that stands in for OPSIN 2.9.0) reads as “cannot”.