PHPackages                             bmstanley/indefinite-article - 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. bmstanley/indefinite-article

ActiveLibrary

bmstanley/indefinite-article
============================

Grammatical utility class for prepending the appropriate indefinite article to a word (a/an)

v1.0.3(6y ago)0641BSD-2-ClausePHPPHP &gt;= 7.0

Since Sep 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bmstanley/php-indefinite-article)[ Packagist](https://packagist.org/packages/bmstanley/indefinite-article)[ RSS](/packages/bmstanley-indefinite-article/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)Dependencies (2)Versions (6)Used By (0)

PHP Indefinite Article Library
==============================

[](#php-indefinite-article-library)

PHP implementation of the [Lingua::EN::Inflect](http://search.cpan.org/dist/Lingua-EN-Inflect/lib/Lingua/EN/Inflect.pm)Perl module's A() and AN() subroutines, originally [ported to PHP](https://github.com/Kaivosukeltaja/php-indefinite-article) by [Niko Salminen](http://nikosalminen.com), and then by [made into composer package](https://github.com/zachflower/php-indefinite-article) by [Zach Flower](https://zacharyflower.com/).

Installation
------------

[](#installation)

### Via Composer

[](#via-composer)

Require the library and update via [Composer](https://getcomposer.org/)

```
composer require bmstanley/indefinite-article
composer update
```

Usage
-----

[](#usage)

The PHP Indefinite Article Library is used to determine the proper indefinite article to use before a word ('a' or 'an'). To do so, simply call the `invoke()` method with your word or phrase:

```
IndefiniteArticle::invoke('elephant')

```

The method will return a string prefixed with the appropriate indefinite article:

```
an elephant

```

Copyright and License
---------------------

[](#copyright-and-license)

Original Perl module Copyright © 1997-2009 Damian Conway; Original PHP port Copyright © 2012 Niko Salminen; Original library copyright © 2016 Zachary Flower and copyright © 2018 Spenser Hale; Current library copyright © 2019 Brian Stanley; Code released under the [BSD license](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~279 days

Total

5

Last Release

2424d ago

Major Versions

v0.1.0 → v1.0.02018-06-14

PHP version history (3 changes)v0.1.0PHP &gt;= 5.3.0

v1.0.0PHP &gt;= 7.2.2

v1.0.2PHP &gt;= 7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8882580?v=4)[Brian Stanley](/maintainers/bmstanley)[@bmstanley](https://github.com/bmstanley)

---

Top Contributors

[![spenserhale](https://avatars.githubusercontent.com/u/5643366?v=4)](https://github.com/spenserhale "spenserhale (13 commits)")[![Kaivosukeltaja](https://avatars.githubusercontent.com/u/881135?v=4)](https://github.com/Kaivosukeltaja "Kaivosukeltaja (5 commits)")[![bmstanley](https://avatars.githubusercontent.com/u/8882580?v=4)](https://github.com/bmstanley "bmstanley (3 commits)")[![kjbjm](https://avatars.githubusercontent.com/u/2024496?v=4)](https://github.com/kjbjm "kjbjm (3 commits)")[![zachflower](https://avatars.githubusercontent.com/u/920019?v=4)](https://github.com/zachflower "zachflower (2 commits)")

---

Tags

phptextgrammar

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bmstanley-indefinite-article/health.svg)

```
[![Health](https://phpackages.com/badges/bmstanley-indefinite-article/health.svg)](https://phpackages.com/packages/bmstanley-indefinite-article)
```

###  Alternatives

[froala/wysiwyg-editor-php-sdk

PHP SDK for Froala WYSIWYG Editor

431.5M](/packages/froala-wysiwyg-editor-php-sdk)

PHPackages © 2026

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