Moved single word phrases to function

Moved single word phrases to its own function.