Hmmm... The only thing I could think of is making a script which checks the input string (password) first and if it is suitable (compared to a set of given conditions) change the password. I cannot give you any source code, sorry - my knowledge of BASH (or any other scripting language for that matter) is awful
But I doubt that this is an optimal solution to your problem. I also doubt that it is a secure one, but it can of course be implemented as a temporary hack