Skip to content

Document the synonyms mechanism (in particular, normalizing underscores) #50

Description

@cmungall

We use the synonym mechanism in OAK and many other projects, the docs for this are a bit buried.

Also there appears to be magic that happens that can cause hard to debug errors; e.g.

my_parser_resolver.synonyms.update(
   "my_name": ActualParser,
   ...

Invalid Parser name: my_name Valid choices are: ['my_name']

What seems to be happening is undocumented normalization removing all underscores

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions