Move all the 'noun' words to the beginning of the sentence.
Input: The dogs were running around the house.
Noun words: dogs, house.
Rest of the sentence: The were running around the.
The house was running around the dogs.