2017 © Pedro Peláez
 

library turkish

Turkish Suffix Library for PHP - Türkçe Çekim ve Yapım Ekleri

image

yasinkuyu/turkish

Turkish Suffix Library for PHP - Türkçe Çekim ve Yapım Ekleri

  • Sunday, June 10, 2018
  • by yasinkuyu
  • Repository
  • 2 Watchers
  • 26 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Turkish.php

Turkish Suffix Library for PHP

@yasinkuyu, (*1)

Composer Install

composer require yasinkuyu/turkish

require_once __DIR__ . '/vendor/autoload.php';

Manual installation

require 'Turkish.php';

Using

    $tr = new Turkish; 

    echo $tr->makeGenitive("Öykü", array ( "proper_noun" => true ) ), PHP_EOL;
    echo $tr->makeDative("Fatma", array ( "proper_noun" => true ) ), PHP_EOL;

    echo $tr->makeDative("Yasin", array ( "proper_noun" => true ) ), PHP_EOL;
    echo $tr->makeDative("ALİ", array ( "proper_noun" => true ) ), PHP_EOL;
    echo $tr->makeAblative("Ali", array ( "proper_noun" => true ) ), PHP_EOL;
    echo $tr->makeAccusative("Kaliningrad", array ( "proper_noun" => true ) ), PHP_EOL;

    echo $tr->makeDerivative("güneş", array ( "proper_noun" => false ) ), PHP_EOL;

    echo $tr->makeGenitive("ağaç", array ( "proper_noun" => false ) ), PHP_EOL;
    echo $tr->makeAccusative("erik", array ( "proper_noun" => false ) ), PHP_EOL;
    echo $tr->makeAccusative("Erik", array ( "proper_noun" => true ) ), PHP_EOL;

    echo $tr->possessiveAffix("kavanoz", array ( "person" => "1", "quantity" => "singular" ) ), PHP_EOL;
    echo $tr->possessiveAffix("kavanoz", array (  "person" => "2", "quantity" => "singular") ), PHP_EOL;
    echo $tr->possessiveAffix("kavanoz", array (  "person" => "3", "quantity" => "singular") ), PHP_EOL;

    echo $tr->possessiveAffix("halter", array (  "person" => "1", "quantity" => "plural") ), PHP_EOL;
    echo $tr->possessiveAffix("halter", array (  "person" => "2", "quantity" => "plural") ), PHP_EOL;
    echo $tr->possessiveAffix("halter", array (  "person" => "3", "quantity" => "plural") ), PHP_EOL;

    echo $tr->possessiveAffix("Kenya", array (  "person" => "3", "quantity" => "plural") ), PHP_EOL;

Output

Öykü'nün 
Fatma'ya 
Yasin'e 
ALİ'YE 
Ali'den 
Kaliningrad'ı
güneşli
ağacın
eriği
Erik'i
kavanozum
kavanozun
kavanozu
halterimiz
halteriniz
halterleri
Kenyaları 

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.
  • More Info

Author

  • Yasin Kuyu
  • Follow me at Twitter, (*2)

    C# Version https://github.com/yasinkuyu/Turkish.cs, (*3)

    JavaScript Version https://github.com/yasinkuyu/Turkish.js, (*4)

    Python Version https://github.com/miklagard/Turkish-Suffix-Library, (*5)

The Versions

10/06 2018

dev-master

9999999-dev https://github.com/yasinkuyu/Turkish.php

Turkish Suffix Library for PHP - Türkçe Çekim ve Yapım Ekleri

  Sources   Download

MIT

by Yasin Kuyu

suffix turkish turkce yapım ekleri çekim ekleri turkish suffix