The King James Bible is loaded with memorable analogies, and one of the most vivid is from Proverbs: “As a dog returneth to its vomit, so a fool returneth to his folly.” It’s true — a dog will do that. A dog might also sample the vomit of another dog, as is depicted in one of the many intestinal, fecal and urinal gags served up in the relentlessly raunchy comedy “Strays.”

Directed by Josh Greenbaum from a script by Dan Perrault, “Strays” tells the story of Reggie (voiced by Will Ferrell), a winsome Border terrier who is abandoned by his owner, the miserable, porn-addict stoner Doug (Will Forte).

Alone in an alley, Reggie gets the come-on from some sexy Afghan hounds. How does prostitution work in unsupervised dog society? It is never explained, just as it’s never explained why the animals speak to each other in English while not understanding the English spoken by the humans. The movie uses a mix of live action and computer animation, but world-building was not…