If you meant to type "ghard" instead of "yard", there are several correct alternatives you could consider. The correct spelling could be "guard", "gherkin" or "ghoul". However, without additional context, it is hard to ascertain the exact intended word. Proofreading can help avoid such misspellings in the future.