orthonym.rules.benzene_prefix_forms#

Note

Internal API. Names and behaviour may change between releases.

Prefix forms and principal-group rules of the benzene-ring writer (rules.benzene) that do not come from the groups of the ring alone: they depend on the molecule’s principal group or are spelled by a retained prefix of the Blue Book.

orthonym.rules.benzene_prefix_forms.hydroxy_is_principal(principal_group)#

True when the molecule’s principal group is a hydroxy, thiol or amine group: a ketone or an ester of the ring cannot be the principal group of this naming, so it is a prefix (‘4-acetylphenol’, ‘4-(methoxycarbonyl)phenol’, ‘4-(methoxycarbonyl)anilinium’). That is the case when the group is the centre of an anion or a cation, which ‘SENIORITY ORDER FOR CLASSES’ (the Blue Book, Table 4.1, ‘6 Cations’:18169 before ‘7 Acids’) ranks above acids and every class below them; in a neutral molecule the ketone or ester would have been the principal group (an amine ranks below both), so a neutral molecule never meets this.

orthonym.rules.benzene_prefix_forms.pnictogen_oxoacid_prefix(mol, sub_atoms, start_idx)#

‘arsono’ or ‘stibono’ for a carbon-free -As(=O)(OH)2 or -Sb(=O)(OH)2 substituent.

Retained names for substituent groups derived from mononuclear noncarbon

oxoacids (the Blue Book): ‘–As(O)(OH)2 arsono (preselected prefix)’ and ‘–Sb(O)(OH)2 stibono (preselected prefix)’ (:36030-36031), as ‘–P(O)(OH)2 phosphono (preselected prefix)’ (:36029); the acids themselves, arsonic acid HAs(O)(OH)2 and stibonic acid HSb(O)(OH)2, are preselected names (:35413,:35435). seniority.FG_PREFIXES holds the prefixes. None for any other shape (an organyl or a hydrogen on the central atom, an ester oxygen, a charge).

orthonym.rules.benzene_prefix_forms.dichalcoganyl_prefix(mol, start_idx, ring_atoms)#

-SeSeH / -TeTeH on a ring: ‘diselanyl’ / ‘ditellanyl’, as -SSH is ‘disulfanyl’, the prefix of the ‘diselenoperoxol’ / ‘ditelluroperoxol’ suffix, Table 6.1, the Blue Book).

orthonym.rules.benzene_prefix_forms.halosulfur_oxide_prefix(mol, s_idx, neighbors)#

The prefix record of a ring -SO2-X or -SO-X (X a halogen) cited beside a senior group: ‘Acyl halides and pseudohalides as substituent groups’, method (2) (the Blue Book), “a compound prefix composed of a halo or halogeno prefix and an appropriate divalent acyl group, such as ‘sulfonyl’”; ‘-SO2-Cl chlorosulfonyl (preselected prefix)’ (:36472), ‘-S(=O)-Cl chlorosulfinyl (preselected prefix)’ (:36482). neighbors are the sulfur’s atoms off the ring; None for any other sulfur, and when no group senior to the sulfur acid halide is present (the molecule’s principal group is the sulfur acid halide: ‘benzene-1-sulfonyl chloride’, not a sulfonamide parent).