Code to or for the lab?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty{ margin-bottom:0;
}






up vote
1
down vote

favorite
1












I've been finding myself quite confused about a particular situation. So I know that people say a key to (physical place), such as ''do you have the key to the shed'' etc. However, I'm not sure what to say where there's no key involved but a codelock. Should I say: ''do you have the code to the lab'' or ''do you have the code for the lab''?



I'd think the former makes more sense as the code is what allows you to get through the door, into the lab. But I might be wrong, hence me asking on here.



Thank you for your help










share|improve this question






















  • There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
    – Lambie
    Jun 1 at 15:54








  • 2




    Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
    – Edwin Ashworth
    Jun 1 at 17:10












  • These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
    – Edwin Ashworth
    Jun 1 at 17:11












  • Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
    – tautophile
    Jun 1 at 17:59

















up vote
1
down vote

favorite
1












I've been finding myself quite confused about a particular situation. So I know that people say a key to (physical place), such as ''do you have the key to the shed'' etc. However, I'm not sure what to say where there's no key involved but a codelock. Should I say: ''do you have the code to the lab'' or ''do you have the code for the lab''?



I'd think the former makes more sense as the code is what allows you to get through the door, into the lab. But I might be wrong, hence me asking on here.



Thank you for your help










share|improve this question






















  • There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
    – Lambie
    Jun 1 at 15:54








  • 2




    Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
    – Edwin Ashworth
    Jun 1 at 17:10












  • These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
    – Edwin Ashworth
    Jun 1 at 17:11












  • Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
    – tautophile
    Jun 1 at 17:59













up vote
1
down vote

favorite
1









up vote
1
down vote

favorite
1






1





I've been finding myself quite confused about a particular situation. So I know that people say a key to (physical place), such as ''do you have the key to the shed'' etc. However, I'm not sure what to say where there's no key involved but a codelock. Should I say: ''do you have the code to the lab'' or ''do you have the code for the lab''?



I'd think the former makes more sense as the code is what allows you to get through the door, into the lab. But I might be wrong, hence me asking on here.



Thank you for your help










share|improve this question













I've been finding myself quite confused about a particular situation. So I know that people say a key to (physical place), such as ''do you have the key to the shed'' etc. However, I'm not sure what to say where there's no key involved but a codelock. Should I say: ''do you have the code to the lab'' or ''do you have the code for the lab''?



I'd think the former makes more sense as the code is what allows you to get through the door, into the lab. But I might be wrong, hence me asking on here.



Thank you for your help







grammar idioms logic






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 1 at 15:48









Elias Schmitt

62




62












  • There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
    – Lambie
    Jun 1 at 15:54








  • 2




    Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
    – Edwin Ashworth
    Jun 1 at 17:10












  • These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
    – Edwin Ashworth
    Jun 1 at 17:11












  • Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
    – tautophile
    Jun 1 at 17:59


















  • There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
    – Lambie
    Jun 1 at 15:54








  • 2




    Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
    – Edwin Ashworth
    Jun 1 at 17:10












  • These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
    – Edwin Ashworth
    Jun 1 at 17:11












  • Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
    – tautophile
    Jun 1 at 17:59
















There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
– Lambie
Jun 1 at 15:54






There are many acceptable ways to say this: the code for the lab keypad; the code for the lab, or even, the lab code.
– Lambie
Jun 1 at 15:54






2




2




Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
– Edwin Ashworth
Jun 1 at 17:10






Please include the research you’ve done. Questions that can be answered using commonly-available references are off-topic. Reasonable research should always be presented....
– Edwin Ashworth
Jun 1 at 17:10














These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
– Edwin Ashworth
Jun 1 at 17:11






These Google Ngrams seem to indicate that 'code for the door / code to the door' are both valid options, with 'for' the preferred version. The Ngram for 'key to the door' swamps these results.
– Edwin Ashworth
Jun 1 at 17:11














Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
– tautophile
Jun 1 at 17:59




Either one is OK: "...the code to the lab" or "...the code for the lab". My preference would be "...the code for the lab".
– tautophile
Jun 1 at 17:59










1 Answer
1






active

oldest

votes

















up vote
0
down vote













In the circumstances you describe both "key to" and "key for" are acceptable.



Likewise both "code for" and "code to" are acceptable.






share|improve this answer





















  • We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
    – David
    Jun 1 at 22:02











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "97"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f448671%2fcode-to-or-for-the-lab%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













In the circumstances you describe both "key to" and "key for" are acceptable.



Likewise both "code for" and "code to" are acceptable.






share|improve this answer





















  • We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
    – David
    Jun 1 at 22:02















up vote
0
down vote













In the circumstances you describe both "key to" and "key for" are acceptable.



Likewise both "code for" and "code to" are acceptable.






share|improve this answer





















  • We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
    – David
    Jun 1 at 22:02













up vote
0
down vote










up vote
0
down vote









In the circumstances you describe both "key to" and "key for" are acceptable.



Likewise both "code for" and "code to" are acceptable.






share|improve this answer












In the circumstances you describe both "key to" and "key for" are acceptable.



Likewise both "code for" and "code to" are acceptable.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 1 at 20:59









DJClayworth

9,4481929




9,4481929












  • We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
    – David
    Jun 1 at 22:02


















  • We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
    – David
    Jun 1 at 22:02
















We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
– David
Jun 1 at 22:02




We're looking for answers that provide some explanation and context. Please explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
– David
Jun 1 at 22:02


















draft saved

draft discarded




















































Thanks for contributing an answer to English Language & Usage Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f448671%2fcode-to-or-for-the-lab%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Morgemoulin

Scott Moir

Souastre