-
-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dehumanize method doesn't recognize singular nouns #1150
Comments
Looking at it, it seems like the dehumanize only supports the plurals. @anishnya any insight on this one? |
We use the humanize output and reverse it for dehumanize.
We certainly could add this translation in for English, but ideally we would want similar mappings across all languages. I'm open to making this a broader issue and attempting to solve it. |
I came here looking for a solution to this issue.
whereas |
@anishnya As @ben-kenney points out, your comment doesn't address the issue. While I can understand that |
Yeah, it's worth pointing out again that dehumanize implies that the string is already humanized, but it's hard to say "1 days ago" is considered humanized. |
arrow.now().dehumanize("1 day ago").isoformat()
doesn't work.arrow.now().dehumanize("1 days ago").isoformat()
does work.Same with
week
,month
, andyear
.The text was updated successfully, but these errors were encountered: