Inspired by this, there's a package https://github.com/dropbox/zxcvbn to estimate entropy and give suggestions.