Skip to content

Some suggestions #1

@chrisjbryant

Description

@chrisjbryant

Heya,

Like the new version! :)

Some quick suggestions:

  1. To make it easier to use, I'd list all the valid POS tags and their meanings in the readme. Some people might not be familiar with PTB tags or what the package can generate.

  2. If you have time, I also think it'd be nice if getAllInflections returned a dictionary rather than a list: E.g. {"VB": ("eat"), "VBZ": ("eats"), ...}. That way, we could also see all the forms that are available. It's true you can generally infer this from the position of the tuple in the list, but I think it'd be good to make it explicit.

With this in mind, I've attached the code I wrote previously to convert the infl.txt into JSON format with POS tags: new_agid.zip
I think working from this file should also bypsas most of the other issues you have with overrides.

  1. I also thought you were going to make the pos_type argument optional in getAllInflections. So you can specify V, A or N, but also leave it blank if you want to see all options;
    E.g.
> getAllInflections("watch")
{"NN": ("watch"), "VB": ("watch"), ...}

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