Skip to content

Multi-anion ester: a locanted anion in enclosing marks is not parsed unless it carries a substituent prefix ("3-[(9Z)-octadec-9-enoate]") #357

Open

Description

@Kohulan

Thank you for the fix of #354 (dd51e9f). With current master (6ebd4ce), the functional-class name of a polyol ester of different acids fails when an anion word that has a locant stands in enclosing marks and has no substituent prefix.

Minimal reproducer:

propane-1,2,3-triyl 1,3-diacetate 2-(butanoate)  -> "The following was not parseable: ate)"
propane-1,2,3-triyl 1,3-diacetate 2-butanoate    -> C(CCC)(=O)OC(COC(C)=O)COC(C)=O

This matters for a stereodescriptor, which needs the enclosing marks. The IUPAC 2013 recommendations give this PIN (P-65.6.3.3.3.2 "When anions are different, two methods are used", method (1), fourth example):

propane-1,2,3-triyl 2-acetate 1-hexadecanoate 3-[(9Z)-octadec-9-enoate]
  -> "The following was not parseable: ate]"

Expected: CCCCCCCC/C=C\CCCCCCCC(=O)OCC(OC(C)=O)COC(=O)CCCCCCCCCCCCCCC, the structure OPSIN gives for the method (2) name of the same example, 2-(acetyloxy)-3-(hexadecanoyloxy)propyl (9Z)-octadec-9-enoate.

Name OPSIN master (6ebd4ce)
propane-1,2,3-triyl 1,3-diacetate 2-[(2E)-but-2-enoate] "The following was not parseable: ate]"
propane-1,2,3-triyl 1,3-diacetate 2-(benzoate) "The following was not parseable: ate)"
propane-1,2,3-triyl 1,3-diacetate (butanoate) (no locant) read
propane-1,2,3-triyl 1,3-diacetate 2-(chloroacetate) (substituent prefix) read
propane-1,2,3-triyl 1,3-diacetate 2-[(2R)-2-methylbutanoate] (stereodescriptor and prefix) read
propane-1,2,3-triyl 3-acetate 1,2-di(hexadecanoate) (multiplier before the marks) read

So the trigger appears to be a locant followed directly by enclosing marks around an anion with no substituent prefix, saturated or unsaturated. Without the marks the name is read, but a stereodescriptor such as (9Z) needs them, so the PIN above has no spelling that OPSIN reads.

Activity

  1. self-assigned this
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions