useallfive / a-vs-an
Determines whether 'a' or 'an' should precede a word
dev-master
2013-10-18 20:02 UTC
This package is not auto-updated.
Last update: 2024-11-04 16:55:00 UTC
README
PHP port of http://home.nerbonne.org/A-vs-An/
Installation
With composer:
{ "require": { "useallfive/a-vs-an": "dev-master" } }
Symfony 2
Add the bundle to your AppKernel#registerBundles()
method.
$bundles = array( // ... new UseAllFive\AvsAnBundle\UseAllFiveAvsAnBundle(), );
Sample usage
Symfony 2
class DefaultController extends Controller { public function defaultAction() { $aVsAn = $this->get('a_vs_an'); $result = $aVsAn->query('0800 number'); } }
print_r($result);
Array ( [aCount] => 8 [anCount] => 25 [prefix] => 08 [article] => an )