Adverb vs. direct object [duplicate]

Solution 1:

She went home.

"Home" is an adverb in this sentence. The word "went" can't take a direct object because it is an intransitive verb. This distinction is a difficult one to make. The wikitionary page goes more in depth about the use of the word "home" as an adverb.

He swam yesterday.

"Yesterday" is also an adverb. Any time word or expression that describes when something happened is an adverb. This is also the case for locations. Moreover, swam is also an intransitive verb, which cannot take a direct object.