retim v0.2.3
Retim
Provide methods to estimate the reading time of a file or a setence.
Summary
Count the words of a setence
Count the words of a file
Functions
Count the words of a setence
Examples
iex> Retim.count("Hello World")
"1 minute"
iex> Retim.count("Hello World", "en", 120)
"1 minute"
iex> Retim.count("Hellow World", "es", 120)
"1 minuto"
Count the words of a file.
Examples
iex> Retim.count_file("hello.md")
"4 minutes"
iex> Retim.count_file("hello.md", "en", 120)
"7 minutes"
iex> Retim.count_file("hello.md", "es", 120)
"7 minutos"