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)