Skip to content

h4kbas/trjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TrJS CircleCI

A Library That Uses Turkish Grammar and Composes Turkish Sentences

TODO

  • Lenition has some problems about monosyllabic Turkish words.
  • Word suffix method will be added
  • Verb class will be added together with its specific methods and properties
  • Noun class will be added together with its specific methods and properties
  • Sentence class will be added. It will use Verb and Noun classes in order to build a proper sentence

# Old version Readme

TrJS CircleCI

A Library That Uses Turkish Grammar and Composes Turkish Sentences. It supports all features of Turkish such as consonant harmony and vowel harmony.

This is so simple to use it. Here is a sample

const Verb = require('./Verb.js');

let v = new Verb('al');
v.Tense('Genis','Ben','+?');
console.log(v.text);

First of all, you have Verb class and while constructing, you give the root of the Turkish verb. Here in this example "al" is the root of the verb which means "buy". Then, you call the Tense function with the parameters (Tensename, Subject, Positive/Negative or Its Question Forms)

Supported Forms:

  • +: Positive
  • -: Negative
  • +?: Positive Question
  • -?: Negative Question

Supported Tense and English Equivalents

  • Genis: Simple Present Tense
  • Simdiki: Present Cont. Tense
  • Gelecek: Simple Future Tense
  • GGecmis: Simple Past Tense(As interpretation)
  • DGecmis: Simple Past Tense(As interpretation)
  • Emir: Imperative
  • Gereklilik: Necessitative
  • Istek: Optative Mood
  • Sart: Conditional Mood

Important!

Its new version only supports Verbs for now. However, I am intented to add other features ASAP. If you need them, you can use the old version but please consider that it is no longer developed.

master

Releases

No releases published

Packages

No packages published