Words.Per.Minute 1.2.2

How long time does this text take to read? A normal reader will spend 6 seconds on it. Now you know.

There is a newer version of this package available.
See the version list below for details.
Install-Package Words.Per.Minute -Version 1.2.2
dotnet add package Words.Per.Minute --version 1.2.2
<PackageReference Include="Words.Per.Minute" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Words.Per.Minute --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Words.Per.Minute, 1.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Words.Per.Minute as a Cake Addin
#addin nuget:?package=Words.Per.Minute&version=1.2.2

// Install Words.Per.Minute as a Cake Tool
#tool nuget:?package=Words.Per.Minute&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Sample usage for C# Words per minute counter.

Build Status

var wpm = new WPM.WordsPerMinute(@"This is a words per minute counter. It also allows to get more detailed data if you want.");

Console.WriteLine($"Number of words: {wpm.GetTotalWords()}");

Console.WriteLine($"Number of sentences: {wpm.GetTotalSentences()}");


Console.WriteLine($"Time to read at 200 words per minute: {wpm.GetTimeToRead()}");
Console.WriteLine($"Time to read at 120 words per minute: {wpm.GetTimeToRead(120)}");

Console.WriteLine("Histogram raw data:");
foreach (var word in wpm.GetHistogram())
{
    Console.WriteLine($"{word.Length},{word.Occurences}");
}

Console.WriteLine("Visual histogram:");
foreach (var item in wpm.GetVisualHistogram())
{
    Console.WriteLine(item);
}

Above code will generate the following:

Number of words: 18
Number of sentences: 2
Time to read at 200 words per minute: 00:00:05
Time to read at 120 words per minute: 00:00:09
Histogram raw data:
1,1
2,4
3,3
4,4
5,2
6,2
7,0
8,2
Visual histogram:
01:**
02:**********
03:*******
04:**********
05:*****
06:*****
07:
08:*****

Sample usage for C# Words per minute counter.

Build Status

var wpm = new WPM.WordsPerMinute(@"This is a words per minute counter. It also allows to get more detailed data if you want.");

Console.WriteLine($"Number of words: {wpm.GetTotalWords()}");

Console.WriteLine($"Number of sentences: {wpm.GetTotalSentences()}");


Console.WriteLine($"Time to read at 200 words per minute: {wpm.GetTimeToRead()}");
Console.WriteLine($"Time to read at 120 words per minute: {wpm.GetTimeToRead(120)}");

Console.WriteLine("Histogram raw data:");
foreach (var word in wpm.GetHistogram())
{
    Console.WriteLine($"{word.Length},{word.Occurences}");
}

Console.WriteLine("Visual histogram:");
foreach (var item in wpm.GetVisualHistogram())
{
    Console.WriteLine(item);
}

Above code will generate the following:

Number of words: 18
Number of sentences: 2
Time to read at 200 words per minute: 00:00:05
Time to read at 120 words per minute: 00:00:09
Histogram raw data:
1,1
2,4
3,3
4,4
5,2
6,2
7,0
8,2
Visual histogram:
01:**
02:**********
03:*******
04:**********
05:*****
06:*****
07:
08:*****

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.2.3 291 7/4/2020
1.2.2 138 7/3/2020
1.2.1 134 7/1/2020
1.2.0 143 7/1/2020
1.1.13 124 6/29/2020
1.1.12 128 6/28/2020
1.1.11 132 6/28/2020
1.1.10 181 6/28/2020
1.1.9 180 6/28/2020
1.1.8 149 6/26/2020
1.1.7 155 6/23/2020
1.1.6 156 6/22/2020
1.1.5 156 6/21/2020
1.1.4 137 6/17/2020
1.1.3 156 6/16/2020
1.1.2 162 6/16/2020
1.1.1 152 6/16/2020
1.1.0 154 6/16/2020
1.0.8 143 6/16/2020
1.0.7 159 6/15/2020
1.0.6 178 6/15/2020
1.0.5 176 6/15/2020
1.0.4 178 6/15/2020
1.0.3 179 6/15/2020
1.0.2 194 6/14/2020
1.0.1 198 6/14/2020
1.0.0 209 6/14/2020