Skip to main content

Turkic suffix library

Project description

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/

Project details


Download files

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

Source Distribution

turkic_suffix_library-1.0.0.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turkic_suffix_library-1.0.0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file turkic_suffix_library-1.0.0.tar.gz.

File metadata

  • Download URL: turkic_suffix_library-1.0.0.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for turkic_suffix_library-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2d36c453406d59eda5408ddffa0897fabb26af793858745f0edcd38ae54d6048
MD5 b8ef358ccb03f6832f7502b525f7b9c5
BLAKE2b-256 842c02cf9fcd469f79f9bdad4d540dc5f515d68836dc23eeed7ec1efaa63725a

See more details on using hashes here.

File details

Details for the file turkic_suffix_library-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turkic_suffix_library-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fbf79902a337e96f4fe01306dcecfd84e771d16daa80584ae4bafb9a9fcf180
MD5 5f51e8f3ff4f5fc95a67c2dd287503ad
BLAKE2b-256 ca6593f69afab52de7f4da8a2f8613de7f9c402244055968dd8d66cb460bf39b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page