Determines whether 'a' or 'an' should precede a word
PHP port of http://home.nerbonne.org/A-vs-An/, (*1)
With composer:, (*2)
{ "require": { "useallfive/a-vs-an": "dev-master" } }
Add the bundle to your AppKernel#registerBundles() method., (*3)
AppKernel#registerBundles()
$bundles = array( // ... new UseAllFive\AvsAnBundle\UseAllFiveAvsAnBundle(), );
class DefaultController extends Controller { public function defaultAction() { $aVsAn = $this->get('a_vs_an'); $result = $aVsAn->query('0800 number'); } }
```php print_r($result);, (*4)
```php Array ( [aCount] => 8 [anCount] => 25 [prefix] => 08 [article] => an )
Sources Download
Apache-2.0
article a prefix an avsan