A PHP library for getting a lemma from a given word, and getting a list of words that map to a lemma.
Usage in an application
index.php file contains a generation form demo.
Make your code aware of the Lemmatizer class via your favorite method
Then pass a word into one of the two methods
print Lemmatizer::getLemma('leaves'); // Will print 'leaf' print Lemmatizer::getWordsFromLemma('leaf'); // Will print 'leaves,leafing,leafed,leafs'
Unit Tests can be run (after
composer install) by executing