Closed willhains closed 9 years ago
:heart: this idea so much.
@willhains Since I'm Japanese, I agree with you. But, I want to provide these features as another library because these are a kind of localization features, not the calculation of dates.
@naoty That makes sense.
@kazmasaurus Not sure why you edited your comment, because it was spot-on! Thanks very much for the kind words.
@willhains I don't have enough time to develop these features as another library. If you want them, please develop yourself.
I find this style of natural-language API exciting, when it is executed well, as it is in this case. Great stuff!
While browsing the API intro, I had random thought: while this API is very natural to English-language speakers — and it seems aimed directly at "sounding" like natural English — wouldn't it make equal sense to add similar APIs for other human languages?
For example:
I chose Japanese above as a deliberately extreme example, but it fits almost perfectly as a natural-sounding API. (The only rough edge being that English implies "duration" when you say "2 days", but in Japanese it's explicit — "2日" is not the same as "2日間". But I think this could be easily covered by a small number of redirecting functions.)