Code Monkey home page Code Monkey logo

turkish.js's Introduction

Turkish.js

Turkish Suffix Library for Javascript

Install

Using

// require("Turkish");

console.log(makeGenitive("Öykü", { proper_noun : true } ));
console.log(makeDative("Fatma", { proper_noun : true } ));
console.log(makeDative("Yasin", { proper_noun : true } ));
console.log(makeDative("ALİ", { proper_noun : true } ));
console.log(makeAblative("Ali", { proper_noun : true } ));
console.log(makeAccusative("Kaliningrad", { proper_noun : true } ));

console.log(makeGenitive("ağaç", { proper_noun : false } ));
console.log(makeAccusative("erik", { proper_noun : false } ));
console.log(makeAccusative("Erik", { proper_noun : true } ));

console.log(possessiveAffix("kavanoz", { person : "1", quantity : "singular" } ));
console.log(possessiveAffix("kavanoz", {  person : "2", quantity : "singular"} ));
console.log(possessiveAffix("kavanoz", {  person : "3", quantity : "singular"} ));

console.log(possessiveAffix("halter", {  person : "1", quantity : "plural"} ));
console.log(possessiveAffix("halter", {  person : "2", quantity : "plural"} ));
console.log(possessiveAffix("halter", {  person : "3", quantity : "plural"} ));

console.log(possessiveAffix("Kenya", {  person : "3", quantity : "plural"} ));

Output

Öykü'nün 
Fatma'ya 
Yasin'e 
ALİ'YE 
Ali'den 
Kaliningrad'ı
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

turkish.js's People

Contributors

yasinkuyu avatar

Watchers

James Cloos avatar Tolga avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.