# How to extract number of words (for time reading a post) in franklin.jl

**URL:** <https://discourse.julialang.org/t/how-to-extract-number-of-words-for-time-reading-a-post-in-franklin-jl/111502>\
**Category:** Web Stack\
**Tags:** question, franklin\
**Created:** [March 12, 2024, 6:11am UTC](https://discourse.julialang.org/t/how-to-extract-number-of-words-for-time-reading-a-post-in-franklin-jl/111502 "2024-03-12T06:11:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![indymnv](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/indymnv/32/212594_2.png) [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Post date:** [March 12, 2024, 6:11am UTC](https://discourse.julialang.org/t/how-to-extract-number-of-words-for-time-reading-a-post-in-franklin-jl/111502/1 "2024-03-12T06:11:02Z")

</div>

I’m looking to improve my blog a bit with Franklin, and one thing I want to add to make it more user-friendly is something like the number of words and the approximate reading time (this as a simple calculation of proportion of the former) for each post.

So, I want to write a function `hfun_wordcount()` in `utils.jl` and then include it in each post. My question is, what function should I use to extract the corpus of this text?
