Words.Per.Minute
1.2.3
How long time does this text take to read? A normal reader will spend 6 seconds on it. Now you know.
Install-Package Words.Per.Minute -Version 1.2.3
dotnet add package Words.Per.Minute --version 1.2.3
<PackageReference Include="Words.Per.Minute" Version="1.2.3" />
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.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Words.Per.Minute, 1.2.3"
#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.3
// Install Words.Per.Minute as a Cake Tool
#tool nuget:?package=Words.Per.Minute&version=1.2.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sample usage for C# Words per minute counter.
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.
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:*****
Dependencies
-
.NETStandard 2.0
- No dependencies.
Used By
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 | 290 | 7/4/2020 |
1.2.2 | 137 | 7/3/2020 |
1.2.1 | 133 | 7/1/2020 |
1.2.0 | 142 | 7/1/2020 |
1.1.13 | 123 | 6/29/2020 |
1.1.12 | 127 | 6/28/2020 |
1.1.11 | 131 | 6/28/2020 |
1.1.10 | 180 | 6/28/2020 |
1.1.9 | 179 | 6/28/2020 |
1.1.8 | 148 | 6/26/2020 |
1.1.7 | 154 | 6/23/2020 |
1.1.6 | 155 | 6/22/2020 |
1.1.5 | 155 | 6/21/2020 |
1.1.4 | 136 | 6/17/2020 |
1.1.3 | 155 | 6/16/2020 |
1.1.2 | 161 | 6/16/2020 |
1.1.1 | 151 | 6/16/2020 |
1.1.0 | 153 | 6/16/2020 |
1.0.8 | 142 | 6/16/2020 |
1.0.7 | 158 | 6/15/2020 |
1.0.6 | 177 | 6/15/2020 |
1.0.5 | 175 | 6/15/2020 |
1.0.4 | 177 | 6/15/2020 |
1.0.3 | 178 | 6/15/2020 |
1.0.2 | 193 | 6/14/2020 |
1.0.1 | 197 | 6/14/2020 |
1.0.0 | 208 | 6/14/2020 |