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()
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 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-0.0.2.tar.gz (18.7 kB view details)

Uploaded Source

File details

Details for the file turkic-suffix-library-0.0.2.tar.gz.

File metadata

  • Download URL: turkic-suffix-library-0.0.2.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.12

File hashes

Hashes for turkic-suffix-library-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc9f2653637030486d866a209518ce9365a7623d7753688afe0b7cc4ef0bd70c
MD5 6f6b79917882b2aa644902e466f48df6
BLAKE2b-256 8216a169a77283c168785dbcb2468e80dd35c91c92b679cd858da05d7f1a0a9b

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