This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Turkish Suffix Library is a function for you to make suffixes according the Turkish grammatic rulues.

Project Description
============================
Turkish Suffix Library 0.1.3
============================

Turkish Suffix Library is a Turkish Suffix generator which changes nouns into ablative,
genetice, locative, dative, acusative cases and possessive affix.

Installation:

pip:
pip install django-turkish-suffix-library

manuel:
python setup.py install

Quick start
-----------

Add "tr_sufix" to your INSTALLED_APPS setting like this::

INSTALLED_APPS = (
...
'tr_suffix',
)


Usage for templates
-------------------
{% load trsuffix %}

Locative, ablative, genitive, dative and accusative cases are using like this, if the noun is a proper noun, the False paremeter should be set into True:

{{ "araç"|tr_locative:False }}
{{ "araç"|tr_ablative:False }}
{{ "araç"|tr_genitive:False }}
{{ "araç"|tr_dative:False }}
{{ "araç"|tr_accusative:False }}

For possesive affixes, the first boolean parameter is for if it is proper noun or not.
Second paremeter is the person and third parameter is if it is singular or plural means:

1,1: I
2,1: You (singular)
3,1: He/she/it
1,2: We
2,2: You (plural)
3,2: They

{{ "araç"|tr_possessiveaffix:"False,1,1" }}
{{ "araç"|tr_possessiveaffix:"False,2,1" }}
{{ "araç"|tr_possessiveaffix:"False,3,1" }}
{{ "araç"|tr_possessiveaffix:"False,1,2" }}
{{ "araç"|tr_possessiveaffix:"False,2,2" }}
{{ "araç"|tr_possessiveaffix:"False,3,2" }}

Usage on views:
---------------

Don't forget to put utf8 on top of the view:

#-*- coding: utf-8 -*-

from tr_suffix import stem

print stem.suffix(u"araç"").makeLocative({"proper_noun": False})
print stem.suffix(u"araç"").makeAblative({"proper_noun": False})
print stem.suffix(u"araç"").makeGenitive({"proper_noun": False})
print stem.suffix(u"araç"").makeDative({"proper_noun": False})
print stem.suffix(u"araç"").makeAccusative({"proper_noun": False})
Release History

Release History

This version
History Node

0.1.3

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
turkish-suffix-library-0.1.4.tar.gz (5.5 kB) Copy SHA256 Checksum SHA256 Source Aug 11, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting