PHPackages                             hewison/inflection - 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. hewison/inflection

ActiveLibrary

hewison/inflection
==================

v2.0.2(6y ago)13.0kMITPHPPHP &gt;=7.2CI failing

Since Nov 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MHewison/inflection)[ Packagist](https://packagist.org/packages/hewison/inflection)[ Docs](https://github.com/MHewison/inflection)[ RSS](/packages/hewison-inflection/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Inflection
==========

[](#inflection)

A library to inflect adjectives, conjugate verbs and pluralize/singularize nouns.

Usage
-----

[](#usage)

`composer require hewison/inflection`

```
use Hewison\Inflection\Word;

$word = Word::create("back");

$word->get();
```

### Output

[](#output)

```
    [adjective] => Array
        (
            [standard] => back
            [comparative] => more back
            [superlative] => most back
        )
    [adverb] => back
    [noun] => Array
        (
            [singular] => back
            [plural] => backs
        )

    [verb] => Array
        (
            [entry] => back
            [tense] => Present
            [past] => backed
            [past_participle] => backed
            [present] => back
            [present_third] => backs
            [gerund] => backing
        )
```

It is also possible to return just the words you are interested in.

```
use Hewison\Inflection\Word;

$word = Word::create("back");

$word->getVerb(); // returns verb in all tenses.
$word->getAdverb(); // returns entered word if is adverb
$word->getNoun(); // returns singular and plural forms of entered, if it is a noun. Proper nouns and gibberish will still be processed here.
$word->getAdjective(); // returns adjective with superlative and comparative forms.
```

Additionally if you know what type of word you are working with, you can use the sub libraries on their own.

NOTE: the methods below to not undergo the same library checks as using the Word class.

### Nouns

[](#nouns)

```
Hewison\Inflection\Noun\Noun::toSingular("tables"); // table
Hewison\Inflection\Noun\Noun::toPlural("bear")' // bears
Hewison\Inflection\Noun\Noun::isSingular("tables"); // false
Hewison\Inflection\Noun\Noun::isPlural("bears"); // true
Hewison\Inflection\Noun\Noun::isCountable("economics"); // false
```

### Adjectives

[](#adjectives)

```
Hewison\Inflection\Adjective\Adjective::resolveSuperlativeForm("boring"); // most boring
Hewison\Inflection\Adjective\Adjective::resolveComparativeForm("boring"); // more boring
Hewison\Inflection\Adjective\Adjective::resolveAllForms("boring"); // array
```

### Verbs

[](#verbs)

```
Hewison\Inflection\Verb\Verb::create("go")->conjugate(); // array of all forms
Hewison\Inflection\Verb\Verb::create("go")->toGerund(); // Gerund form
Hewison\Inflection\Verb\Verb::create("go")->toPast(); // Past form
Hewison\Inflection\Verb\Verb::create("go")->toPastParticiple(); // Past Participle form
Hewison\Inflection\Verb\Verb::create("go")->toPresentThird(); // Present Third form
Hewison\Inflection\Verb\Verb::create("go")->toPresent(); // Present form

$verb = new Verb("walk");

$verb->toGerund(); // walking
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~0 days

Total

9

Last Release

2377d ago

Major Versions

v1.1.3 → v2.0.02019-11-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46506207?v=4)[Marc Hewison](/maintainers/MHewison)[@MHewison](https://github.com/MHewison)

---

Top Contributors

[![MHewison](https://avatars.githubusercontent.com/u/46506207?v=4)](https://github.com/MHewison "MHewison (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hewison-inflection/health.svg)

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

PHPackages © 2026

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