PHPackages                             writecrow/lemmatizer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. writecrow/lemmatizer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

writecrow/lemmatizer
====================

A non-part-of-speech lemmatizer tool

13183.1k↓23.3%62PHPCI failing

Since May 11Pushed 6y ago6 watchersCompare

[ Source](https://github.com/writecrow/lemmatizer)[ Packagist](https://packagist.org/packages/writecrow/lemmatizer)[ RSS](/packages/writecrow-lemmatizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (2)

Lemmatizer
==========

[](#lemmatizer)

[![Circle CI](https://camo.githubusercontent.com/bfae88c3389b5efe6bedcf2632e9491c1f6bee32cf16372df50797ef2e57999e/68747470733a2f2f636972636c6563692e636f6d2f67682f777269746563726f772f6c656d6d6174697a65722e7376673f7374796c653d736869656c64)](https://circleci.com/gh/writecrow/lemmatizer)

A PHP library for getting a lemma from a given word, and getting a list of words that map to a lemma. This does NOT support part of speech specification.

Source data
-----------

[](#source-data)

This lemma dictionary is largely based on [WordNet](https://wordnet.princeton.edu/), a project maintained at Princeton University.

Demo
----

[](#demo)

See the lemmatizer in action at

Usage in an application
-----------------------

[](#usage-in-an-application)

The included `index.php` file contains an interactive demo.

Make your code aware of the Lemmatizer class via your favorite method (e.g., `use writecrow\Lemmatizer\Lemmatizer;`)

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'
```

Testing
-------

[](#testing)

Unit Tests can be run (after `composer install`) by executing `vendor/bin/phpunit`

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4305692?v=4)[Mark Fullmer](/maintainers/markfullmer)[@markfullmer](https://github.com/markfullmer)

![](https://avatars.githubusercontent.com/u/27739911?v=4)[Corpus &amp; Repository of Writing (Crow)](/maintainers/writecrow)[@writecrow](https://github.com/writecrow)

---

Top Contributors

[![markfullmer](https://avatars.githubusercontent.com/u/4305692?v=4)](https://github.com/markfullmer "markfullmer (10 commits)")

---

Tags

lemmalemmatizationlemmatizernatural-language-processingphp-library

### Embed Badge

![Health badge](/badges/writecrow-lemmatizer/health.svg)

```
[![Health](https://phpackages.com/badges/writecrow-lemmatizer/health.svg)](https://phpackages.com/packages/writecrow-lemmatizer)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
