orthonym.rules.pah_shared_prefix#
Note
Internal API. Names and behaviour may change between releases.
A carbon substituent of a polycyclic arene parent that the arene writer’s own table does not name: the shared prefix.
rules.polycyclics._identify_pah_substituent names alkyl chains, a few functionalised chains (‘hydroxymethyl’) and the
suffix groups on the ring; any other carbon group left the whole molecule unnamed at the PIN tier (‘3-(methoxycarbonyl)
naphthalene-2-carboxylic acid’, where the benzene writer names ‘2-(methoxycarbonyl)benzoic acid’). The prefix of such a
group is the one the shared substituent namer builds for every ring parent (assembly.substituent_naming.
name_substituent_fragment): ‘methoxycarbonyl’, ‘(acetylsulfanyl)carbonyl’, ‘3-methoxy-3-oxopropyl’; an ester is a
prefix when an acid holds the suffix:31709, ‘alkoxy…oxo’ / ‘alkoxycarbonyl’), and names the
thioanhydride link of ‘acetic 3-[(acetylsulfanyl)carbonyl]naphthalene-2-carboxylic anhydride (PIN)’ (:32459) the same way.
The prefix is declined when the group holds an atom of the molecule’s principal characteristic group:18169): that group is then a suffix of another parent, or a second suffix of this one, which this writer does not build.
- orthonym.rules.pah_shared_prefix.shared_pah_prefix(mol, start_idx, core_atoms, frag_atoms)#
{'name', 'atoms'}for the carbon groupfrag_atoms(attached atstart_idx) of an arene parent, else None.