I’m using the words gem to search wordnet. Here is my code:
require 'words'
data = Words::Wordnet.new
word = "geese"
lemma = data.find(word)
puts lemma
lemma returns nil. It works for other words like “car” but “geese” doesn’t work. The word exists, I can search for it on the Wordnet website: http://wordnetweb.princeton.edu/perl/webwn?s=geese&sub=Search+WordNet&o2=&o0=&o8=1&o1=&o7=&o5=&o9=&o6=&o3=&o4=&h=00000000000
What could be going on? Thank you in advance!
I think it’s because “geese” is a plural (an irregular one at that), and the search on the WordNet website is using morphy. I guess the words gem isn’t. Try “cars” and “feet”.