Heya,
Like the new version! :)
Some quick suggestions:
-
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.
-
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.
- 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"), ...}
Heya,
Like the new version! :)
Some quick suggestions:
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.
If you have time, I also think it'd be nice if
getAllInflectionsreturned 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.txtinto JSON format with POS tags: new_agid.zipI think working from this file should also bypsas most of the other issues you have with overrides.
pos_typeargument optional ingetAllInflections. So you can specify V, A or N, but also leave it blank if you want to see all options;E.g.