Skip to main content

Turkic Suffix Library

Supported Languages

Turkish: Verbs & nouns (by Cem Yildiz)

Turkmen: Nouns (by Oğuzhan Moroğlu)

Install

pip install turkic-suffix-library

Using

Nouns

from turkic_suffix_library import Turkish

print(Turkish('araba').dative())
print(Turkish('sebep').ablative())
print(Turkish('sebep').accusative())
print(Turkish('ecdat').accusative())

print(Turkish('çanta').plural().possessive(person=1).ablative().to_json())
print(Turkish('aparat').possessive(person=2))
print(Turkish('batak').possessive(person=3))

print(Turkish('idrak').possessive(person=1, plural=True))
print(Turkish('ok').possessive(person=2, plural=True))
print(Turkish('çanta').possessive(person=3, plural=True))

print(f'{Turkish("Elif").genitive(proper_noun=True)} {Turkish("Öküz").possessive(person=3)}.')

print(Turkish('dört').ordinal())
print(Turkish('yedi').distributive())
Turkish('kedi').instrumental()

print(Turkish('Marmara Denizi').dative())
print(Turkish('İstanbul Üniversitesi').dative())

print(Turkish('Marmara Denizi', possessive=True, proper_noun=True).dative())
print(Turkish('İstanbul Üniversitesi', possessive=True).dative())

print(Turkish('İstanbul Üniversite').possessive().dative())
Output
arabaya
sebepten
sebebi
ecdadı
{
     'result': 'çantalarımdan', 
     'stem': 'çanta', 
     'history': [
        {'action': 'plural', 'current': 'çantalar', 'kwargs': {}}, 
        {'action': 'possessive', 'current': 'çantalarım', 'kwargs': {'person': 1}}, 
        {'action': 'ablative', 'current': 'çantalarımdan', 'kwargs': {}}
     ]
}
aparatın
batağı
idrakımız
okunuz
çantaları
Elif'in Öküzü.
dördüncü
yedişer
kediyle
Marmara Deniziye
İstanbul Üniversitesiye
Marmara Denizi'ne
İstanbul Üniversitesine
İstanbul Üniversitesine

Turkish Grammar

  • Turkish is a highly agglutinative language, i.e., Turkish words have many grammatical suffixes or endings that determine meaning. Turkish vowels undergo vowel harmony. When a suffix is attached to a stem, the vowel in the suffix agrees in frontness or backness and in roundedness with the last vowel in the stem. Turkish has no gender.

  • Turkish Language is a language with strict rules with an only couple of exceptions which makes it very easy for simulating by coding.

  • More Info

User Interface

The most of the methods are not supported yet, under development

Other Programming Languages

  C# Version
  https://github.com/yasinkuyu/Turkish.cs

  PHP Version
  https://github.com/yasinkuyu/Turkish.php

  JavaScript Version
  https://github.com/yasinkuyu/Turkish.js

Special thanks for C#, PHP and JavaScript versions

  Yasin Kuyu
  https://github.com/yasinkuyu/

Metadata

Release files for turkic-suffix-library 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turkic-suffix-library 1.0.4
File Size Uploaded Provenance
turkic_suffix_library-1.0.4.tar.gz 22.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for turkic-suffix-library 1.0.4
File Interpreter ABI Platform
turkic_suffix_library-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / turkic_suffix_library-1.0.4.tar.gz

Download URL turkic_suffix_library-1.0.4.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
72f21d040e5adb72e758e0f6e4b7ef906284a1b1d4a391500a63f59d2d680f9b
BLAKE2b-256 checksum
How to use checksums
52055a7c1d7ded7825f8ed08d7304bb350d5b94aa3db8fa4b717d9b193043e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / turkic_suffix_library-1.0.4-py3-none-any.whl

Download URL turkic_suffix_library-1.0.4-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28661835fe7652e0b11c6adf704cbcafe7d4afd69507ae7797232f490e3bfa67
BLAKE2b-256 checksum
How to use checksums
ea3d9882813d717bbe0f06e6771c71532cf3e462cef5adf4c4ea9be21a7c4f59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Security for turkic-suffix-library 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page