Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yasinkuyu/turkish.js
Turkish Suffix Library for Javascript - Türkçe Çekim ve Yapım Ekleri
https://github.com/yasinkuyu/turkish.js
javascript nlp stem vowel
Last synced: 7 days ago
JSON representation
Turkish Suffix Library for Javascript - Türkçe Çekim ve Yapım Ekleri
- Host: GitHub
- URL: https://github.com/yasinkuyu/turkish.js
- Owner: yasinkuyu
- Created: 2014-07-26T12:09:48.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-01T00:53:54.000Z (over 8 years ago)
- Last Synced: 2024-07-30T20:43:00.556Z (4 months ago)
- Topics: javascript, nlp, stem, vowel
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 41
- Watchers: 3
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](http://en.wikipedia.org/wiki/Turkish_grammar)## Author
* Yasin Kuyu
* [Follow me at Twitter](http://twitter.com/yasinkuyu)
C# Version
https://github.com/yasinkuyu/Turkish.cs
PHP Version
https://github.com/yasinkuyu/Turkish.php
Python Version
https://github.com/miklagard/Turkish-Suffix-Library