All Projects → yasinkuyu → Turkish.php

yasinkuyu / Turkish.php

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

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Turkish.php

gossa
The Go/Go+ Interpreter
Stars: ✭ 53 (-7.02%)
Mutual labels:  stem
Almanac
Almanac 历
Stars: ✭ 31 (-45.61%)
Mutual labels:  stem
spx
spx - A Go+ 2D Game Engine for STEM education
Stars: ✭ 72 (+26.32%)
Mutual labels:  stem
colabs
This repository holds the Google Colabs for the EdX TinyML Specialization
Stars: ✭ 73 (+28.07%)
Mutual labels:  stem
torgo
A Golang library for Tor.
Stars: ✭ 36 (-36.84%)
Mutual labels:  stem
open
🖥️ 🚀 Fiveable's Open Source Initiative. Showcasing projects and exposing others to the world of OSS.
Stars: ✭ 22 (-61.4%)
Mutual labels:  stem
diversity-index
A curated Diversity-Index of grants, scholarships and FA that encourages diversity in STEM fields aimed at half the world's population, Women!
Stars: ✭ 60 (+5.26%)
Mutual labels:  stem
BlocklyArduinoIDEPlugin
Blockly@rduino Arduino IDE plugin to add and interact with
Stars: ✭ 20 (-64.91%)
Mutual labels:  stem
CubeSatSim
CubeSatSim, the AMSAT CubeSat Simulator
Stars: ✭ 201 (+252.63%)
Mutual labels:  stem
CO.LAB
An open source repository for the learning materials that are used by the CO.LAB program.
Stars: ✭ 61 (+7.02%)
Mutual labels:  stem
TorIpChanger
Python powered way to get a unique Tor IP
Stars: ✭ 42 (-26.32%)
Mutual labels:  stem
aksh
My personal bibliography of STEM resources and grey literature.
Stars: ✭ 33 (-42.11%)
Mutual labels:  stem
meetup-presentations brisbane
R-Ladies Brisbane Chapter repository of presentations and host toolkit.
Stars: ✭ 16 (-71.93%)
Mutual labels:  stem
Python-For-Kids
A comprehensive and FREE Online Python Development tutorial FOR KIDS utilizing an official BBC micro:bit Development Board going step-by-step into the world of Python for microcontrollers.
Stars: ✭ 621 (+989.47%)
Mutual labels:  stem
gwizo
Simple Go implementation of the Porter Stemmer algorithm with powerful features.
Stars: ✭ 26 (-54.39%)
Mutual labels:  vowel

Turkish.php

Turkish Suffix Library for PHP

@yasinkuyu

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].