orthonym.rules.anilino_nitrogen#
Note
Internal API. Names and behaviour may change between releases.
The anilino prefix of an amino group whose nitrogen carries a benzene ring (PB-W).
rules.ring_substituents.anilino_prefix_from_n_branch derives the preferred prefix of a
C6H5-N< group from the GRAPH. The sites that compose an amino prefix from the names of the groups
on the nitrogen (‘(2,6-dichlorophenyl)amino’, ‘methyl(phenyl)amino’) call this module first, so
that the one rule has one home and a site cannot cite the general-nomenclature form as a
preferred prefix.
“Retained names” (the Blue Book): “The prefix name ‘anilino’ is retained as
the preferred prefix for C6H5-NH– with full substitution allowed. The name ‘phenylamino’ may be used in general nomenclature.” Its examples (:26153) ‘4-chloroanilino (preferred prefix) (4-chlorophenyl)amino’. (:26298), the nitrogen substituted as well: ‘:26308’ ‘3-(N-methylanilino)phenol (PIN)’ against ‘3-[methyl(phenyl)amino]phenol’.
- orthonym.rules.anilino_nitrogen.anilino_for_branches(mol, n_idx, branches, *, enclose=False)#
The preferred anilino prefix of the nitrogen
n_idx, orNone.branchesholds one(atoms, name)pair per group on the nitrogen (the atoms of the group, the prefix name the caller gave it). One group: a benzene ring with its own decoration (‘anilino’, ‘2,6-dichloroanilino’). Two groups: one of them a benzene ring, the other any prefix (‘N-methylanilino’, ‘N-phenylanilino’); the ring decoration and the N-substituent are cited in one alphanumerical sequence (‘4-chloro-N-methylanilino’, “full substitution allowed”). A substituted benzene ring on the other group declines: the more substituted ring is the aniline,:21604).Noneleaves the composition to the caller, so a shape this does not decide is never changed.