lewis-dun / indefinite-article
Grammatical utility for prepending an indefinite article to a word
1.1.0
2022-06-21 13:45 UTC
Requires
- php: ^5.6 || ^7.0 || ^8.0
Requires (Dev)
- phpstan/phpstan: ^1
- phpunit/phpunit: ^7 || ^8 || ^9
This package is auto-updated.
Last update: 2025-05-21 20:20:06 UTC
README
This is a PHP port of the Lingua::EN::Inflect Perl module's A() subroutine.
The best way to use it is with Composer: php composer.phar require thaumatic/indefinite-article
Then you can use Thaumatic\IndefiniteArticle;
and echo 'This is ' . IndefiniteArticle::a('test');
Original module Copyright (c) 1997-2009 Damian Conway. http://search.cpan.org/dist/Lingua-EN-Inflect/lib/Lingua/EN/Inflect.pm
Previous adaptation by Niko Salminen (http://nikosalminen.com)
Further work by Thaumatic Systems, LLC (http://thaumatic.com)