natural icon indicating copy to clipboard operation
natural copied to clipboard

Is it possible to convert adjectives/adverbs to their base forms?

Open erapoport opened this issue 10 years ago • 3 comments

It's great to be able to control pluralization, but I'm missing the facilities to convert adjectives and adverbs to their base forms (fastest, faster -> fast). Is that planned or supported?

Does wordnet have that information? Is it planned to have some deeper integration with it?

Thanks

erapoport avatar Jan 23 '16 22:01 erapoport

sounds like you are looking for a stemmer? https://github.com/NaturalNode/natural#stemmers

kkoch986 avatar Jan 25 '16 15:01 kkoch986

@kkoch986 - I tried stemming complete sentences and got unsatisfactory results, I got non-words all the time, I started using nounInflector and verbInflector to do "targeted inflections" and i found that it works much better than just stemming. I was hoping there's a "best" way for adverbs/adjectives as well.

I tried with complete sentences, but I haven't tried stemming single word inflected adjectives/adverbs, I'll see what I get.

erapoport avatar Jan 25 '16 20:01 erapoport

So I gave it a try, it seems like the Lancaster stemmer does manage to convert comparative forms (faster, brighter become fast, bright), but both stemmers don't do anything with superlative forms (fastest and brightest don't change).

erapoport avatar Jan 26 '16 09:01 erapoport