Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need clarification -- how can I use/configure the library to work only for adjectives? #5

Open
IGMontero opened this issue May 29, 2024 · 1 comment

Comments

@IGMontero
Copy link

As the question states, I don't know how to make it only match WordType.ADJECTIVE.
Any clarification is highly appreciated!

@mistval
Copy link
Owner

mistval commented May 29, 2024

Hi,

This module only supports verbs. There is WIP adjective support in it, but it's not enabled and I don't remember how good of a state it's in since I haven't touched it in 6 years.

If you would like to try it, you can try changing this line to const isDictionaryForm = wordType === WordType.ADJECTIVE;

If it works decently well, I would welcome a pull request to add an onlyAdjectives option to the unconjugate() function that changes the behavior of that line of code accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants