A Simple Android library to get the number of words and give you the time it will take you to finish an article/story.

Overview

Maintenance Open Source Love svg1 GitHub license

MinRead

A Simple Android library to get the number of words and give you the time it will take you to finish an article/story.

Prerequisite

  • Androidx
  • Kotlin

Alt Text

How to set up

And add a dependency code to your module's build.gradle file.

dependencies {
	      implementation 'com.github.wise4rmgod:ReadTime:0.1.0'
	}

Add below codes to your root build.gradle file (not your module build.gradle file).

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Example

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val ty = "f your audience reads slower or faster than 200 words per minute — \n" +
                "        perhaps your blog is in English, which isn’t your audience’s first language, or perhaps your material is extremely\n" +
                "        basic and easy to skim — then you’ll want to use calculator instead. First, you’ll have to divide your total word \n" +
                "        count by the average words read per minute of your audience. Let’s say your 938-word article has an audience that \n" +
                "        reads 150 words per minute. That gives you 6.253. Enter 6.253 into the Decimal-to-Time Calculator, choose “Minutes” \n" +
                "        from the drop-down menu and press “Calculate.”\n" +
                "        Immediately, you’ll get a minute and seconds estimate. In this case, it’s 6 minutes and 15 seconds."
        
        wordct.text = Minread.countWords(ty).toString()

        minread.text = Minread.minread(ty)
	
        //custom message in the min read
        minread.text = Minread.custome_minread(ty,"min read")

    }
}


Contributions and Issues

feel free to open an issue if any or contribute to it, its an open source library.

Licence

MIT License

Author

nwokocha Wisdom - Android Engineer @Savics

You might also like...
Map-vs-list-comparator - The project compares the time needed to find a given element in a map vs the time needed to find a given element in a list.

Map vs List Comparator The project compares the time needed to find a given element in a map vs the time needed to find a given element in a list. To

🪄 This is an animation library with an increasing number of TextViews
🪄 This is an animation library with an increasing number of TextViews

CountNumberEvent 🪄 This is an animation library with an increasing number of TextViews Demo Setup Add it in your root build.gradle at the end of repo

Counterpart of onTouchEvent for Jetpack Compose and transform gesture with specific number of pointers

Counterpart of onTouchEvent for Jetpack Compose and transform gestures notify when last pointer is up number of pointer that are down or list of pointers that can be used to get details of events when gesture is on

NPS android library to get the feedback you need from users
NPS android library to get the feedback you need from users

netpromoterscore NPS android library helps you to get the feedback you need from the users Gradle Dependency: implementation 'com.github.quantumlibs:n

Send Whatsapp Message Without Saving Mobile Number

Send Whatsapp Message Without Saving Mobile Number In this project i created the

FizzBuzzKotlin - A function fizzBuzz to generate a list of string based on the input number

FizzBuzzKotlin write a function fizzBuzz to generate a list of string based on t

This is a template to help you get started building amazing Kotlin applications and libraries.

Welcome to the Starter This is a template to help you get started building amazing Kotlin applications and libraries. Over time, examples will be comp

This Kotlin Multiplatform library is for accessing the TMDB API to get movie and TV show content. Using for Android, iOS, and JS projects.

Website | Forum | Documentation | TMDb 3 API Get movie and TV show content from TMDb in a fast and simple way. TMDb API This library gives access to T

Kotlin-koans - Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax

kotlin-koans-edu Kotlin Koans are a series of exercises to get you familiar with

Comments
Releases(0.1.1)
Owner
Nwokocha wisdom maduabuchi
Husband ❤️ and Mobile Engineer, Technical writer, Community Manager😍
Nwokocha wisdom maduabuchi
This project aims to provide a solution for finding the right product for a given EAN (European Article Number)

This project aims to provide a solution for finding the right product for a given EAN (European Article Number)

MJ 1 Apr 18, 2022
Learning Project (Story App) For Applying Android Architecture Components And Clean Architecture Using MVVM With Kotlin

Learning Project (Story App) For Applying Android Architecture Components And Clean Architecture Using MVVM With Kotlin. Implemented by Clean Architecture, Hilt, MVVM, LiveData, Coroutines, Retrofit2, Glide

Samad Talukder 4 Sep 27, 2022
Add page & limit as GET parameter to get all titans data in a paginated format

Add page & limit as GET parameter to get all titans data in a paginated format (default values : page=1 and limit=3). Here the page param is the page number which you require and limit is the maximum number of items per page. Sample Request :

krishna chaitanya 1 Jan 31, 2022
This folder contains the source code for the Words app codelab.

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

Ibrahim Alfaifi 0 Nov 8, 2021
This folder contains the source code for the Words app codelab.

Choose the letter, choose the word from a list then press it to google search for it. Ps. Learnt from Android-Basics-Kotlin powered by Google.

null 0 Nov 14, 2021
The source code for the Words app codelab

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

null 0 Nov 15, 2021
This folder contains the source code for the Words app codelab.

Words App This folder contains the source code for the Words app codelab. Introduction Words app allows you to select a letter and use Intents to navi

Bruna Medeiros dos Santos 0 Nov 25, 2021
This folder contains the source code for the Words app codelab

Words App This folder contains the source code for the Words app codelab. Introd

Исмоил 0 Jan 9, 2022
Take beautiful markdown notes and stay organized with task lists.

Take beautiful markdown notes whenever you feel inspired. Place them in notebooks and tag them accordingly. Stay organized by making task lists, set reminders and keep everything in one place by attaching related files.

null 412 Dec 27, 2022