nebkam/vokativ

There is no license information available for the latest version (dev-master) of this package.

dev-master 2016-08-11 10:05 UTC

This package is auto-updated.

Last update: 2024-11-12 04:11:38 UTC


README

This bundle is now a part of Avramovic/Vokativ

VokativBundle

Symfony 2 Twig filter for addressing people according to Serbian grammar

Usage:

Pozdrav, {{ user.name|vokativ }}

..and if user.name is i.e. "Goran", it will output "Pozdrav, Gorane"

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

  1. require "nebkam/vokativ": "dev-master" in your composer.json
  2. update Composer dependencies
  3. 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:

Licence

http://creativecommons.org/licenses/by-sa/3.0/rs/