"BookList" or "booksList?" [duplicate]

Possible Duplicates:
“User accounts” or “users account?”
Is it correct to say “lesson count” or “lessons count”?

I'm wondering whether or not I should use a plural form noun with a collection name. For example, which one is correct, bookList or booksList (obviously they are variables in a programming language)?


I'd prefer bookList. After all, nobody uses a books shelf, either, but a book shelf.


Why aren't you using books instead of bookList? If this is in an object oriented language, the variable will be declared as List *books which clarifies that books is a List.

Putting the variable type in the variable is fine but it isn't needed as much as it was in the past. If you really want "list" in the var name somewhere I would recommend bookList if it is a list of Book objects (or whatever you are using for a book.)

I would never use booksList. If you are storing lists of lists of books I would recommend finding a term other than "book." Library, shelf or bookLists may work. Essentially, a plural at the end of a variable flags it as a container for objects of whatever was just pluralized. books is a container of book. cats is a bag of cat. dogLists is a container of dogList.


  • Use bookList to store a list of individual books.
  • Use booksList (or bookListList) to store a list of lists of books.

The first thing I think of is Booklist magazine, a reasonably well-known publication of the American Library Association.

I'd go with bookList regardless, because it's easier to say (or subvocalize).
But I think both are reasonable forms, so if you like one or the other, go with that one.