text: import re
  from math import ceil
  
  from authors.settings import WPM
  
  def get_time_to_read_article(article, words_per_minute=WPM):
      '''
      This function returns the time it takes to read an article
      '''
      body = article.body
      word_count = len(re.sub('[^A-Za-z0-9]+', ' ', body).split())
      output = f"{ceil(word_count/words_per_minute)} mins" 
      if ceil(word_count/words_per_minute) == 1:
          output = f"{ceil(word_count/words_per_minute)} min"
      return output   
  