orthonym.rules.polyfunctional_parts#
Note
Internal API. Names and behaviour may change between releases.
The routes and the per-group steps of polyfunctional.name_polyfunctional, moved here verbatim. A route
returns the name (or None, a decline) or _GO_ON when it does not apply; a group step returns True when it
handled the group (the loop goes on to the next one), a filter step returns that flag and the matches it keeps.
- orthonym.rules.polyfunctional_parts.principal_amides_off_chain(features)#
Several N-substituted amides (secondary or tertiary) are the principal group and the acyl carbon of one of them is not on the principal chain: the two amides of
CNC(=O)CNCC(=O)NCC, joined by an azanediyl group, with the chain on the one side. The chain-suffix machinery expresses the amides of the chain as the suffix and a prefix pair and no N-substituent of the amide that is the suffix, so it names another molecule (‘2-{[2-(ethylamino)-2-oxoethyl]amino}-1- (methylamino)acetamide’), and a chain that holds no acyl carbon names it as ‘aminopropanamide’. /: the amide is the principal group and its N-substituents are located by N, so the name is built from an acyl chain (the amide handler’s, for one amide) or from the split of the decomposition engine, which names the amide of an acid and an amine.
- orthonym.rules.polyfunctional_parts.chain_fallback_declines(features)#
The chain fallback of
assembly.handlers.general_acyclicnames no molecule whose principal group is an ester (one substitutive name can only write the acid’s anion:, the Blue Book) or N-substituted amides of which the chain holds not every acyl carbon (principal_amides_off_chain(): a chain with no acyl carbon is named ‘aminopropanamide’); the decomposition engine names both.