LemmInflect icon indicating copy to clipboard operation
LemmInflect copied to clipboard

Derivational Morphemes

Open usbader opened this issue 4 years ago • 5 comments

Hi all,

It would be great to have arrival from arrive. I checked the following function, but it did not return arrival

getAllInflections('arrive') {'VBD': ('arrived',), 'VBG': ('arriving',), 'VBZ': ('arrives',), 'VB': ('arrive',), 'VBP': ('arrive',)}

usbader avatar Dec 09 '20 01:12 usbader

arrival is a noun but arrive is a verb so one can't be an inflection of the other. The base Lexicon does have nominalization and nominalization_of so I might be able to include some functionality for finding related words. However, I think nltk already has functions for this. Check nltk's derivationally_related_forms() for lemmas and see if it fits your needs.

bjascob avatar Dec 09 '20 02:12 bjascob

Awesome! I am really looking forward to checking your enhancement.

usbader avatar Dec 10 '20 03:12 usbader

This function does help, but I need to filter out unrelated words from it as you can see from the following list. ['comer', 'coming', 'arriver', 'arrival']

usbader avatar Dec 10 '20 03:12 usbader

Is it supposed to be possible to convert between adverb->adjective->noun? For example "easily"->"easy" etc. I tried but it's not working for me, it just returns "easily".

OmriPi avatar May 08 '22 15:05 OmriPi

No. The library if for Lemmatization and Inflection only.

bjascob avatar May 08 '22 18:05 bjascob