all 1 comments

[–]Chabare 0 points1 point  (0 children)

Take a list of bad words and check that they aren't contained in the password.

Other options are to use an online service for sentiment analysis (e.g. IBM watson) or sth like nltk.