Surely, an LLM could handle this, if it were to get fed the entire book in chunks. "Change all mentions of the word 'flat' in its connotation as the British word for 'apartment', to say 'apartment'. Make no other changes to the manuscript." Then have it double-check its work afterwards. "Does every instance of the word 'apartment' in this text make sense? Does every instance of the word 'flat' in this text make sense in American English?"
and then run this prompt on each pair of words that you want it to do. When it's done, run a quick diffcheck on it & check its work to learn of any gotchas.
and then run this prompt on each pair of words that you want it to do. When it's done, run a quick diffcheck on it & check its work to learn of any gotchas.