DEPRECATED
This bundle is now a part of Avramovic/Vokativ, (*1)
VokativBundle
Symfony 2 Twig filter for addressing people according to Serbian grammar, (*2)
Usage:, (*3)
Pozdrav, {{ user.name|vokativ }}
..and if user.name is i.e. "Goran", it will output "Pozdrav, Gorane", (*4)
Features
- useful for adressing people by their names, although it should work on all nouns in Serbian
- you don't have to worry about the gender of the noun, it should handle male and female nouns correctly
Install via Composer
- require
"nebkam/vokativ": "dev-master" in your composer.json
- update Composer dependencies
- add
new Nebkam\Vokativ\NebkamVokativBundle() to $bundles in app/AppKernel.php
Keep in mind
- the filter works on Serbian Latin input/output only
- the filter does not try to correct your spelling (first letter uppercase on proper nouns and names etc.)
Credits
This is the unofficial port of http://vokativ.vokabular.org to Symfony 2, whose authors are:
* Немања Аврамовић
* Филип Милетић
* Милош Вукотић, (*5)
Licence
http://creativecommons.org/licenses/by-sa/3.0/rs/, (*6)