Skip to content
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

Russian language oddities #1

Open
georgy7 opened this issue Mar 14, 2017 · 7 comments
Open

Russian language oddities #1

georgy7 opened this issue Mar 14, 2017 · 7 comments

Comments

@georgy7
Copy link

georgy7 commented Mar 14, 2017

Number English Russian
a minute ago минуту назад
2‒4, 22‒24, 32‒34, 42‒44, 52‒54 2 minutes ago 2 минуты назад
5‒20, 35‒40, 45‒50, 55‒59 5 minutes ago 5 минут назад
21, 31, 41, 51 21 minutes ago 21 минуту назад
an hour ago час назад
2‒4, 22‒24 2 hours ago 2 часа назад
5‒20 5 hours ago 5 часов назад
21 21 hours ago 21 час назад

I mean, there is a lot of languages in the world. I can not imagine, how to make the addition of a new language simple.

@georgy7
Copy link
Author

georgy7 commented Mar 14, 2017

@georgy7
Copy link
Author

georgy7 commented Mar 14, 2017

In Russian this is the common rule for all numbers with nouns. If a number ends with 1, the noun is the same as singular, if a number ends with 2‒4 (except for 12‒14), the noun is like in genitive case of singular ("2 часа" sounds like "2 of an hour"), and in other cases, they are like genitive case in plural ("5 часов" sounds like "5 of hours").

@georgy7
Copy link
Author

georgy7 commented Mar 14, 2017

In "минуту назад" and "час назад", "minute" and "hour" are in the accusative case.

@Bolpat
Copy link

Bolpat commented Mar 15, 2017

This sounds very interesting; I've thought about that previously.
Do you want it to be extendible by users or only a flexible interface for you? Do you really need "a minute ago" or would "1 minute ago" be good enough?
I find it very inconsistent using numbers and articles mixed. If you use "a minute ago" it would be consistent to use "two minutes ago" instead of "2 minutes ago". I tend to using numbers always.

@georgy7
Copy link
Author

georgy7 commented Mar 15, 2017

@Bolpat Extendable for all languages, of course.
I am just peering. Don't need this library right now.

I find it very inconsistent using numbers and articles mixed.

I would prefer "a minute ago" and "2 minutes ago". It could be сustomizable, I think.

@Bolpat
Copy link

Bolpat commented Mar 15, 2017

How many seconds ago feel "just now"? I suspect it differs with cultures.

@georgy7
Copy link
Author

georgy7 commented Mar 15, 2017

I suppose, it depends more on a person then his/her country/culture/language. Well, I would set this "just-now-limit" to 20 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants