globalwordnet / OMW

The Open Multilingual Wordnet
http://compling.hss.ntu.edu.sg/omw/
MIT License
58 stars 9 forks source link

Morphologically flexible searches #77

Open goodmami opened 5 years ago

goodmami commented 5 years ago

The NLTK's wordnet interface does some basic morphological analysis on English queries, such as depluralization:

>>> from nltk.corpus import wordnet as wn
>>> wn.synsets('spectacles')
[Synset('spectacles.n.01'), Synset('spectacle.n.01'), Synset('spectacle.n.02'), Synset('spectacle.n.03')]

OMW's search does not. "Spectacles" only returns the first synset of the above list. This seems useful, however we cannot immediately provide it for every wordnet (perhaps the maintainers of the other wordnets could suggest morphological analyzers that we could integrate).