IF message contains call  AND
     IF message contains mobile  THEN
         type = spam
     IF message does not contain mobile  AND
         IF message contains claim  THEN
             type = spam
         IF message does not contain claim  AND
             IF message contains landline  THEN
                 type = spam
             IF message does not contain landline  AND
                 IF message contains 04  THEN
                     type = spam
                 IF message does not contain 04  AND
                     IF message contains free  THEN
                         type = spam
                     IF message does not contain free  AND
                         IF message contains line  THEN
                             type = spam
                         IF message does not contain line  AND
                             IF message contains texts  THEN
                                 type = spam
                             IF message does not contain texts  AND
                                 IF message contains message  THEN
                                     type = spam
                                 IF message does not contain message  AND
                                     IF message contains messages  THEN
                                         type = spam
                                     IF message does not contain messages  AND
                                         IF message contains missed  THEN
                                             type = spam
                                         IF message does not contain missed  AND
                                             IF message contains little  THEN
                                                 type = spam
                                             IF message does not contain little  AND
                                                 IF message contains collection  THEN
                                                     type = spam
                                                 IF message does not contain collection  AND
                                                     IF message contains visit  THEN
                                                         type = spam
                                                     IF message does not contain visit  THEN
                                                         type = ham
 IF message does not contain call  AND
     IF message contains free  AND
         IF message contains ü  THEN
             type = ham
         IF message does not contain ü  AND
             IF message contains wan  THEN
                 type = ham
             IF message does not contain wan  AND
                 IF message contains booked  THEN
                     type = ham
                 IF message does not contain booked  AND
                     IF message contains home  THEN
                         type = ham
                     IF message does not contain home  AND
                         IF message contains txt  THEN
                             type = spam
                         IF message does not contain txt  AND
                             IF message contains text  THEN
                                 type = spam
                             IF message does not contain text  AND
                                 IF message contains co  THEN
                                     type = spam
                                 IF message does not contain co  THEN
                                     type = spam
     IF message does not contain free  AND
         IF message contains txt  AND
             IF message contains tomorrow  THEN
                 type = ham
             IF message does not contain tomorrow  THEN
                 type = spam
         IF message does not contain txt  AND
             IF message contains text  AND
                 IF message contains flirt  THEN
                     type = spam
                 IF message does not contain flirt  AND
                     IF message contains dating  THEN
                         type = spam
                     IF message does not contain dating  AND
                         IF message contains money  THEN
                             type = spam
                         IF message does not contain money  AND
                             IF message contains unsubscribe  THEN
                                 type = spam
                             IF message does not contain unsubscribe  AND
                                 IF message contains times  THEN
                                     type = ham
                                 IF message does not contain times  THEN
                                     type = ham
             IF message does not contain text  AND
                 IF message contains send  AND
                     IF message contains box  THEN
                         type = spam
                     IF message does not contain box  AND
                         IF message contains xxx  THEN
                             type = spam
                         IF message does not contain xxx  AND
                             IF message contains care  THEN
                                 type = spam
                             IF message does not contain care  THEN
                                 type = ham
                 IF message does not contain send  AND
                     IF message contains sex  THEN
                         type = spam
                     IF message does not contain sex  AND
                         IF message contains 1000s  THEN
                             type = spam
                         IF message does not contain 1000s  AND
                             IF message contains http  THEN
                                 type = spam
                             IF message does not contain http  AND
                                 IF message contains calls  THEN
                                     type = spam
                                 IF message does not contain calls  AND
                                     IF message contains rate  THEN
                                         type = spam
                                     IF message does not contain rate  AND
                                         IF message contains lost  AND
                                             IF message contains help  THEN
                                                 type = spam
                                             IF message does not contain help  THEN
                                                 type = ham
                                         IF message does not contain lost  AND
                                             IF message contains station  AND
                                                 IF message contains news  THEN
                                                     type = spam
                                                 IF message does not contain news  THEN
                                                     type = ham
                                             IF message does not contain station  AND
                                                 IF message contains girls  AND
                                                     IF message contains waiting  THEN
                                                         type = spam
                                                     IF message does not contain waiting  THEN
                                                         type = ham
                                                 IF message does not contain girls  THEN
                                                     type = ham