arrow-py / arrow-py/arrow

The dehumanize method doesn't recognize singular nouns

Open
#1,150 7 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

`arrow.now().dehumanize("1 day ago").isoformat()` doesn't work.

`arrow.now().dehumanize("1 days ago").isoformat()` does work.

Same with `week`, `month`, and `year`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the dehumanize method and reproducing the difference between singular and plural units in the issue examples. Check the handling of day, week, month, and year, then verify that singular forms work while the existing plural forms continue to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.