I am wondering which option is more correct when I want to call some class of objects: NotificationService or NotificationsService. Is there difference between them? If so, what is it?
Asked
Active
Viewed 523 times
0
-
Thanks! I honestly tried to find answer before adding new question but I had no success. Usually it is needed to know how to do it right :) – tohasan Nov 03 '17 at 12:14
-
1Please note that requests for naming are considered off-topic here, as they are just labels, not really language per se, and ultimately come down to opinion. There is no right or wrong way, linguistically speaking, to name a class or column or function. – choster Nov 03 '17 at 19:48
1 Answers
1
NotificationService
Clearly this service is going to involve multiple notifications; whether this is a programming term or not, we would say 'notification service'. In the same way that we have a letterbox, a mousetrap, a wine rack, a programme guide, or a photo album, we don't need to spell out that each object contains or refers to multiple items.
gpr
- 4,078
-
Except that one of the reasons we sometimes opt for a plural forms in attributive nouns is when we want to emphasize variety, as in soft drinks manufacturer. If the notifications included birthday reminders and dental appointments, notifications would be justifiable at the very least. Winners bracket, cattle prod, arts degree, ladies man, boys club, parts house, records search, clothes washer. – Phil Sweet Nov 03 '17 at 21:52
-
I see where you're going, in that you might say soft drinks manufacturer if you wanted to highlight the fact it produces more than one kind of soft drink, but I don't think the example holds up for notifications since if the distinction between types of notification were important you'd want to highlight it in a less subtle way. – gpr Nov 26 '17 at 23:42
-
Also, I think ladies' man and boys' club were possessives; clothes doesn't exist as a singular; arts degree means something completely different to a art degree ... – gpr Nov 27 '17 at 00:40