Skip to main content

Turkish.py

Turkish Suffix Library for Python

Install

pip install turkish-suffix-library

Using

Nouns

from turkish_suffix_library.turkish 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()
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

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 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 turkish-suffix-library 1.0.7

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

Source distribution (sdist)

Source distribution for turkish-suffix-library 1.0.7
File Size Uploaded Provenance
turkish-suffix-library-1.0.7.tar.gz 15.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for turkish-suffix-library 1.0.7
File Interpreter ABI Platform
turkish_suffix_library-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 673.7 kB

Release files / turkish-suffix-library-1.0.7.tar.gz

Download URL turkish-suffix-library-1.0.7.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6ab14b4a39418eb017ff2d52a4ed27523f73813ac396d1e81f67ab2e4fc0420a
BLAKE2b-256 checksum
How to use checksums
6236bf10647c2eacc56763f0460df00eb98111d02f7dd20df630e8e413959edf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

Release files / turkish_suffix_library-1.0.7-py3-none-any.whl

Download URL turkish_suffix_library-1.0.7-py3-none-any.whl
Size 658.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfb435a29138bbc02f6f89e7dfab5fdd2aebe08d5fb323199cbaa5364dcc6b44
BLAKE2b-256 checksum
How to use checksums
76876817f7e0a8316734e0a0e21b03adab684d944a35068e990acb4abb75d635
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

Security for turkish-suffix-library 1.0.7

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.

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files No provenance

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