orthonym.validation.grammar_gap#

Note

Internal API. Names and behaviour may change between releases.

The classes whose name OPSIN 2.9.0 has no grammar for at all, and the carve-out each ships by.

namer._grammar_gap_carveout asks grammar_gap_carveout: the carve-out slug of a construction-verified name whose CLASS OPSIN has no grammar for, or None.

For these classes a healthy OPSIN call can only answer ‘rejected’ (no inositol or Table 10.1 stereoparent name, no phane grammar, no fullerene grammar), so the name ships on its construction alone (a phane name when the structure it states is the input’s, validation.phane_read_back; a fullerene name when validation.fullerene_read_back builds the input’s structure from it) and OPSIN’s answer adds nothing. The validity gate therefore consults this both after a ‘rejected’ answer and on ‘unavailable’: the output of these classes does not depend on whether OPSIN could be reached (TRIAGE j12 finding 1).

NOT here: the thioperoxol names (no OPSIN grammar either; the default tier ships each through its twin read-back, validation.thioperoxol_twin; a general tier ships the name OPSIN reads, and the anion of -S-OH, which has none, through its twin), the organometallic additive names (the ‘-ido’ names ship through their ‘chloro’ twin, and a name with an eta, kappa or mu descriptor ships at no tier: no read-back, no PIN by, the stereo-layer carve-out (its licence is a parse of the stereo-stripped form) and the polyacid carve-out (reached only after a parse).

orthonym.validation.grammar_gap.grammar_gap_carveout(name, smiles=None)#

The carve-out slug of a construction-verified name whose class OPSIN has no grammar for, or None.