datetime-scopes icon indicating copy to clipboard operation
datetime-scopes copied to clipboard

Usage of prepositions in scope names

Open aluuu opened this issue 10 years ago • 2 comments

Hi,

As I see, there are some date and time related scopes like these ones:

created_on_day(t)
created_on_month(t)
created_on_year(t)
...
created_on_or_before(t)
created_on_or_before_day(t)
created_on_or_before_month(t)
created_on_or_before_year(t)
created_on_or_after(t)
created_on_or_after_day(t)
created_on_or_after_month(t)
created_on_or_after_year(t)

Problem with scope names is that preposition "on" should be used with days and dates only. The better way to name these scopes, IMO would be:

created_on_day(t)
created_in_month(t)
created_in_year(t)
...
created_at_or_before(t)
created_on_or_before_day(t)
created_in_or_before_month(t)
created_in_or_before_year(t)
created_at_or_after(t)
created_on_or_after_day(t)
created_in_or_after_month(t)
created_in_or_after_year(t)

Anyway, it'd be better to ask native speaker to review scope names.

aluuu avatar Feb 08 '16 08:02 aluuu

@aluuu Thanks! I'll fix it

907th avatar Feb 08 '16 08:02 907th

@907th cool! I strongly recommend you to consult with native speaker.

aluuu avatar Feb 08 '16 09:02 aluuu