What started out as programming has turned into a curious language/grammar question.
I'm writing a program and want to clearly specify a variable name. The variable will be a dictionary and each item in the dictionary stores the details of a "revision".
variable = {
"revision_a": {"detail_a": "", "detail_b": ""},
"revision_b": {"detail_a": "", "detail_b": ""}
}
I want to name the variable revision_details but I don't believe it clearly communicates what the list is. If I saw a variable named revision_details I would assume that it stores details about a single revision.
revision_details = {"detail_a": "", "detail_b": ""}
In this case would revisions_details be correct grammar? If this is or something similar correct what is the official term for this and what does the correct version look like? Otherwise would I just need to find a different name like details_of_revisions or just revisions?
To clarify, what is the right way to say "revisions details", i.e. multiple details about multiple revisions?
revision_detailsfor a single item andcollection_of_revision_detailsfor the whole set. – stackzebra Jan 02 '21 at 10:06variableis simply an array of revisions, so it would make sense to call that arrayrevisions? – Andrew Leach Jan 02 '21 at 10:09