Complete initial implementation of get_word_pair