Git Product home page Git Product logo

reading-time's Introduction

Okuma Süresi (Reading Time)

Parametre olarak gelen makalenin kelime sayısını hesaplayarak, ortalama okunma süresini hesaplar.

Calculates the average reading time by calculating the number of words of the article as a parameter.

Kullanımı (Use of)

Normal bir okuma hızına göre, 1 saniyede 2 kelime okunacağı baz alınmıştır.

Based on a normal reading speed, it is assumed to read 2 words in 1 second.

$cumle = "Bu örnek bir makaledir. Veritabanından makaleleri çekerken,
          makale içeriğini bu fonksiyona parametre olarak atarsanız,
          tahmini olarak okunma süresini verecektir.
          Kelime sayısına göre tahmini okunma süresini saniye, dakika yada saat olarak geri döndürür.";
          
$sentense = "This is an example. When you are pulling articles from the database,
             if you pass the article content as a parameter to this function,
             it will give an estimated reading time.
             Returns the estimated reading time in seconds, minutes, or hours, based on the number of words."

readingTime($cumle);  // "20 saniye" çıktısını verir.

Varsayılan okuma hızı saniyede 2 kelimedir. Bu hızı, readingTime fonksiyonunun 2. parametresinden değiştirebilirsiniz.

//The default reading speed is 2 words per second. You can change this speed from the 2nd parameter of the readingTime function.

readingTime($cumle, 3); //Saniyede 3 kelime - 3 words per second

readingTime($cumle, 5); //Saniyede 5 kelime - 5 words per second

reading-time's People

Contributors

omergulcicek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.