Giter Club home page Giter Club logo

haller.js's Introduction

Haller.js

Haller.js, Türkçe isimlere hâl ve iyelik ekleri getirmek için bir javascript fonksiyonudur.

Haller.js projesinin fikir babası Sercan Eraslan(@skatersercan)'dır.

Kullanımı

console.log(Hal("sercan","de")); > sercan'da
console.log(Hal("Murat","iyelik")); > Murat'ın
console.log(Hal("osman","i")); > osman'ı
console.log(Hal("alp","de")); > alp'te
console.log(Hal("Cemal","e")); > Cemal'e

Eksikler

  • Şapkalı harfler(â, î, û) algılanmıyor.

haller.js's People

Contributors

muratcorlu avatar sercaneraslan avatar yuxel avatar

Stargazers

 avatar

Watchers

 avatar Hasan Sama avatar  avatar

haller.js's Issues

Şapkalı harfler

â, î, û ve bunların büyük harfleri gibi şapkalı harfler kullanıldığında kod düzgün çalışmıyor.

Genel kurala uymayan isimler

Alp, Şevval, Resul, Kemal gibi bazı isimler genel ek kurallarına uymuyor. Bunları istisna olarak koda eklemek zorunluluğu da kulağa pek hoş gelmiyor. Bir çözümü olsa gerek...

Node.js kütüphanesi

Kodun nodejs projelerinde kolayca kullanılabilir hale getirilmesi çok faydalı olur.

Büyük-küçük harf ayrımı

Şu an büyük harfli yazımlarda kod düzgün çalışmıyor.

Hal("Murat", "de") -> Murat'ta
Hal("MURAT", "de") -> MURAT'de

Alias metodlar

Kod yazımını kısaltmak adına init metoduna aşağıdaki gibi aliaslar tanımlamak güzel olacak.

Haller.i(isim) -> Haller.init(isim, "i")
Haller.e(isim) -> Haller.init(isim, "e")
Haller.de(isim) -> Haller.init(isim, "de")
Haller.den(isim) -> Haller.init(isim, "den")
Haller.iyelik(isim) -> Haller.init(isim, "iyelik")

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.