English lemmatizer in Common Lisp
$ ros install t-cool/cl-lemma
You can lemmalize a word by (cl-lemma:lemma <word> <pos> )
.
* (cl-lemma:lemma "leaves" :noun)
"leaf"
* (cl-lemma:lemma "leaves" :verb)
"leave"
If you ommit a pos, cl-lemma will look up a lemma in the following order: Noun, Verb, Adjective, and Adverb.
* (cl-lemma:lemma "leaves")
"leaf"
* (cl-lemma:lemma "better")
"good"
If you add ~/.roswell/bin
to PATH, you can use lemma command.
$ lemma leaves verb
leave
$ lemma leave
leaf
t-cool
This project is ported from yohasebe/lemmatizer.
Licensed under the MIT license.