cympfh / javascript-lemmatizer

JavaScript Lemmatizer is a lemmatization library to retrieve a base form from an English inflected word.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Lemmatizer

forked from takafumir/javascript-lemmatizer

As npm module in CoffeeScript

{lemmas, lemmas_with_pos} = require './'

# lemmatize
lemmas('dying')                 # [ 'die', 'dying' ]
lemmas_with_pos('plays')        # [ ['play', 'verb'], ['play', 'noun'] ]

# lemmatize with pos hint
lemmas('larger', 'adj')         # [ 'large', 'larger' ]
lemmas_with_pos('huger', 'adj') # [ ['huge', 'adj'] ]

About

JavaScript Lemmatizer is a lemmatization library to retrieve a base form from an English inflected word.

License:MIT License


Languages

Language:CoffeeScript 100.0%