def checktext(self,config):
        '''Ensure they're ranting enough, but not too much!'''
        postwords = self.posttext.strip()
        wordlist = postwords.split()
        uniquewords = set(wordlist)
        # Zero sized posts
        if len(postwords) == 0:
            self.useralerts.append(config['alerts']['zero'])
        # Overlong posts    
        elif len(wordlist) > config['posting'].as_float('longpost'):     
            self.useralerts.append(config['alerts']['overlong'])
        else:
            # Check text isn't full of dupes
            totalwords = len(wordlist)
            totaluniquewords = len(uniquewords)
            # Float so our answer is a float 
            if totaluniquewords / float(totalwords) < config['posting'].as_float('threshhold'):
                self.useralerts.append(config['alerts']['notunique'])
            # Check post doesnt mention banned words
            for bannedword in config['posting']['bannedwords']:
                if bannedword in uniquewords:
                    self.useralerts.append(config['alerts']['bannedwords'])
        return
dataset/ETHPy150Open mikemaccana/imeveryone/usermessages.py/Message.checktext/original