IF message contains call  AND
     IF message contains from  THEN
         type = spam
     IF message does not contain from  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 1  THEN
                     type = spam
                 IF message does not contain 1  AND
                     IF message contains s  THEN
                         type = spam
                     IF message does not contain s  AND
                         IF message contains landline  THEN
                             type = spam
                         IF message does not contain landline  AND
                             IF message contains 08712460324  THEN
                                 type = spam
                             IF message does not contain 08712460324  AND
                                 IF message contains miss  THEN
                                     type = spam
                                 IF message does not contain miss  THEN
                                     type = ham
 IF message does not contain call  AND
     IF message contains free  AND
         IF message contains i  AND
             IF message contains in  THEN
                 type = spam
             IF message does not contain in  THEN
                 type = ham
         IF message does not contain i  AND
             IF message contains can  THEN
                 type = ham
             IF message does not contain can  THEN
                 type = spam
     IF message does not contain free  AND
         IF message contains txt  AND
             IF message contains to  THEN
                 type = spam
             IF message does not contain to  THEN
                 type = ham
         IF message does not contain txt  AND
             IF message contains text  AND
                 IF message contains with  THEN
                     type = spam
                 IF message does not contain with  AND
                     IF message contains the  THEN
                         type = ham
                     IF message does not contain the  AND
                         IF message contains to  THEN
                             type = spam
                         IF message does not contain to  AND
                             IF message contains for  THEN
                                 type = spam
                             IF message does not contain for  THEN
                                 type = ham
             IF message does not contain text  AND
                 IF message contains currently  THEN
                     type = spam
                 IF message does not contain currently  AND
                     IF message contains cost  AND
                         IF message contains wk  THEN
                             type = spam
                         IF message does not contain wk  AND
                             IF message contains pobox  THEN
                                 type = spam
                             IF message does not contain pobox  THEN
                                 type = ham
                     IF message does not contain cost  AND
                         IF message contains ringtone  THEN
                             type = spam
                         IF message does not contain ringtone  AND
                             IF message contains 50  THEN
                                 type = spam
                             IF message does not contain 50  AND
                                 IF message contains latest  THEN
                                     type = spam
                                 IF message does not contain latest  AND
                                     IF message contains rate  THEN
                                         type = spam
                                     IF message does not contain rate  AND
                                         IF message contains lost  AND
                                             IF message contains i  THEN
                                                 type = ham
                                             IF message does not contain i  THEN
                                                 type = spam
                                         IF message does not contain lost  AND
                                             IF message contains girls  AND
                                                 IF message contains your  THEN
                                                     type = spam
                                                 IF message does not contain your  THEN
                                                     type = ham
                                             IF message does not contain girls  THEN
                                                 type = ham