arrow-py / arrow-py/arrow

.humanize() should have a numeric option for 1 instead of a/an

Open
#1,158 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

### Feature Request

Option to change "a/an" to 1:
* "2 hours and a minute" --> "2 hours and 1 minute"
* "an hour and 12 minutes" --> "1 hour and 12 minutes"
* etc.

example `Arrow.humanize(..., numeric=True)`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Arrow.humanize implementation and its handling of "a/an" for singular units. Review the relevant humanize behavior and existing coverage before deciding how the numeric option should affect the examples; done means numeric=True produces "1 minute" and "1 hour" while the default wording remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
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.