I'm looking for a culturally-sensitive way to properly insert a noun into a sentence while using the appropriate article (a/an). It could use String.Format, or possibly something else if the appropriate way to do this exists elsewhere.
For example:
Base Sentence: "You are looking at a/an {0}"
This should format to: "You are looking at a carrot" or "You are looking at an egg."
I'm currently doing this by manually checking the first character of the word to be inserted and then manually inserting "a" or "an." But I'm concerned that this might limit me when the application is localized to other languages.
Is there a best practice for approaching this problem?
RESOLUTION: It appears that the problem is complicated to the point that there does not exist a utility or framework to solve this problem in the way I originally phrased. It appears that the best solution (in my situation) is to store the article in the database along with the noun so that the translators can have the level of control they need. Thanks for all of the suggestions!