It’s easy to do cause you refer to your spouse that way when talking to the kids.
You have enough kids and dogs over the years and get ancient and the percentage keeps dropping on whether the right name comes out. I have called my sons by some of the dogs’ names, even deceased dogs, and of course by their brothers’ names as well. Likewise, have yelled at the dog with either a previous dog’s name or kid’s name.
There is a controversial figure whose name I can never remember, so if I’m discussing him, I just refer to him as “that pissy faced guy” and everyone knows who I mean even if I don’t!