No, Resident Evil 5 does not offer an option to filter out swearing and gore.
It is a mature-rated game, and that content is simply part of the experience by design. If you are concerned about younger players or others being around, the practical solution is to play when they are not present rather than expecting a built-in filter.