I'm an avid fan of anime, and typically watch it subtitled. Sometimes the subbers will order the names as if they were Western, putting the given name before the family name. I really don't like this, but manually going through the subtitle file just to reverse the orders of the names would be a waste of time. I'd like to use Awk (or another standard Linux utility if Awk is not the right choice) to search the text for words that start with capital letters and always appear together (bigrams), and reverse their order. Spaces and symbols should be the delimiters for words. This should be sufficient to result in no false positives.
For example, all instances of
Miu Matsuoka should be converted to