"The dog hides himself in the closet." should be a perfectly good translation. Dogs come in both genders, and in Latin if its not specified we are taught to assume male. We translate"armario" as closet with clothes and that's also good for a dog. Robot programs like drunk parrots are are"stulti" and unlike Latin inflexible!