Skip to content

[FEATURE] Add Estimated Reading Time for Notes and Articles #211

@SamruddhiPatil0078

Description

@SamruddhiPatil0078

Description

Currently, users can read notes and articles on openCSE, but there is no indication of how long a page will take to read. Adding an estimated reading time will help students better plan their study sessions and improve the overall reading experience.

Proposed Solution

Display an estimated reading time at the beginning of each note/article based on the total word count.

Example:

⏱️ 4 min read

Calculation

  • Average reading speed: 200 words per minute
  • Reading Time = Total Words / 200
  • Round up to the nearest minute

Examples:

  • 350 words → 2 min read
  • 750 words → 4 min read
  • 1250 words → 7 min read

Benefits

  • Helps students manage study time effectively.
  • Improves user experience.
  • Common feature in modern educational platforms and blogs.
  • Easy to understand and implement.

Acceptance Criteria

  • Reading time is displayed at the top of each note/article.
  • Reading time is calculated dynamically from content length.
  • Value is rounded to the nearest whole minute.
  • Design remains responsive across devices.
  • Feature works for all existing and future notes.

Possible Tech Implementation

  1. Extract article content.
  2. Count total words.
  3. Divide by 200 (average reading speed).
  4. Round up using Math.ceil().
  5. Display the result near the article title.

Additional Notes

This feature should be lightweight, require minimal performance overhead, and integrate seamlessly with the existing UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions