These two terms represent different parts of speech. The two-word expression a while is a noun phrase, consisting of the article a and the noun while, defined as “a period or interval of time.” The one-word awhile is an adverb that means “for a short time or period.” Although these definitions are similar, and although the terms can sometimes be used interchangeably, there are a few simple rules that prove helpful in keeping them straight.