python-humanize / python-humanize/humanize

Suggestion: Weekdays for humanize.naturalday

Open
#102 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
756
Forks
148
Avg merge
6d 1h
Merged PRs (30d)
12

Description

I suggest to use weekdays to refer to up to 6 next and 6 last days, as in "last Friday" or "this Monday", when calling humanize.naturalday either when requested through a function call parameter or by using a new function (e.g. humanize.naturalweekday )

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the humanize.naturalday entry point and inspect how its current arguments and date wording are tested. Compare the proposed parameter with a separate humanize.naturalweekday function, then define coverage for up to six previous and next days; done means the selected API consistently produces weekday phrasing such as "last Friday" or "this Monday".

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.