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

Converting between adverbs and adjectives #21

Open
skarokin opened this issue May 21, 2024 · 3 comments
Open

Converting between adverbs and adjectives #21

skarokin opened this issue May 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@skarokin
Copy link

When using getAllInflections() on some adjective, the adverb forms given are the exact same as the adjective and vice versa. Is there a possible fix for this? I'm trying to generate the adjective form of adverbs and vice versa

@bjascob
Copy link
Owner

bjascob commented May 22, 2024

Please give specific examples of what the library gives and what you're expecting.

@skarokin
Copy link
Author

skarokin commented May 22, 2024

Trying to generate the adverb form of an adjective gives the exact same results as trying to generate the different adjective forms. This is the same for adjective -> adverb

getAllInflections('quick', upos='ADV')
>>> {'RBR': ('quicker',), 'RBS': ('quickest',), 'RB': ('quick',)}
getAllInflections('quick', upos='ADJ')
>>> {'JJR': ('quicker',), 'JJS': ('quickest',), 'JJ': ('quick',)}

Is this intended?

@bjascob
Copy link
Owner

bjascob commented May 22, 2024

This is interesting but unfortunately I don't know the answer and there probably isn't a simple solution.

The NIH lexicon (which is where all the conversions come from) lists quick as both an ADV and an ADJ with reg variants (meaning they inflect with er and est). The word quickly is listed as a separate ADV but it is not associated with the word quick.

Doing check of the dictionary on Google, it looks like quick can be both an adjective or adverb in some instances so I'm not sure that it's even going to be possible to return a conversion from quick to quickly. Likely this is going to be limitation of the system.

@bjascob bjascob added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants