I have the following sentence:
This section of a program starts with keyword "protected".
Should I use any articles before keyword?
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.
Sign up to join this communityI have the following sentence:
This section of a program starts with keyword "protected".
Should I use any articles before keyword?
I'd recommend that if you're referring to a specific keyword, use the, like this:
This section of a program starts with the
static
keyword.
If you're referring to a class of related keywords, use a:
This section of a program starts with a statement keyword.
You will find that the article is often left out in technical explanations, recipes, and the like. This is a particular style. In technical explanations, it's considered informal (and I neither use nor recommend it); you won't find the style in official documentation from Microsoft or IBM. So, in your example, I would follow Aaron's advice.
In recipes, however, you will find that the style is widely applied. Here's an example: http://www.bettycrocker.com/recipes/banana-bread/51427396-6764-4b0a-a73a-78c683c703d2
You should use "the", as in the keyword 'X'. When specifying a specific example of something (in this case a keyword) you need the article "the". Other examples of this are the letter "A" or the word "cheese".